Skip to content

Commit ee2e65c

Browse files
committed
Update broken example maps
1 parent 89e89e1 commit ee2e65c

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

spec/examples/map-1.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@
4444
</head>
4545
<body>
4646
<mapml-viewer projection="OSMTILE" zoom="11" lat="48.8566" lon="2.3522">
47-
<layer- src="https://geogratis.gc.ca/mapml/en/osmtile/osm/" checked></layer->
47+
<map-caption>Paris, the City of Lights</map-caption>
48+
<layer- label="OpenStreetMap" checked>
49+
<link rel="license" title="© OpenStreetMap contributors CC BY-SA" href="https://www.openstreetmap.org/copyright"></link>
50+
<map-extent units="OSMTILE" >
51+
<map-input name="z" type="zoom" value="18" min="0" max="18"></map-input>
52+
<map-input name="x" type="location" units="tilematrix" axis="column" min="0" max="262144" ></map-input>
53+
<map-input name="y" type="location" units="tilematrix" axis="row" min="0" max="262144" ></map-input>
54+
<map-link rel="tile" tref="https://tile.openstreetmap.org/{z}/{x}/{y}.png" />
55+
</map-extent>
56+
</layer->
4857
</mapml-viewer>
4958
</body>
5059
</html>

spec/examples/map-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</noscript>
4444
</head>
4545
<body>
46-
<mapml-viewer projection="CBMTILE" zoom="15" lat="45.4215" lon="-75.6972" controls>
46+
<mapml-viewer projection="CBMTILE" zoom="15" lat="45.4215" lon="-75.6972" controls controlslist="geolocation">
4747
<layer- label="Canada Base Map - Transportation (CBMT)" src="https://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked></layer->
4848
</mapml-viewer>
4949
</body>

spec/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,16 +818,16 @@ <h4>Examples</h4>
818818
</p>
819819

820820
<pre>
821-
&lt;map zoom="11" lat="48.8566" lon="2.3522"&gt;
821+
&lt;mapml-viewer zoom="11" lat="48.8566" lon="2.3522"&gt;
822822
&lt;layer src="https://example.com/mapml/osm/" checked crossorigin&gt;&lt;/layer&gt;
823-
&lt;/map&gt;
823+
&lt;/mapml-viewer&gt;
824824
</pre>
825825
</aside>
826826

827827
<aside class="example">
828828
<p>
829829
A map of Ottawa,
830-
with the default controls enabled and dimensions specified:
830+
with default and non-default controls enabled, and dimensions specified:
831831
</p>
832832

833833
<iframe class="authoring-example" title="Authoring example 2" src="examples/map-2.html" width="600" height="350" loading="lazy"></iframe>
@@ -837,7 +837,7 @@ <h4>Examples</h4>
837837
</p>
838838

839839
<pre>
840-
&lt;mapml-viewer projection="CBMTILE" zoom="15" lat="45.4215" lon="-75.6972" width="600" height="350" controls&gt;
840+
&lt;mapml-viewer projection="CBMTILE" zoom="15" lat="45.4215" lon="-75.6972" width="600" height="350" controls controlslist="geolocation"&gt;
841841
&lt;layer label="Canada Base Map - Transportation (CBMT)" src="https://example.com/mapml/cbmt/" checked crossorigin&gt;&lt;/layer&gt;
842842
&lt;/mapml-viewer&gt;
843843
</pre>

0 commit comments

Comments
 (0)