Skip to content

Commit 4ac3c21

Browse files
committed
Share restaurants across examples. Add tabindex to building part example.
Update RTL experiment to use shared restaurants.mapml
1 parent 5961de9 commit 4ac3c21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+237
-61271
lines changed

i18n/rtl/index.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,24 @@
88
<link rel="stylesheet" href="../../global.css">
99
</head>
1010
<body>
11-
<mapml-viewer dir="rtl" projection="CBMTILE" zoom="17" lat="45.4069740362364" lon="-75.70155300710053" controls>
12-
<layer- label="CBMT" src="https://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked></layer->
13-
<layer- label="Ottawa Restaurants" src="restaurants.mapml" checked></layer->
11+
<mapml-viewer dir="rtl" projection="OSMTILE" zoom="15" lat="45.4069740362364" lon="-75.70155300710053" controls>
12+
<layer- label="CBMT" src="https://geogratis.gc.ca/mapml/en/osmtile/cbmt/" checked></layer->
13+
<layer- id="restaurant" label="Ottawa Restaurants" checked>
14+
<map-meta name="cs" content="gcrs" ></map-meta>
15+
<map-meta name="extent" content="top-left-easting=-8433179, top-left-northing=5689316, bottom-right-easting=-8420968, bottom-right-northing=5683139"></map-meta>
16+
<map-extent units="OSMTILE">
17+
<map-select id="restaurants" name="cusine">
18+
<map-option value="restaurants" selected>All cuisines</map-option>
19+
<map-option value="african">African</map-option>
20+
<map-option value="asian">Asian</map-option>
21+
<map-option value="cajun">Cajun</map-option>
22+
<map-option value="indian">Indian</map-option>
23+
<map-option value="italian">Italian</map-option>
24+
<map-option value="mexican">Mexican</map-option>
25+
</map-select>
26+
<map-link tref="../../shared/restaurants/{cusine}.mapml" rel="features"/>
27+
</map-extent>
28+
</layer->
1429
</mapml-viewer>
1530
</body>
1631
</html>

i18n/rtl/restaurants.mapml

Lines changed: 0 additions & 386 deletions
This file was deleted.

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ <h2>Styling</h2>
9393
<h2>Miscellaneous</h2>
9494
<ul class="example">
9595
<li>Snow and Ice Probability: <a href="datacube/">Time Dimension &lt;select&gt;</a></li>
96+
<li><a href="multiple-extents/">Multiple &lt;map-extent&gt; elements in a layer</a></li>
9697
</ul>
9798
</section>
9899
</body>

linking/features/sportsplex.mapml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,7 @@
35493549
<map-polygon>
35503550
<map-coordinates>
35513551
1510099.2 -181123.3 1510100.4 -181122.9 1510101.1 -181122.7 1510101.1 -181122.8 1510101.4 -181122.7 1510101.4 -181122.5 1510101.3 -181122.3 1510103.8 -181121.6
3552-
<map-span class="door leaflet-interactive" aria-label="door" style="stroke: yellow; stroke-width: 4px">1510104.9 -181125.0 1510105.20 -181126</map-span> 1510106.1 -181129.0 1510107.1 -181132.3 1510104.1 -181133.3 1510102.0 -181132.1 1510099.2 -181123.3</map-coordinates>
3552+
<map-span class="door leaflet-interactive" tabindex="0" aria-label="door" style="stroke: yellow; stroke-width: 4px">1510104.9 -181125.0 1510105.20 -181126</map-span> 1510106.1 -181129.0 1510107.1 -181132.3 1510104.1 -181133.3 1510102.0 -181132.1 1510099.2 -181123.3</map-coordinates>
35533553
</map-polygon>
35543554
<map-polygon>
35553555
<map-coordinates>1510108.2 -181118.9 1510109.7 -181123.4 1510104.9 -181124.9 1510103.9 -181121.5 1510105.3 -181121.0 1510105.4 -181121.4 1510105.7 -181121.3 1510105.3 -181119.8 1510108.2 -181118.9</map-coordinates>
-1.23 KB
Binary file not shown.
-696 Bytes
Binary file not shown.
-2.41 KB
Binary file not shown.
-1.43 KB
Binary file not shown.
-618 Bytes
Binary file not shown.

multiple-extents/dist/index.html

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)