@prushforth/map 1.0.0-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +89 -0
  3. package/demo/index.html +78 -0
  4. package/dist/cjs/AttributionButton-DgbgLHy4.js +106 -0
  5. package/dist/cjs/MapTileLayer-D4vp8bR4.js +454 -0
  6. package/dist/cjs/app-globals-DY--Q2Nl.js +775 -0
  7. package/dist/cjs/calculatePosition-CDcdNl7C.js +92 -0
  8. package/dist/cjs/gcds-ext-map.cjs.js +47 -0
  9. package/dist/cjs/gcds-ext-map_2.cjs.entry.js +8081 -0
  10. package/dist/cjs/index-CW_WOSnc.js +32697 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +14 -0
  13. package/dist/cjs/locale-_4nEyxeO.js +153 -0
  14. package/dist/cjs/map-a.cjs.entry.js +16 -0
  15. package/dist/cjs/map-caption.cjs.entry.js +55 -0
  16. package/dist/cjs/map-extent.cjs.entry.js +993 -0
  17. package/dist/cjs/map-feature.cjs.entry.js +636 -0
  18. package/dist/cjs/map-featurecaption.cjs.entry.js +14 -0
  19. package/dist/cjs/map-geometry.cjs.entry.js +36 -0
  20. package/dist/cjs/map-input.cjs.entry.js +348 -0
  21. package/dist/cjs/map-link.cjs.entry.js +6055 -0
  22. package/dist/cjs/map-meta.cjs.entry.js +40 -0
  23. package/dist/cjs/map-properties.cjs.entry.js +14 -0
  24. package/dist/cjs/map-select.cjs.entry.js +100 -0
  25. package/dist/cjs/map-span.cjs.entry.js +14 -0
  26. package/dist/cjs/map-style.cjs.entry.js +127 -0
  27. package/dist/cjs/map-tile.cjs.entry.js +274 -0
  28. package/dist/cjs/renderStyles-yOMXvf12.js +59 -0
  29. package/dist/collection/assets/canada.json +1 -0
  30. package/dist/collection/assets/images/w3community.ico +0 -0
  31. package/dist/collection/assets/mapml/en/apstile/arctic +18 -0
  32. package/dist/collection/assets/mapml/en/cbmtile/canvec +22 -0
  33. package/dist/collection/assets/mapml/en/cbmtile/cbmt +24 -0
  34. package/dist/collection/assets/mapml/en/cbmtile/cbmtgeom +20 -0
  35. package/dist/collection/assets/mapml/en/cbmtile/cbmtsimple +20 -0
  36. package/dist/collection/assets/mapml/en/cbmtile/current_conditions +33 -0
  37. package/dist/collection/assets/mapml/en/cbmtile/toporama +25 -0
  38. package/dist/collection/assets/mapml/en/custom/arcticsdi.mapml +18 -0
  39. package/dist/collection/assets/mapml/en/osmtile/cbmt +24 -0
  40. package/dist/collection/assets/mapml/en/osmtile/current_conditions +32 -0
  41. package/dist/collection/assets/mapml/en/osmtile/dark.mapml +19 -0
  42. package/dist/collection/assets/mapml/en/osmtile/light.mapml +19 -0
  43. package/dist/collection/assets/mapml/en/osmtile/osm +19 -0
  44. package/dist/collection/assets/mapml/en/osmtile/toporama +25 -0
  45. package/dist/collection/assets/mapml/fr/apstile/arctic +19 -0
  46. package/dist/collection/assets/mapml/fr/cbmtile/canvec +22 -0
  47. package/dist/collection/assets/mapml/fr/cbmtile/cbmt +24 -0
  48. package/dist/collection/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
  49. package/dist/collection/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
  50. package/dist/collection/assets/mapml/fr/cbmtile/current_conditions +25 -0
  51. package/dist/collection/assets/mapml/fr/cbmtile/toporama +25 -0
  52. package/dist/collection/assets/mapml/fr/osmtile/cbmt +24 -0
  53. package/dist/collection/assets/mapml/fr/osmtile/current_conditions +24 -0
  54. package/dist/collection/assets/mapml/fr/osmtile/dark.mapml +19 -0
  55. package/dist/collection/assets/mapml/fr/osmtile/light.mapml +19 -0
  56. package/dist/collection/assets/mapml/fr/osmtile/osm +19 -0
  57. package/dist/collection/assets/mapml/fr/osmtile/toporama +25 -0
  58. package/dist/collection/assets/pmtiles/darkTheme.js +19 -0
  59. package/dist/collection/assets/pmtiles/lightTheme.js +19 -0
  60. package/dist/collection/collection-manifest.json +28 -0
  61. package/dist/collection/components/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
  62. package/dist/collection/components/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
  63. package/dist/collection/components/gcds-ext-map/gcds-ext-map.css +2138 -0
  64. package/dist/collection/components/gcds-ext-map/gcds-ext-map.js +1517 -0
  65. package/dist/collection/components/gcds-ext-map/stories/gcds-ext-map.stories.js +367 -0
  66. package/dist/collection/components/map-a/map-a.js +89 -0
  67. package/dist/collection/components/map-caption/map-caption.js +52 -0
  68. package/dist/collection/components/map-extent/map-extent.js +809 -0
  69. package/dist/collection/components/map-feature/map-feature.js +724 -0
  70. package/dist/collection/components/map-featurecaption/map-featurecaption.js +6 -0
  71. package/dist/collection/components/map-geometry/map-geometry.js +57 -0
  72. package/dist/collection/components/map-input/map-input.js +355 -0
  73. package/dist/collection/components/map-layer/map-layer.js +1245 -0
  74. package/dist/collection/components/map-layer/stories/map-layer.stories.js +101 -0
  75. package/dist/collection/components/map-link/map-link.js +1149 -0
  76. package/dist/collection/components/map-meta/map-meta.js +82 -0
  77. package/dist/collection/components/map-properties/map-properties.js +7 -0
  78. package/dist/collection/components/map-select/map-select.js +145 -0
  79. package/dist/collection/components/map-span/map-span.js +7 -0
  80. package/dist/collection/components/map-style/map-style.js +144 -0
  81. package/dist/collection/components/map-tile/map-tile.js +370 -0
  82. package/dist/collection/components/utils/mapml/DOMTokenList.js +123 -0
  83. package/dist/collection/components/utils/mapml/DefaultMapOptions.js +11 -0
  84. package/dist/collection/components/utils/mapml/Util.js +1601 -0
  85. package/dist/collection/components/utils/mapml/control/AttributionButton.js +101 -0
  86. package/dist/collection/components/utils/mapml/control/FullscreenButton.js +181 -0
  87. package/dist/collection/components/utils/mapml/control/GeolocationButton.js +70 -0
  88. package/dist/collection/components/utils/mapml/control/LayerControl.js +212 -0
  89. package/dist/collection/components/utils/mapml/control/ReloadButton.js +75 -0
  90. package/dist/collection/components/utils/mapml/control/ScaleBar.js +108 -0
  91. package/dist/collection/components/utils/mapml/control/SearchButton.js +565 -0
  92. package/dist/collection/components/utils/mapml/elementSupport/extents/createLayerControlForExtent.js +259 -0
  93. package/dist/collection/components/utils/mapml/elementSupport/inputs/heightInput.js +18 -0
  94. package/dist/collection/components/utils/mapml/elementSupport/inputs/hiddenInput.js +19 -0
  95. package/dist/collection/components/utils/mapml/elementSupport/inputs/locationInput.js +127 -0
  96. package/dist/collection/components/utils/mapml/elementSupport/inputs/widthInput.js +18 -0
  97. package/dist/collection/components/utils/mapml/elementSupport/inputs/zoomInput.js +30 -0
  98. package/dist/collection/components/utils/mapml/elementSupport/layers/calculatePosition.js +88 -0
  99. package/dist/collection/components/utils/mapml/elementSupport/layers/createLayerControlForLayer.js +326 -0
  100. package/dist/collection/components/utils/mapml/elementSupport/layers/renderStyles.js +55 -0
  101. package/dist/collection/components/utils/mapml/elementSupport/viewers/matchMedia.js +251 -0
  102. package/dist/collection/components/utils/mapml/features/featureRenderer.js +342 -0
  103. package/dist/collection/components/utils/mapml/features/geometry.js +268 -0
  104. package/dist/collection/components/utils/mapml/features/path.js +485 -0
  105. package/dist/collection/components/utils/mapml/handlers/AnnounceMovement.js +154 -0
  106. package/dist/collection/components/utils/mapml/handlers/ContextMenu.js +1436 -0
  107. package/dist/collection/components/utils/mapml/handlers/FeatureIndex.js +116 -0
  108. package/dist/collection/components/utils/mapml/handlers/QueryHandler.js +476 -0
  109. package/dist/collection/components/utils/mapml/handlers/keyboard.js +60 -0
  110. package/dist/collection/components/utils/mapml/layers/Crosshair.js +108 -0
  111. package/dist/collection/components/utils/mapml/layers/DebugOverlay.js +357 -0
  112. package/dist/collection/components/utils/mapml/layers/FeatureIndexOverlay.js +239 -0
  113. package/dist/collection/components/utils/mapml/layers/ImageLayer.js +136 -0
  114. package/dist/collection/components/utils/mapml/layers/MapExtentLayer.js +114 -0
  115. package/dist/collection/components/utils/mapml/layers/MapFeatureLayer.js +623 -0
  116. package/dist/collection/components/utils/mapml/layers/MapLayer.js +640 -0
  117. package/dist/collection/components/utils/mapml/layers/MapTileLayer.js +450 -0
  118. package/dist/collection/components/utils/mapml/layers/TemplatedFeaturesOrTilesLayer.js +346 -0
  119. package/dist/collection/components/utils/mapml/layers/TemplatedImageLayer.js +276 -0
  120. package/dist/collection/components/utils/mapml/layers/TemplatedPMTilesLayer.js +135 -0
  121. package/dist/collection/components/utils/mapml/layers/TemplatedTileLayer.js +664 -0
  122. package/dist/collection/components/utils/utils.js +26 -0
  123. package/dist/collection/fonts/icons/LICENSE.txt +92 -0
  124. package/dist/collection/fonts/icons/README.md +543 -0
  125. package/dist/collection/fonts/icons/gcds-icons.css +110 -0
  126. package/dist/collection/fonts/icons/gcds-icons.eot +0 -0
  127. package/dist/collection/fonts/icons/gcds-icons.svg +82 -0
  128. package/dist/collection/fonts/icons/gcds-icons.ttf +0 -0
  129. package/dist/collection/fonts/icons/gcds-icons.woff +0 -0
  130. package/dist/collection/fonts/lato/LICENSE.txt +48 -0
  131. package/dist/collection/fonts/lato/README.md +195 -0
  132. package/dist/collection/fonts/lato/gcds-lato-italic.woff +0 -0
  133. package/dist/collection/fonts/lato/gcds-lato-italic.woff2 +0 -0
  134. package/dist/collection/fonts/lato/gcds-lato.css +30 -0
  135. package/dist/collection/fonts/lato/gcds-lato.woff +0 -0
  136. package/dist/collection/fonts/lato/gcds-lato.woff2 +0 -0
  137. package/dist/collection/fonts/noto-sans/LICENSE.txt +43 -0
  138. package/dist/collection/fonts/noto-sans/README.md +423 -0
  139. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
  140. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
  141. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
  142. package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
  143. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
  144. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
  145. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
  146. package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
  147. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
  148. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
  149. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
  150. package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
  151. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
  152. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
  153. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
  154. package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
  155. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
  156. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
  157. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
  158. package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
  159. package/dist/collection/fonts/noto-sans/gcds-noto-sans.css +89 -0
  160. package/dist/collection/fonts/noto-sans-mono/LICENSE.txt +93 -0
  161. package/dist/collection/fonts/noto-sans-mono/README.md +135 -0
  162. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
  163. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
  164. package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
  165. package/dist/collection/generated/locale.js +148 -0
  166. package/dist/collection/global/mapml-globals.js +916 -0
  167. package/dist/collection/index.js +1 -0
  168. package/dist/collection/leaflet-src.esm.js +14419 -0
  169. package/dist/components/gcds-ext-map.d.ts +11 -0
  170. package/dist/components/gcds-ext-map.js +10 -0
  171. package/dist/components/index.d.ts +35 -0
  172. package/dist/components/index.js +1 -0
  173. package/dist/components/map-a.d.ts +11 -0
  174. package/dist/components/map-a.js +1 -0
  175. package/dist/components/map-caption.d.ts +11 -0
  176. package/dist/components/map-caption.js +1 -0
  177. package/dist/components/map-extent.d.ts +11 -0
  178. package/dist/components/map-extent.js +1 -0
  179. package/dist/components/map-feature.d.ts +11 -0
  180. package/dist/components/map-feature.js +1 -0
  181. package/dist/components/map-featurecaption.d.ts +11 -0
  182. package/dist/components/map-featurecaption.js +1 -0
  183. package/dist/components/map-geometry.d.ts +11 -0
  184. package/dist/components/map-geometry.js +1 -0
  185. package/dist/components/map-input.d.ts +11 -0
  186. package/dist/components/map-input.js +1 -0
  187. package/dist/components/map-layer.d.ts +11 -0
  188. package/dist/components/map-layer.js +1 -0
  189. package/dist/components/map-link.d.ts +11 -0
  190. package/dist/components/map-link.js +1 -0
  191. package/dist/components/map-meta.d.ts +11 -0
  192. package/dist/components/map-meta.js +1 -0
  193. package/dist/components/map-properties.d.ts +11 -0
  194. package/dist/components/map-properties.js +1 -0
  195. package/dist/components/map-select.d.ts +11 -0
  196. package/dist/components/map-select.js +1 -0
  197. package/dist/components/map-span.d.ts +11 -0
  198. package/dist/components/map-span.js +1 -0
  199. package/dist/components/map-style.d.ts +11 -0
  200. package/dist/components/map-style.js +1 -0
  201. package/dist/components/map-tile.d.ts +11 -0
  202. package/dist/components/map-tile.js +1 -0
  203. package/dist/components/p-B4YLD_Og.js +1 -0
  204. package/dist/components/p-BE41zrui.js +1 -0
  205. package/dist/components/p-Bpv_U_Lb.js +1 -0
  206. package/dist/components/p-CwRxGZga.js +5 -0
  207. package/dist/components/p-EYVT9Efh.js +1 -0
  208. package/dist/components/p-gwC_yeRa.js +1 -0
  209. package/dist/esm/AttributionButton-CfaoSLCu.js +103 -0
  210. package/dist/esm/MapTileLayer-DvC_iOIS.js +451 -0
  211. package/dist/esm/app-globals-De5ze2BD.js +773 -0
  212. package/dist/esm/calculatePosition-B4YLD_Og.js +90 -0
  213. package/dist/esm/gcds-ext-map.js +43 -0
  214. package/dist/esm/gcds-ext-map_2.entry.js +8078 -0
  215. package/dist/esm/index-BUsJ7i5g.js +32656 -0
  216. package/dist/esm/index.js +1 -0
  217. package/dist/esm/loader.js +12 -0
  218. package/dist/esm/locale-Bpv_U_Lb.js +150 -0
  219. package/dist/esm/map-a.entry.js +14 -0
  220. package/dist/esm/map-caption.entry.js +53 -0
  221. package/dist/esm/map-extent.entry.js +991 -0
  222. package/dist/esm/map-feature.entry.js +634 -0
  223. package/dist/esm/map-featurecaption.entry.js +12 -0
  224. package/dist/esm/map-geometry.entry.js +34 -0
  225. package/dist/esm/map-input.entry.js +346 -0
  226. package/dist/esm/map-link.entry.js +6035 -0
  227. package/dist/esm/map-meta.entry.js +38 -0
  228. package/dist/esm/map-properties.entry.js +12 -0
  229. package/dist/esm/map-select.entry.js +98 -0
  230. package/dist/esm/map-span.entry.js +12 -0
  231. package/dist/esm/map-style.entry.js +125 -0
  232. package/dist/esm/map-tile.entry.js +272 -0
  233. package/dist/esm/renderStyles-EYVT9Efh.js +57 -0
  234. package/dist/gcds-ext-map/assets/canada.json +1 -0
  235. package/dist/gcds-ext-map/assets/images/w3community.ico +0 -0
  236. package/dist/gcds-ext-map/assets/mapml/en/apstile/arctic +18 -0
  237. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/canvec +22 -0
  238. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmt +24 -0
  239. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtgeom +20 -0
  240. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtsimple +20 -0
  241. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/current_conditions +33 -0
  242. package/dist/gcds-ext-map/assets/mapml/en/cbmtile/toporama +25 -0
  243. package/dist/gcds-ext-map/assets/mapml/en/custom/arcticsdi.mapml +18 -0
  244. package/dist/gcds-ext-map/assets/mapml/en/osmtile/cbmt +24 -0
  245. package/dist/gcds-ext-map/assets/mapml/en/osmtile/current_conditions +32 -0
  246. package/dist/gcds-ext-map/assets/mapml/en/osmtile/dark.mapml +19 -0
  247. package/dist/gcds-ext-map/assets/mapml/en/osmtile/light.mapml +19 -0
  248. package/dist/gcds-ext-map/assets/mapml/en/osmtile/osm +19 -0
  249. package/dist/gcds-ext-map/assets/mapml/en/osmtile/toporama +25 -0
  250. package/dist/gcds-ext-map/assets/mapml/fr/apstile/arctic +19 -0
  251. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/canvec +22 -0
  252. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmt +24 -0
  253. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
  254. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
  255. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/current_conditions +25 -0
  256. package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/toporama +25 -0
  257. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/cbmt +24 -0
  258. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/current_conditions +24 -0
  259. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/dark.mapml +19 -0
  260. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/light.mapml +19 -0
  261. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/osm +19 -0
  262. package/dist/gcds-ext-map/assets/mapml/fr/osmtile/toporama +25 -0
  263. package/dist/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
  264. package/dist/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
  265. package/dist/gcds-ext-map/fonts/icons/LICENSE.txt +92 -0
  266. package/dist/gcds-ext-map/fonts/icons/README.md +543 -0
  267. package/dist/gcds-ext-map/fonts/icons/gcds-icons.css +110 -0
  268. package/dist/gcds-ext-map/fonts/icons/gcds-icons.eot +0 -0
  269. package/dist/gcds-ext-map/fonts/icons/gcds-icons.svg +82 -0
  270. package/dist/gcds-ext-map/fonts/icons/gcds-icons.ttf +0 -0
  271. package/dist/gcds-ext-map/fonts/icons/gcds-icons.woff +0 -0
  272. package/dist/gcds-ext-map/fonts/lato/LICENSE.txt +48 -0
  273. package/dist/gcds-ext-map/fonts/lato/README.md +195 -0
  274. package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff +0 -0
  275. package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff2 +0 -0
  276. package/dist/gcds-ext-map/fonts/lato/gcds-lato.css +30 -0
  277. package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff +0 -0
  278. package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff2 +0 -0
  279. package/dist/gcds-ext-map/fonts/noto-sans/LICENSE.txt +43 -0
  280. package/dist/gcds-ext-map/fonts/noto-sans/README.md +423 -0
  281. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
  282. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
  283. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
  284. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
  285. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
  286. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
  287. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
  288. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
  289. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
  290. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
  291. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
  292. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
  293. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
  294. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
  295. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
  296. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
  297. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
  298. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
  299. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
  300. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
  301. package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans.css +89 -0
  302. package/dist/gcds-ext-map/fonts/noto-sans-mono/LICENSE.txt +93 -0
  303. package/dist/gcds-ext-map/fonts/noto-sans-mono/README.md +135 -0
  304. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
  305. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
  306. package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
  307. package/dist/gcds-ext-map/gcds-ext-map.esm.js +1 -0
  308. package/dist/gcds-ext-map/index.esm.js +0 -0
  309. package/dist/gcds-ext-map/leaflet-src.esm.js +14419 -0
  310. package/dist/gcds-ext-map/p-1b22f774.entry.js +1 -0
  311. package/dist/gcds-ext-map/p-29b4ba34.entry.js +1 -0
  312. package/dist/gcds-ext-map/p-2dd09d44.entry.js +1 -0
  313. package/dist/gcds-ext-map/p-3fef47e5.entry.js +1 -0
  314. package/dist/gcds-ext-map/p-4e324a1d.entry.js +1 -0
  315. package/dist/gcds-ext-map/p-4f4a6873.entry.js +1 -0
  316. package/dist/gcds-ext-map/p-9cc5ad37.entry.js +1 -0
  317. package/dist/gcds-ext-map/p-9edfea7d.entry.js +1 -0
  318. package/dist/gcds-ext-map/p-B4YLD_Og.js +1 -0
  319. package/dist/gcds-ext-map/p-B8Id5Ptd.js +1 -0
  320. package/dist/gcds-ext-map/p-BUsJ7i5g.js +6 -0
  321. package/dist/gcds-ext-map/p-Bpv_U_Lb.js +1 -0
  322. package/dist/gcds-ext-map/p-CtOuMgy9.js +1 -0
  323. package/dist/gcds-ext-map/p-Dd474fsL.js +1 -0
  324. package/dist/gcds-ext-map/p-EYVT9Efh.js +1 -0
  325. package/dist/gcds-ext-map/p-a67d721d.entry.js +1 -0
  326. package/dist/gcds-ext-map/p-b16e862b.entry.js +1 -0
  327. package/dist/gcds-ext-map/p-b9cbf1e0.entry.js +10 -0
  328. package/dist/gcds-ext-map/p-cab5246e.entry.js +1 -0
  329. package/dist/gcds-ext-map/p-d58d409b.entry.js +1 -0
  330. package/dist/gcds-ext-map/p-dfa21368.entry.js +1 -0
  331. package/dist/gcds-ext-map/p-f211048a.entry.js +1 -0
  332. package/dist/index.cjs.js +1 -0
  333. package/dist/index.js +1 -0
  334. package/dist/types/components/gcds-ext-map/gcds-ext-map.d.ts +125 -0
  335. package/dist/types/components/gcds-ext-map/stories/gcds-ext-map.stories.d.ts +230 -0
  336. package/dist/types/components/map-a/map-a.d.ts +7 -0
  337. package/dist/types/components/map-caption/map-caption.d.ts +7 -0
  338. package/dist/types/components/map-extent/map-extent.d.ts +53 -0
  339. package/dist/types/components/map-feature/map-feature.d.ts +50 -0
  340. package/dist/types/components/map-featurecaption/map-featurecaption.d.ts +3 -0
  341. package/dist/types/components/map-geometry/map-geometry.d.ts +7 -0
  342. package/dist/types/components/map-input/map-input.d.ts +24 -0
  343. package/dist/types/components/map-layer/map-layer.d.ts +85 -0
  344. package/dist/types/components/map-layer/stories/map-layer.stories.d.ts +96 -0
  345. package/dist/types/components/map-link/map-link.d.ts +66 -0
  346. package/dist/types/components/map-meta/map-meta.d.ts +11 -0
  347. package/dist/types/components/map-properties/map-properties.d.ts +3 -0
  348. package/dist/types/components/map-select/map-select.d.ts +13 -0
  349. package/dist/types/components/map-span/map-span.d.ts +5 -0
  350. package/dist/types/components/map-style/map-style.d.ts +17 -0
  351. package/dist/types/components/map-tile/map-tile.d.ts +32 -0
  352. package/dist/types/components/utils/mapml/DOMTokenList.d.ts +30 -0
  353. package/dist/types/components/utils/mapml/elementSupport/inputs/heightInput.d.ts +7 -0
  354. package/dist/types/components/utils/mapml/elementSupport/inputs/hiddenInput.d.ts +7 -0
  355. package/dist/types/components/utils/mapml/elementSupport/inputs/locationInput.d.ts +14 -0
  356. package/dist/types/components/utils/mapml/elementSupport/inputs/widthInput.d.ts +7 -0
  357. package/dist/types/components/utils/mapml/elementSupport/inputs/zoomInput.d.ts +11 -0
  358. package/dist/types/components/utils/mapml/layers/MapLayer.d.ts +69 -0
  359. package/dist/types/components/utils/utils.d.ts +2 -0
  360. package/dist/types/components.d.ts +521 -0
  361. package/dist/types/gcds-ext-map.d.ts +17 -0
  362. package/dist/types/generated/locale.d.ts +146 -0
  363. package/dist/types/index.d.ts +11 -0
  364. package/dist/types/stencil-public-runtime.d.ts +1861 -0
  365. package/loader/cdn.js +1 -0
  366. package/loader/index.cjs.js +1 -0
  367. package/loader/index.d.ts +24 -0
  368. package/loader/index.es2017.js +1 -0
  369. package/loader/index.js +2 -0
  370. package/package.json +87 -0
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapMeta extends Components.MapMeta, HTMLElement {}
4
+ export const MapMeta: {
5
+ prototype: MapMeta;
6
+ new (): MapMeta;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as n}from"./p-CwRxGZga.js";const a=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost()}get el(){return this}name;content;nameChanged(e,t){}contentChanged(e,t){}set contentValue(e){"cs"===this.name&&e&&!["tcrs","tilematrix","pcrs","gcrs","map","tile"].includes(e)||(this.content=e)}connectedCallback(){}disconnectedCallback(){}render(){return null}static get watchers(){return{name:[{nameChanged:0}],content:[{contentChanged:0}]}}},[512,"map-meta",{name:[513],content:[513]},void 0,{name:[{nameChanged:0}],content:[{contentChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["map-meta"].forEach((t=>{"map-meta"===t&&(customElements.get(e(t))||customElements.define(e(t),a))}))}c();const s=a,m=c;export{s as MapMeta,m as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapProperties extends Components.MapProperties, HTMLElement {}
4
+ export const MapProperties: {
5
+ prototype: MapProperties;
6
+ new (): MapProperties;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as s}from"./p-CwRxGZga.js";const p=t(class extends s{render(){return null}connectedCallback(){this.textContent=this.render()}static get is(){return"map-properties"}},[1,"map-properties"]);"undefined"!=typeof customElements&&["map-properties"].forEach((t=>{"map-properties"===t&&(customElements.get(e(t))||customElements.define(e(t),p))}));export{p as MapProperties}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapSelect extends Components.MapSelect, HTMLElement {}
4
+ export const MapSelect: {
5
+ prototype: MapSelect;
6
+ new (): MapSelect;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as n}from"./p-CwRxGZga.js";const s=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost()}get el(){return this}name;selectDetails;htmlSelect;connectedCallback(){this._createLayerControlForSelect(),this.el.selectdetails=this.selectDetails,this.el.htmlselect=this.htmlSelect}disconnectedCallback(){}nameChanged(e,t){}_createLayerControlForSelect(){this.htmlSelect=this.transcribe();const e=document.createElement("details");e.className="mapml-layer-item-details mapml-control-layers";const t=document.createElement("summary"),n=document.createElement("label");n.innerText=this.name||"",this.el.hasAttribute("id")&&n.setAttribute("for",this.el.getAttribute("id")),t.appendChild(n),e.appendChild(t),e.appendChild(this.htmlSelect),this.selectDetails=e,this.htmlSelect.addEventListener("change",(()=>{this.el.parentElement?._extentLayer?.redraw?.()}))}transcribe(){const e=document.createElement("select"),t=this.el.getAttributeNames();for(let n=0;n<t.length;n++)e.setAttribute(t[n],this.el.getAttribute(t[n]));const n=this.el.querySelectorAll("map-option");for(let t=0;t<n.length;t++){const s=document.createElement("option"),a=n[t].getAttributeNames();for(let e=0;e<a.length;e++)s.setAttribute(a[e],n[t].getAttribute(a[e]));s.innerHTML=n[t].innerHTML,e.appendChild(s)}return e}async whenReady(){return new Promise(((e,t)=>{let n,s;this.selectDetails?e():(n=setInterval((function(a){a.selectDetails?(clearInterval(n),clearTimeout(s),e()):a.el.isConnected||(clearInterval(n),clearTimeout(s),t("map-select was disconnected while waiting to be ready"))}),300,this),s=setTimeout((function(){clearInterval(n),clearTimeout(s),t("Timeout reached waiting for map-select to be ready")}),1e4))}))}render(){return null}static get watchers(){return{name:[{nameChanged:0}]}}},[512,"map-select",{name:[513],whenReady:[64]},void 0,{name:[{nameChanged:0}]}]);function a(){"undefined"!=typeof customElements&&["map-select"].forEach((t=>{"map-select"===t&&(customElements.get(e(t))||customElements.define(e(t),s))}))}a();const c=s,i=a;export{c as MapSelect,i as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapSpan extends Components.MapSpan, HTMLElement {}
4
+ export const MapSpan: {
5
+ prototype: MapSpan;
6
+ new (): MapSpan;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as s,H as t}from"./p-CwRxGZga.js";const a=s(class extends t{get el(){return this}connectedCallback(){}disconnectedCallback(){}static get is(){return"map-span"}},[0,"map-span"]);"undefined"!=typeof customElements&&["map-span"].forEach((s=>{"map-span"===s&&(customElements.get(e(s))||customElements.define(e(s),a))}));export{a as MapSpan}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapStyle extends Components.MapStyle, HTMLElement {}
4
+ export const MapStyle: {
5
+ prototype: MapStyle;
6
+ new (): MapStyle;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t,p as s,H as i}from"./p-CwRxGZga.js";const e=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost()}get el(){return this}media;_mql;_changeHandler;_observer;styleElement;_stylesheetHost;async mediaChanged(t,s){s!==t&&await this._registerMediaQuery(t)}getMapEl(){return window.M?.Util?.getClosest?.(this.el,"gcds-ext-map")||this.el.closest("gcds-ext-map")}_connect(){this.styleElement=document.createElement("style"),this.styleElement.mapStyle=this.el,this.styleElement.textContent=this.el.textContent,this._copyAttributes(this.el,this.styleElement),Object.defineProperty(this.el,"styleElement",{get:()=>this.styleElement,configurable:!0,enumerable:!0}),this._stylesheetHost&&(this._stylesheetHost._layer?this._stylesheetHost._layer.renderStyles?.(this.el):this._stylesheetHost._templatedLayer?this._stylesheetHost._templatedLayer.renderStyles?.(this.el):this._stylesheetHost._extentLayer&&this._stylesheetHost._extentLayer.renderStyles?.(this.el),this._observer=new MutationObserver((()=>{this.styleElement.textContent=this.el.textContent})),this._observer.observe(this.el,{childList:!0,subtree:!0,characterData:!0}))}_disconnect(){this._observer&&(this._observer.disconnect(),this._observer=void 0),this._stylesheetHost&&this.styleElement&&(this.styleElement.remove(),this.styleElement=void 0)}_copyAttributes(t,s){Array.from(t.attributes).forEach((t=>{"media"!==t.nodeName&&"data-testid"!==t.nodeName&&s.setAttribute(t.nodeName,t.nodeValue)}))}async _registerMediaQuery(t){if(this._changeHandler||(this._changeHandler=()=>{this._disconnect(),this._mql&&this._mql.matches&&this._connect()}),t){const s=this.getMapEl();if(!s)return;"function"==typeof s.whenReady&&await s.whenReady(),this._mql&&this._mql.removeEventListener("change",this._changeHandler),this._mql=s.matchMedia(t),this._changeHandler(),this._mql.addEventListener("change",this._changeHandler)}else this._mql&&(this._mql.removeEventListener("change",this._changeHandler),this._mql=void 0,this._disconnect(),this._connect())}async connectedCallback(){this._stylesheetHost=this.el.getRootNode()instanceof ShadowRoot?this.el.getRootNode().host:this.el.parentElement,this._stylesheetHost&&(this.media?await this._registerMediaQuery(this.media):this._connect())}disconnectedCallback(){this._disconnect()}static get watchers(){return{media:[{mediaChanged:0}]}}},[512,"map-style",{media:[513]},void 0,{media:[{mediaChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["map-style"].forEach((s=>{"map-style"===s&&(customElements.get(t(s))||customElements.define(t(s),e))}))}h();const a=e,n=h;export{a as MapStyle,n as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MapTile extends Components.MapTile, HTMLElement {}
4
+ export const MapTile: {
5
+ prototype: MapTile;
6
+ new (): MapTile;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t,p as s,H as i,U as e}from"./p-CwRxGZga.js";import{m as h}from"./p-gwC_yeRa.js";import{c as o}from"./p-B4YLD_Og.js";const n=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost()}get el(){return this}row;col;zoom;src;_parentEl;_tileLayer;_extent;_initialRow;_initialCol;_initialZoom;_hasConnected=!1;srcChanged(t,s){s!==t&&(this._extent&&this._calculateExtent(),this._tileLayer&&(this._tileLayer.removeMapTile(this.el),this._tileLayer.addMapTile(this.el)))}connectedCallback(){this._initialRow=this.el.hasAttribute("row")?+this.el.getAttribute("row"):this.row??0,this._initialCol=this.el.hasAttribute("col")?+this.el.getAttribute("col"):this.col??0;let t=0;if(this.el.hasAttribute("zoom"))t=+this.el.getAttribute("zoom");else if(void 0!==this.zoom)t=this.zoom;else{const s=this._getMetaZoomValue();t=null!==s?s:this.getMapEl()?.zoom||0}this._initialZoom=t,this._hasConnected=!0;const s=this.el.getAttribute.bind(this.el),i=this.el.setAttribute.bind(this.el);this.el.getAttribute=t=>{if(this._hasConnected)switch(t){case"row":return this._initialRow+"";case"col":return this._initialCol+"";case"zoom":return this._initialZoom+""}return s(t)},this.el.setAttribute=(t,s)=>{if(this._hasConnected)switch(t){case"row":case"col":case"zoom":return}i(t,s)},Object.defineProperties(this.el,{row:{get:()=>this._initialRow,configurable:!0},col:{get:()=>this._initialCol,configurable:!0},zoom:{get:()=>this._initialZoom,configurable:!0}});const e=this.el.parentNode;this._parentEl="MAP-LAYER"===e.nodeName||"LAYER-"===e.nodeName||"MAP-LINK"===e.nodeName?e:e.host,(new Image).src=this.src||"",this._createOrGetTileLayer()}disconnectedCallback(){if(this._tileLayer&&(this._tileLayer.removeMapTile(this.el),this._tileLayer._mapTiles&&0===this._tileLayer._mapTiles.length)){this._tileLayer.remove(),this._tileLayer=null,delete this._tileLayer;const t=this?._parentEl?._layerRegistry?.get(this.position);t&&(t.count--,0===t.count&&this._parentEl._layerRegistry.delete(this.position))}}get rowValue(){return this._hasConnected?this._initialRow:+this.row}get colValue(){return this._hasConnected?this._initialCol:+this.col}get zoomValue(){return this._hasConnected?this._initialZoom:+this.zoom}get extent(){return this._extent||this._calculateExtent(),this._extent}get position(){return o(this.el)}isFirst(){return!this._parentEl._layerRegistry.has(this.position)}getPrevious(){return this.isFirst()?null:this.el.previousElementSibling}async zoomTo(){const t=this.extent,s=this.getMapEl()?._map;if(!t||!s)return;const i=t.bottomRight.pcrs.horizontal,h=t.topLeft.pcrs.vertical,o=window.L.bounds(window.L.point(t.topLeft.pcrs.horizontal,t.bottomRight.pcrs.vertical),window.L.point(i,h)),n=s.options.crs.unproject(o.getCenter(!0));s.setView(n,e.getMaxZoom(o,s,t.zoom.minZoom,t.zoom.maxZoom),{animate:!1})}getMapEl(){return e.getClosest(this.el,"gcds-ext-map")}getLayerEl(){return e.getClosest(this.el,"map-layer,layer-")}_getMetaZoomValue(){const t=this.getLayerEl();if(!t)return null;const s=t.querySelector('map-meta[name="zoom"][content]');if(!s)return null;const i=s.getAttribute("content");if(!i)return null;const e=i.match(/value=(\d+)/);return e&&e[1]?parseInt(e[1],10):null}getMeta(t){const s=t.toLowerCase();if("cs"!==s&&"zoom"!==s&&"projection"!==s)return;const i=this._parentEl?.shadowRoot?.querySelector(`map-meta[name=${s}][content]`);return"MAP-LINK"===this._parentEl?.nodeName?i||this._parentEl.parentElement?.getMeta(t):this._parentEl?.src?this._parentEl.shadowRoot?.querySelector(`map-meta[name=${s}][content]`):this._parentEl.querySelector(`map-meta[name=${s}][content]`)}async _createOrGetTileLayer(){if(!this._parentEl?.whenReady)return;await this._parentEl.whenReady();const t=this._parentEl;if(this.isFirst())this._tileLayer=h({projection:this.getMapEl()?.projection,opacity:1,pane:t._templatedLayer?.getContainer?.()||t._layer?.getContainer?.(),zIndex:this.position}),this._tileLayer.addMapTile(this.el),t._templatedLayer?.addLayer?t._templatedLayer.addLayer(this._tileLayer):t._layer?.addLayer?.(this._tileLayer),this.el._tileLayer=this._tileLayer,t._layerRegistry.set(this.position,{layer:this._tileLayer,count:1});else{const s=t._layerRegistry.get(this.position);this._tileLayer=s?.layer,s&&s.count++,this._tileLayer&&(this._tileLayer.addMapTile(this.el),this.el._tileLayer=this._tileLayer)}}_calculateExtent(){const t=this.getMapEl();if(!t||!t._map)return;const s=t._map,i=s.options.projection,h=window.M[i].options.crs.tile.bounds.max.x,o=this.colValue*h,n=this.rowValue*h,r=window.L.bounds(window.L.point(o,n),window.L.point(o+h,n+h)),a=e.pixelToPCRSBounds(r,this.zoomValue,i);this._extent=e._convertAndFormatPCRS(a,s.options.crs,i),this._extent.zoom={minZoom:this.zoomValue,maxZoom:this.zoomValue,minNativeZoom:this.zoomValue,maxNativeZoom:this.zoomValue}}render(){return null}static get watchers(){return{src:[{srcChanged:0}]}}},[512,"map-tile",{row:[514],col:[514],zoom:[514],src:[513],zoomTo:[64]},void 0,{src:[{srcChanged:0}]}]);function r(){"undefined"!=typeof customElements&&["map-tile"].forEach((s=>{"map-tile"===s&&(customElements.get(t(s))||customElements.define(t(s),n))}))}r();const a=n,c=r;export{a as MapTile,c as defineCustomElement}
@@ -0,0 +1 @@
1
+ function t(t){const e=t.tagName.toLowerCase(),n=["map-tile","map-extent","map-feature"];if(!n.includes(e))return console.warn(`calculatePosition: Invalid element type ${e}`),0;const o=t.parentNode;if(!o)return 1;const r=o.children||Array.from(o.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE));if(!r||0===r.length)return 1;let l=0,i=null,u=!1;for(const e of r){if(e.nodeType!==Node.ELEMENT_NODE)continue;const o=e.tagName.toLowerCase();if(n.includes(o)){if(e===t)return u=!0,"map-extent"===o?(l++,l):(i===o||l++,l);u||("map-extent"===o||null!==i&&i!==o?l++:null===i&&(l=1),i=o)}}return 0}export{t as c}
@@ -0,0 +1 @@
1
+ import{l as t}from"./p-CwRxGZga.js";var i=t.Control.Attribution.extend({_getLocale:function(){return this.options.mapEl&&this.options.mapEl.locale?this.options.mapEl.locale:M.options.locale},onAdd:function(i){for(var s in i.attributionControl=this,this._container=t.DomUtil.create("details","leaflet-control-attribution"),t.DomEvent.disableClickPropagation(this._container),i._layers)i._layers[s].getAttribution&&this.addAttribution(i._layers[s].getAttribution());this._update(),i.on("layeradd",this._addAttribution,this);let u=document.createElement("dialog");u.setAttribute("class","shortcuts-dialog"),u.setAttribute("autofocus",""),u.onclick=function(t){t.stopPropagation()};let a=this._getLocale();return u.innerHTML=`<b>${a.kbdShortcuts} </b><button aria-label="Close" onclick='this.parentElement.close()'><span class="gcds-icon-close" aria-hidden="true"></span></button><ul><b>${a.kbdMovement}</b><li><kbd>&#8593</kbd> ${a.kbdPanUp}</li><li><kbd>&#8595</kbd> ${a.kbdPanDown}</li><li><kbd>&#8592</kbd> ${a.kbdPanLeft}</li><li><kbd>&#8594</kbd> ${a.kbdPanRight}</li><li><kbd>+</kbd> ${a.btnZoomIn}</li><li><kbd>-</kbd> ${a.btnZoomOut}</li><li><kbd>shift</kbd> + <kbd>&#8592/&#8593/&#8594/&#8595</kbd> 3x ${a.kbdPanIncrement}</li><li><kbd>ctrl</kbd> + <kbd>&#8592/&#8593/&#8594/&#8595</kbd> 0.2x ${a.kbdPanIncrement}</li><li><kbd>shift</kbd> + <kbd>+/-</kbd> ${a.kbdZoom}</li></ul><ul><b>${a.kbdFeature}</b><li><kbd>&#8592/&#8593</kbd> ${a.kbdPrevFeature}</li><li><kbd>&#8594/&#8595</kbd> ${a.kbdNextFeature}</li></ul>`,i._container.appendChild(u),this._container},_update:function(){if(!this._map)return;var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var s=[];this.options.prefix&&s.push(this.options.prefix),t.length&&s.push(t.join(", "));let u=this._getLocale();this._container.innerHTML=`<summary><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="30px" viewBox="0 0 24 24" width="30px" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"></path><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></svg></summary><div class="mapml-attribution-container"><button onclick="this.closest('.leaflet-container').querySelector('.shortcuts-dialog').showModal()" class="shortcuts-button mapml-button">${u.kbdShortcuts}</button> | `+s.join(' <span aria-hidden="true">|</span> ')+"</div>",this._container.setAttribute("role","group"),this._container.setAttribute("aria-label",`${u.btnAttribution}`)}});t.Map.mergeOptions({attributionControl:!1,toggleableAttributionControl:!0}),t.Map.addInitHook((function(){this.options.toggleableAttributionControl&&s({mapEl:this.options.mapEl}).addTo(this)}));var s=function(t){const s=t.mapEl&&t.mapEl.closest&&t.mapEl.closest(":lang(fr)")===t.mapEl,u=Object.assign(t,{prefix:`<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDE1NS4zOCA3NS4wMSI+PHBhdGggZD0iTTAsMCAzNi44NCwwIDM2Ljg0LDc1LjAxIDAsNzUuMDF6IE0xMTguNTQsMCAxNTUuMzgsMCAxNTUuMzgsNzUuMDEgMTE4LjU0LDc1LjAxeiBNNzIuNTgsMTUuNjEsNzcuODQsNC45bDUuMjIsMTAuMzJjLjY1LDEuMDksMS4xOCwxLDIuMjIuNDhsNC40OS0yLjIyTDg2Ljg1LDI3Ljg5Yy0uNjEsMi44MywxLDMuNjYsMi43NSwxLjc0TDk2LDIyLjc5bDEuNywzLjg3Yy41NywxLjE3LDEuNDMsMSwyLjU3Ljc5bDYuNjEtMS4zOS0yLjIyLDguMzUsMCwuMThjLS4yNiwxLjA5LS43OCwyLC40NCwyLjUzbDIuMzUsMS4xN0w5My43Nyw0OS44MmMtMS4zOSwxLjQzLS45MSwxLjg3LS4zOSwzLjQ4bDEuMjYsMy44Ny0xMi43MS0yLjNjLTEuNTctLjM5LTIuNjYtLjM5LTIuNy44N2wuNTIsMTQuNThINzUuOTNsLjUyLTE0LjU0YzAtMS40My0xLjA5LTEuMzktMy42Ni0uODZMNjEsNTcuMThsMS41Mi0zLjg3Yy41Mi0xLjQ4LjY2LTIuNDgtLjUyLTMuNDhMNDguMTEsMzguNDZsMi41Ny0xLjU3Yy43NC0uNTcuNzgtMS4xNy4zOS0yLjQ0TDQ4LjQ2LDI2bDYuNywxLjQzYzEuODcuNDQsMi4zOSwwLDIuODctMWwxLjg3LTMuODNMNjYuNTIsMzBjMS4xNywxLjM5LDIuODMuNDgsMi4zMS0xLjUyTDY1LjY1LDEyLjg2bDQuOTIsMi44M2MuNzguNDgsMS42MS42MSwyLjA5LS4zIiBmaWxsPSIjRUIyRDM3Ii8+PC9zdmc+" style="position: relative; top: 2px" alt="${s?"Système de design du gouvernement du Canada - Cartes":"Government of Canada Design System - Maps"}"> <a href="${s?"https://nrcan.github.io/gcds-ext-map/fr/composants/composants-de-carte/":"https://nrcan.github.io/gcds-ext-map/en/components/map-components/"}">${s?"Système de design GC - Cartes":"GC Design System - Maps"}</a> `});return new i(u)};export{i as AttributionButton,s as attributionButton}
@@ -0,0 +1 @@
1
+ const e={cmBack:"Back",cmForward:"Forward",cmReload:"Reload",cmToggleControls:"Toggle Controls",cmCopyCoords:"Copy",cmToggleDebug:"Toggle Debug Mode",cmCopyMapML:"Map",cmCopyExtent:"Extent",cmCopyLocation:"Location",cmPasteLayer:"Paste",cmViewSource:"View Map Source",lmZoomToLayer:"Zoom To Layer",lmCopyLayer:"Copy Layer",lmLayerSettings:"Layer Settings",lmRemoveLayer:"Remove Layer",lmZoomToExtent:"Zoom To Sub-layer",lmCopyExtent:"Copy Sub-layer",lmExtentSettings:"Sub-layer Settings",lmRemoveExtent:"Remove Sub-layer",lmStyle:"Style",lcOpacity:"Opacity",btnZoomIn:"Zoom in",btnZoomOut:"Zoom out",btnSearch:"Search",btnSearchClose:"Close search",searchPlaceholder:"Search…",searchResultWithNoName:"Unnamed",btnAttribution:"Map data attribution",btnFullScreen:"View fullscreen",btnExitFullScreen:"Exit fullscreen",btnLocTrackOn:"Show my location - location tracking on",btnMyLocTrackOn:"My current location, shown on map",btnLocTrackOff:"Show my location - location tracking off",btnMyLastKnownLocTrackOn:"My last known location, shown on map",btnLocTrackLastKnown:"Show my location - last known location shown",btnFocusMap:"Focus Map",btnFocusControls:"Focus Controls",btnPrevFeature:"Previous Feature",btnNextFeature:"Next Feature",amZoom:"zoom level",amColumn:"column",amRow:"row",amMaxZoom:"At maximum zoom level, zoom in disabled",amMinZoom:"At minimum zoom level, zoom out disabled",amZoomedOut:"Zoomed out of bounds, returning to",amDraggedOut:"Dragged out of bounds, returning to",amEastBound:"Reached east bound, panning east disabled",amWestBound:"Reached west bound, panning west disabled",amNorthBound:"Reached north bound, panning north disabled",amSouthBound:"Reached south bound, panning south disabled",kbdShortcuts:"Keyboard shortcuts",kbdMovement:"Movement keys",kbdFeature:"Feature navigation keys",kbdPanUp:"Pan up",kbdPanDown:"Pan down",kbdPanLeft:"Pan left",kbdPanRight:"Pan right",kbdPanIncrement:"pan increment",kbdZoom:"Zoom in/out 3 levels",kbdFocusMap:"Focus map",kbdFocusControls:"Focus controls",kbdPrevFeature:"Previous feature",kbdNextFeature:"Next feature",dfLayer:"Layer",dfExtent:"Sub-layer",dfPastedLayer:"Pasted Layer",dfFeatureCaption:"Feature",popupZoom:"Zoom to here",popupPropName:"Property name",popupPropValue:"Property value",fIndexNoFeatures:"No features found"},o={cmBack:"Retour",cmForward:"Vers l'avant",cmReload:"Rechargez",cmToggleControls:"Basculer les contrôles",cmCopyCoords:"Copie",cmToggleDebug:"Basculer le mode de débogage",cmCopyMapML:"Carte",cmCopyExtent:"Étendue",cmCopyLocation:"Localisation",cmPasteLayer:"Coller",cmViewSource:"Voir la source de la carte",lmZoomToLayer:"Zoomer sur la couche",lmCopyLayer:"Copier (la couche)",lmLayerSettings:"Paramètres de la couche",lmRemoveLayer:"Supprimer la couche",lmZoomToExtent:"Zoomer sur la sous-couche",lmCopyExtent:"Copier (la sous-couche)",lmExtentSettings:"Paramètres de la sous-couche",lmRemoveExtent:"Supprimer la sous-couche",lmStyle:"Style",lcOpacity:"Opacité",btnZoomIn:"Zoomer",btnZoomOut:"Dézoomer",btnSearch:"Rechercher",btnSearchClose:"Fermer la recherche",searchPlaceholder:"Rechercher…",searchResultWithNoName:"Sans nom",btnAttribution:"Attribution des données cartographiques",btnFullScreen:"Affichage plein écran",btnExitFullScreen:"Quitter le plein écran",btnLocTrackOn:"Afficher ma position - suivi de la position activé",btnMyLocTrackOn:"Ma position actuelle, affichée sur la carte",btnLocTrackOff:"Afficher ma position - suivi de la position désactivé",btnMyLastKnownLocTrackOn:"Ma dernière position connue, indiquée sur la carte",btnLocTrackLastKnown:"Afficher ma position - dernière position connue affichée",btnFocusMap:"Carte Focus",btnFocusControls:"Contrôles de Mise au Point",btnPrevFeature:"Fonctionnalité Précédente",btnNextFeature:"Fonctionnalité Suivante",amZoom:"Niveau de zoom",amColumn:"Colonne",amRow:"Rangée",amMaxZoom:"Au niveau de zoom maximal, le zoom avant est désactivé",amMinZoom:"Niveau de zoom minimum, le zoom arrière désactivé",amZoomedOut:"Zoomé en dehors des limites, retour à",amDraggedOut:"Traîné hors des limites, retour à",amEastBound:"Atteint la limite est, déplacement ver l'est désactivé",amWestBound:"Atteint la limite ouest, déplacement ver l'ouest désactivé",amNorthBound:"Atteint la limite nord, déplacement vers le nord désactivé",amSouthBound:"Atteint la limite sud, déplacement vers le sud désactivé",kbdShortcuts:"Raccourcis clavier",kbdMovement:"Touches de mouvement",kbdFeature:"Touches de navigation dans les éléments géographiques",kbdPanUp:"Panoramique vers le haut",kbdPanDown:"Panoramique en bas",kbdPanLeft:"Panoramique vers la gauche",kbdPanRight:"Panoramique vers la droite",kbdPanIncrement:"Incrémenter le panoramique",kbdZoom:"Zoom avant/arrière 3 niveaux",kbdFocusMap:"Centrer la cartehow a",kbdFocusControls:"Centrer les contrôles",kbdPrevFeature:"Élément géographique précédente",kbdNextFeature:"Élément géographique suivante",dfLayer:"Couche",dfExtent:"Sous-couche",dfPastedLayer:"Couche collée",dfFeatureCaption:"Élément géographique",popupZoom:"Zoomer ici",popupPropName:"Nom de la propriété",popupPropValue:"Valeur de la propriété",fIndexNoFeatures:"Aucun élément géographique trouvé"};export{e as a,o as l}