|
72 | 72 | </noscript> |
73 | 73 | </head> |
74 | 74 | <body> |
75 | | - <mapml-viewer projection="CBMTILE" zoom="2" lat="45" lon="-90" controls controlslist="nofullscreen geolocation"> |
76 | | - <map-caption>A pleasing map of Canada</map-caption> |
77 | | - <layer- label="CBMT" src="https://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked></layer-> |
78 | | - <layer- label="Hat Guy" checked> |
79 | | - <map-feature id="twohats" zoom="15" class="twohats"> |
80 | | - <map-properties> |
81 | | - <table> |
82 | | - <tr> |
83 | | - <th>code</th> |
84 | | - <td>1200020</td> |
85 | | - </tr> |
86 | | - <tr> |
87 | | - <th>accuracy</th> |
88 | | - <td>26</td> |
89 | | - </tr> |
90 | | - <tr> |
91 | | - <th>valdate</th> |
92 | | - <td>1995</td> |
93 | | - </tr> |
94 | | - <tr> |
95 | | - <th>image</th> |
96 | | - <td><a href="https://www.veterans.gc.ca/eng/remembrance/memorials/national-inventory-canadian-memorials/details/9304"> |
97 | | - <img src="https://www.veterans.gc.ca/images/remembrance/memorials/national-inventory-canadian-memorials/mem/35059-173a.jpg" width="60" height="60"/> |
98 | | - </a> |
99 | | - </td> |
100 | | - </tr> |
101 | | - <tr> |
102 | | - <th>theme</th> |
103 | | - <td>FO</td> |
104 | | - </tr> |
105 | | - <tr> |
106 | | - <th>type</th> |
107 | | - <td>2</td> |
108 | | - </tr> |
109 | | - <tr> |
110 | | - <th>elevation</th> |
111 | | - <td>61</td> |
112 | | - </tr> |
113 | | - <tr> |
114 | | - <th>altiaccu</th> |
115 | | - <td>5</td> |
116 | | - </tr> |
117 | | - </table> |
118 | | - </map-properties> |
119 | | - <map-geometry> |
120 | | - <map-point> |
121 | | - <map-coordinates>-75.705278 45.397778</map-coordinates> |
122 | | - </map-point> |
123 | | - </map-geometry> |
124 | | - </map-feature> |
125 | | - </layer-> |
126 | | - </mapml-viewer> |
127 | | - </body> |
| 75 | +<mapml-viewer projection="OSMTILE" zoom="10" lon="-75.7" lat="45.4" controls=""> |
| 76 | + <layer- label="Polygon" checked> |
| 77 | + <map-meta name="projection" content="OSMTILE"></map-meta> |
| 78 | + <map-meta name="zoom" content="min=10,max=11"></map-meta> |
| 79 | + <map-feature zoom="10"> |
| 80 | + <map-featurecaption>Click me!</map-featurecaption> |
| 81 | + <!-- Setting the geometry coordinates to gcrs, as the default is pcrs --> |
| 82 | + <map-geometry cs="gcrs"> |
| 83 | + <map-a href="#15, -75.699, 45.420"> |
| 84 | + <map-polygon class="polygon"> |
| 85 | + <map-coordinates>-75.8242035 45.3526278 -75.6793213 45.4572409 -75.5680847 45.4692806 -75.6092834 45.4215881 -75.5756378 45.3810901 -75.7946777 45.3120804</map-coordinates> |
| 86 | + </map-polygon> |
| 87 | + </map-a> |
| 88 | + </map-geometry> |
| 89 | + <map-properties></map-properties> |
| 90 | + </map-feature> |
| 91 | + </layer-> |
| 92 | + |
| 93 | +<!-- <layer- label="Points" checked> |
| 94 | + <map-meta name="projection" content="OSMTILE"></map-meta> |
| 95 | + <map-meta name="zoom" content="min=14,max=24"></map-meta> |
| 96 | + <map-feature> |
| 97 | + <map-featurecaption>Point 1</map-featurecaption> |
| 98 | + Setting the geometry coordinates to gcrs, as the default is pcrs |
| 99 | + <map-geometry cs="gcrs"> |
| 100 | + <map-point class="point"> |
| 101 | + <map-coordinates>-75.6978285 45.4202251</map-coordinates> |
| 102 | + </map-point> |
| 103 | + </map-geometry> |
| 104 | + <map-properties></map-properties> |
| 105 | + </map-feature> |
| 106 | + <map-feature> |
| 107 | + <map-featurecaption>Point 2</map-featurecaption> |
| 108 | + Setting the geometry coordinates to gcrs, as the default is pcrs |
| 109 | + <map-geometry cs="gcrs"> |
| 110 | + <map-point class="point"> |
| 111 | + <map-coordinates>-75.7002854 45.4199465</map-coordinates> |
| 112 | + </map-point> |
| 113 | + </map-geometry> |
| 114 | + <map-properties></map-properties> |
| 115 | + </map-feature> |
| 116 | + <map-feature> |
| 117 | + <map-featurecaption>point 3</map-featurecaption> |
| 118 | + Setting the geometry coordinates to gcrs, as the default is pcrs |
| 119 | + <map-geometry cs="gcrs"> |
| 120 | + <map-point class="point"> |
| 121 | + <map-coordinates>-75.6984723 45.4179207</map-coordinates> |
| 122 | + </map-point> |
| 123 | + </map-geometry> |
| 124 | + <map-properties></map-properties> |
| 125 | + </map-feature> |
| 126 | + </layer->--> |
| 127 | +</mapml-viewer> </body> |
128 | 128 | </html> |
0 commit comments