Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map-extent updates for hidden, disabled, checked, label attributes #255

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified resources/tcrs.pptx
Binary file not shown.
6 changes: 3 additions & 3 deletions schema/mapml-document.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
title="Open Government Licence - Canada"/>
<map-link rel="legend"
href="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3978/MapServer/legend"
/>
></map-link>
</map-head>
<map-body>
<map-extent units="CBMTILE">
<map-extent units="CBMTILE" checked="checked">
<map-input name="z" type="zoom" value="18" min="0" max="18"/>
<map-input name="y" type="location" units="tilematrix" axis="row" min="51599"
max="61455"/>
<map-input name="x" type="location" units="tilematrix" axis="column" min="46501"
max="56244"/>
<map-link rel="tile"
tref="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3978/MapServer/tile/{z}/{y}/{x}?m4h=t"
/>
></map-link>
</map-extent>
</map-body>
</mapml->
17 changes: 17 additions & 0 deletions spec/examples/cbmt.mapml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<mapml- xmlns="http://www.w3.org/1999/xhtml">
<map-head>
<map-title>Canada Base Map - Transportation</map-title>
<map-meta charset="utf-8" ></map-meta>
<map-meta content="text/mapml" http-equiv="Content-Type" ></map-meta>
<map-link xmlns="http://www.w3.org/1999/xhtml" rel="license" href="https://www.nrcan.gc.ca/earth-sciences/geography/topographic-information/free-data-geogratis/licence/17285" title="Canada Base Map © Natural Resources Canada"></map-link>
</map-head>
<map-body>
<map-extent units="CBMTILE" checked="">
<map-input name="z" type="zoom" value="17" min="0" max="17"></map-input>
<map-input name="y" type="location" units="tilematrix" axis="row" min="29750" max="34475"></map-input>
<map-input name="x" type="location" units="tilematrix" axis="column" min="26484" max="32463"></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>
</map-body>
</mapml->

4 changes: 2 additions & 2 deletions spec/examples/map-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<map-caption>Paris, the City of Lights</map-caption>
<layer- label="OpenStreetMap" checked>
<link rel="license" title="© OpenStreetMap contributors CC BY-SA" href="https://www.openstreetmap.org/copyright"></link>
<map-extent units="OSMTILE" >
<map-extent units="OSMTILE" checked>
<map-input name="z" type="zoom" value="18" min="0" max="18"></map-input>
<map-input name="x" type="location" units="tilematrix" axis="column" min="0" max="262144" ></map-input>
<map-input name="y" type="location" units="tilematrix" axis="row" min="0" max="262144" ></map-input>
<map-link rel="tile" tref="https://tile.openstreetmap.org/{z}/{x}/{y}.png" />
<map-link rel="tile" tref="https://tile.openstreetmap.org/{z}/{x}/{y}.png" ></map-link>
</map-extent>
</layer->
</mapml-viewer>
Expand Down
2 changes: 1 addition & 1 deletion spec/examples/map-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</head>
<body>
<mapml-viewer projection="CBMTILE" zoom="15" lat="45.4215" lon="-75.6972" controls controlslist="geolocation">
<layer- label="Canada Base Map - Transportation (CBMT)" src="https://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked></layer->
<layer- label="Canada Base Map - Transportation (CBMT)" src="cbmt.mapml" checked></layer->
</mapml-viewer>
</body>
</html>
Binary file modified spec/examples/mapml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 43 additions & 41 deletions spec/index.html

Large diffs are not rendered by default.