|
8 | 8 | the viewer projection from OSMTILE to CBMTILE. --> |
9 | 9 | <script type="module" src="../../dist/mapml.js"></script> |
10 | 10 | <link rel="stylesheet" href="../../global.css"> |
11 | | - <style>button { |
12 | | - z-index: 1; |
13 | | - position:absolute; |
14 | | - justify-items: center; |
15 | | - bottom: 3.5%; |
| 11 | + <style> |
| 12 | + button { |
| 13 | + z-index: 1; |
| 14 | + position:absolute; |
| 15 | + justify-items: center; |
| 16 | + bottom: 3.5%; |
16 | 17 | } |
17 | 18 | body { |
18 | | - display: flex; |
19 | | - align-items: center; |
20 | | - justify-content: center; |
| 19 | + display: flex; |
| 20 | + align-items: center; |
| 21 | + justify-content: center; |
21 | 22 | } |
22 | 23 | </style> |
| 24 | + <script src="/shared/script/geogratis-search-handler.js"></script> |
23 | 25 | </head> |
24 | 26 | <body> |
25 | | - <mapml-viewer zoom="5" lon="-97.288195" lat="56.555669" controls> |
| 27 | + <mapml-viewer zoom="5" lon="-97.288195" lat="56.555669" controls controlslist="search"> |
26 | 28 | <map-layer checked> |
27 | 29 | <map-meta name="extent" content="top-left-easting=-19959237, top-left-northing=13854059, bottom-right-easting=-1174073, bottom-right-northing=4647371"></map-meta> |
28 | 30 | <map-title>Topo base</map-title> |
| 31 | + <map-link rel="suggestions" tref="https://geogratis.gc.ca/services/geoname/en/geonames.json?q={searchTerms}*&num=20"></map-link> |
| 32 | + <map-link rel="search" tref="https://geogratis.gc.ca/services/geoname/en/geonames.json?q={searchTerms}&num=20"></map-link> |
29 | 33 | <map-extent units="OSMTILE" label="Toprama - Mercator" checked> |
30 | | - <map-input name="z" type="zoom" value="18" min="4" max="18"></map-input> |
| 34 | + <map-input name="z" type="zoom" value="18" min="4" max="22"></map-input> |
31 | 35 | <map-input name="w" type="width"></map-input> |
32 | 36 | <map-input name="h" type="height"></map-input> |
33 | 37 | <map-input name="xmin" type="location" units="pcrs" position="top-left" axis="easting" ></map-input> |
34 | 38 | <map-input name="ymin" type="location" units="pcrs" position="bottom-left" axis="northing" ></map-input> |
35 | 39 | <map-input name="xmax" type="location" units="pcrs" position="top-right" axis="easting" ></map-input> |
36 | 40 | <map-input name="ymax" type="location" units="pcrs" position="top-left" axis="northing" ></map-input> |
37 | | - <map-link rel="image" tref="https://maps.geogratis.gc.ca/wms/toporama_en?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=FALSE&STYLES=&VERSION=1.3.0&LAYERS=WMS-Toporama&WIDTH={w}&HEIGHT={h}&CRS=EPSG:3857&BBOX={xmin},{ymin},{xmax},{ymax}&m4h=t"></map-link> |
| 41 | + <map-link rel="image" tref="https://maps.geogratis.gc.ca/wms/toporama_en?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=FALSE&STYLES=&VERSION=1.3.0&LAYERS=WMS-Toporama&WIDTH={w}&HEIGHT={h}&CRS=EPSG:3857&BBOX={xmin},{ymin},{xmax},{ymax}&m4h=t"></map-link> |
38 | 42 | </map-extent> |
39 | | - <map-extent label="CBMT - Lambert" units="CBMTILE" checked > |
40 | | - <map-input name="z" type="zoom" min="0" max="18"></map-input> |
41 | | - <map-input name="y" type="location" units="tilematrix" axis="row"></map-input> |
42 | | - <map-input name="x" type="location" units="tilematrix" axis="column"></map-input> |
43 | | - <map-link rel="tile" tref="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer/tile/{z}/{y}/{x}?m4h=t" ></map-link> |
44 | | - </map-extent> </map-layer> |
45 | | - <map-layer label="Projection not specified" checked> |
| 43 | + <map-extent label="CBMT - Lambert" units="CBMTILE" checked > |
| 44 | + <map-input name="z" type="zoom" min="0" max="18"></map-input> |
| 45 | + <map-input name="y" type="location" units="tilematrix" axis="row"></map-input> |
| 46 | + <map-input name="x" type="location" units="tilematrix" axis="column"></map-input> |
| 47 | + <map-link rel="tile" tref="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer/tile/{z}/{y}/{x}?m4h=t" ></map-link> |
| 48 | + </map-extent> |
| 49 | + </map-layer> |
| 50 | + <map-layer label="Projection not specified" checked> |
46 | 51 | <map-feature zoom="14"> |
47 | 52 | <map-featurecaption>Copied OSMTILE pcrs location</map-featurecaption> |
48 | 53 | <map-properties> |
|
0 commit comments