Skip to content

Commit

Permalink
Add projection-extent-fallback, not working yet, not linked to main (#…
Browse files Browse the repository at this point in the history
…124)

index.html, for a bug reference.
  • Loading branch information
prushforth authored Nov 10, 2023
1 parent fba80ac commit fc7cf3d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions change-projection/projection-extent-fallback/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Variable projection layers</title>
<!-- the layer in this map should continue to be visible when you change
the viewer projection from OSMTILE to CBMTILE. -->
<script type="module" src="../../dist/mapml-viewer.js"></script>
<link rel="stylesheet" href="../../global.css">
</head>
<body>
<mapml-viewer zoom="15" lon="-75.703611" lat="45.411105" controls projection="OSMTILE">
<layer- label="Projection changer" checked>
<map-extent label="National Geographic" units="OSMTILE" checked >
<map-input name="TileMatrix" type="zoom" value="18" min="0" max="18"></map-input>
<map-input name="TileCol" type="location" units="tilematrix" axis="column" min="0" max="262144"></map-input>
<map-input name="TileRow" type="location" units="tilematrix" axis="row" min="0" max="262144"></map-input>
<map-link rel="tile" tref="https://server.arcgisonline.com/arcgis/rest/services/NatGeo_World_Map/MapServer/WMTS/tile/1.0.0/NatGeo_World_Map/default/default028mm/{TileMatrix}/{TileRow}/{TileCol}.jpg"></map-link>
</map-extent>
<map-extent label="Canada Base Map - Transportation" units="CBMTILE" checked >
<map-input name="z" type="zoom" min="6" max="8"></map-input>
<map-input name="y" type="location" units="tilematrix" axis="row"></map-input>
<map-input name="x" type="location" units="tilematrix" axis="column"></map-input>
<map-link rel="tile" tref="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer/tile/{z}/{y}/{x}?m4h=t" ></map-link>
</map-extent>
</layer->

</mapml-viewer>
</body>
</html>

0 comments on commit fc7cf3d

Please sign in to comment.