Skip to content

Commit

Permalink
Refactor all web-map test html files to depend on mapml-viewer.js only
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Sep 23, 2024
1 parent 87493ef commit e72f515
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion change-projection/zoomin-zoomout/web-map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Change projection at z=9</title>
<script type="module" src="../../../dist/web-map.js"></script>
<script type="module" src="../../../dist/mapml-viewer.js"></script>
<link rel="stylesheet" href="../../../global.css">
<script type="module">
let customProjectionDefinition = `{
Expand Down
2 changes: 1 addition & 1 deletion progressive-enhancement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Progressive Enhancement / Graceful Degradation</title>
<script type="module" src="../dist/web-map.js"></script>
<script type="module" src="../dist/mapml-viewer.js"></script>

<!-- Ignore these demo styles for the PE/GD note (they do not affect the map). -->
<style>.note{margin:0}.note::after{display:block;font-family:"system-ui"}.note::after{content:"View in a browser that supports customized built-in elements to experience Progressive Enhancement"}[is="web-map"]:not(:defined)~.note::after{content:""}[is="web-map"]:defined~.note::after{content:"Disable JavaScript to experience Graceful Degradation"}</style><noscript><style>[is="web-map"]:not(:defined)~.note::after{content:"Enable JavaScript to experience Progressive Enhancement"}</style></noscript>
Expand Down
2 changes: 1 addition & 1 deletion vector-tiles/mapml/web-map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>MapML Vector Tiles</title>
<script type="module" src="../../../dist/web-map.js"></script>
<script type="module" src="../../../dist/mapml-viewer.js"></script>
<link rel="stylesheet" href="../../../global.css">
<style>
map[is="web-map"]:defined {
Expand Down

0 comments on commit e72f515

Please sign in to comment.