@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.
- package/LICENSE +21 -0
- package/README.md +89 -0
- package/demo/index.html +78 -0
- package/dist/cjs/AttributionButton-DgbgLHy4.js +106 -0
- package/dist/cjs/MapTileLayer-D4vp8bR4.js +454 -0
- package/dist/cjs/app-globals-DY--Q2Nl.js +775 -0
- package/dist/cjs/calculatePosition-CDcdNl7C.js +92 -0
- package/dist/cjs/gcds-ext-map.cjs.js +47 -0
- package/dist/cjs/gcds-ext-map_2.cjs.entry.js +8081 -0
- package/dist/cjs/index-CW_WOSnc.js +32697 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +14 -0
- package/dist/cjs/locale-_4nEyxeO.js +153 -0
- package/dist/cjs/map-a.cjs.entry.js +16 -0
- package/dist/cjs/map-caption.cjs.entry.js +55 -0
- package/dist/cjs/map-extent.cjs.entry.js +993 -0
- package/dist/cjs/map-feature.cjs.entry.js +636 -0
- package/dist/cjs/map-featurecaption.cjs.entry.js +14 -0
- package/dist/cjs/map-geometry.cjs.entry.js +36 -0
- package/dist/cjs/map-input.cjs.entry.js +348 -0
- package/dist/cjs/map-link.cjs.entry.js +6055 -0
- package/dist/cjs/map-meta.cjs.entry.js +40 -0
- package/dist/cjs/map-properties.cjs.entry.js +14 -0
- package/dist/cjs/map-select.cjs.entry.js +100 -0
- package/dist/cjs/map-span.cjs.entry.js +14 -0
- package/dist/cjs/map-style.cjs.entry.js +127 -0
- package/dist/cjs/map-tile.cjs.entry.js +274 -0
- package/dist/cjs/renderStyles-yOMXvf12.js +59 -0
- package/dist/collection/assets/canada.json +1 -0
- package/dist/collection/assets/images/w3community.ico +0 -0
- package/dist/collection/assets/mapml/en/apstile/arctic +18 -0
- package/dist/collection/assets/mapml/en/cbmtile/canvec +22 -0
- package/dist/collection/assets/mapml/en/cbmtile/cbmt +24 -0
- package/dist/collection/assets/mapml/en/cbmtile/cbmtgeom +20 -0
- package/dist/collection/assets/mapml/en/cbmtile/cbmtsimple +20 -0
- package/dist/collection/assets/mapml/en/cbmtile/current_conditions +33 -0
- package/dist/collection/assets/mapml/en/cbmtile/toporama +25 -0
- package/dist/collection/assets/mapml/en/custom/arcticsdi.mapml +18 -0
- package/dist/collection/assets/mapml/en/osmtile/cbmt +24 -0
- package/dist/collection/assets/mapml/en/osmtile/current_conditions +32 -0
- package/dist/collection/assets/mapml/en/osmtile/dark.mapml +19 -0
- package/dist/collection/assets/mapml/en/osmtile/light.mapml +19 -0
- package/dist/collection/assets/mapml/en/osmtile/osm +19 -0
- package/dist/collection/assets/mapml/en/osmtile/toporama +25 -0
- package/dist/collection/assets/mapml/fr/apstile/arctic +19 -0
- package/dist/collection/assets/mapml/fr/cbmtile/canvec +22 -0
- package/dist/collection/assets/mapml/fr/cbmtile/cbmt +24 -0
- package/dist/collection/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
- package/dist/collection/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
- package/dist/collection/assets/mapml/fr/cbmtile/current_conditions +25 -0
- package/dist/collection/assets/mapml/fr/cbmtile/toporama +25 -0
- package/dist/collection/assets/mapml/fr/osmtile/cbmt +24 -0
- package/dist/collection/assets/mapml/fr/osmtile/current_conditions +24 -0
- package/dist/collection/assets/mapml/fr/osmtile/dark.mapml +19 -0
- package/dist/collection/assets/mapml/fr/osmtile/light.mapml +19 -0
- package/dist/collection/assets/mapml/fr/osmtile/osm +19 -0
- package/dist/collection/assets/mapml/fr/osmtile/toporama +25 -0
- package/dist/collection/assets/pmtiles/darkTheme.js +19 -0
- package/dist/collection/assets/pmtiles/lightTheme.js +19 -0
- package/dist/collection/collection-manifest.json +28 -0
- package/dist/collection/components/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
- package/dist/collection/components/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
- package/dist/collection/components/gcds-ext-map/gcds-ext-map.css +2138 -0
- package/dist/collection/components/gcds-ext-map/gcds-ext-map.js +1517 -0
- package/dist/collection/components/gcds-ext-map/stories/gcds-ext-map.stories.js +367 -0
- package/dist/collection/components/map-a/map-a.js +89 -0
- package/dist/collection/components/map-caption/map-caption.js +52 -0
- package/dist/collection/components/map-extent/map-extent.js +809 -0
- package/dist/collection/components/map-feature/map-feature.js +724 -0
- package/dist/collection/components/map-featurecaption/map-featurecaption.js +6 -0
- package/dist/collection/components/map-geometry/map-geometry.js +57 -0
- package/dist/collection/components/map-input/map-input.js +355 -0
- package/dist/collection/components/map-layer/map-layer.js +1245 -0
- package/dist/collection/components/map-layer/stories/map-layer.stories.js +101 -0
- package/dist/collection/components/map-link/map-link.js +1149 -0
- package/dist/collection/components/map-meta/map-meta.js +82 -0
- package/dist/collection/components/map-properties/map-properties.js +7 -0
- package/dist/collection/components/map-select/map-select.js +145 -0
- package/dist/collection/components/map-span/map-span.js +7 -0
- package/dist/collection/components/map-style/map-style.js +144 -0
- package/dist/collection/components/map-tile/map-tile.js +370 -0
- package/dist/collection/components/utils/mapml/DOMTokenList.js +123 -0
- package/dist/collection/components/utils/mapml/DefaultMapOptions.js +11 -0
- package/dist/collection/components/utils/mapml/Util.js +1601 -0
- package/dist/collection/components/utils/mapml/control/AttributionButton.js +101 -0
- package/dist/collection/components/utils/mapml/control/FullscreenButton.js +181 -0
- package/dist/collection/components/utils/mapml/control/GeolocationButton.js +70 -0
- package/dist/collection/components/utils/mapml/control/LayerControl.js +212 -0
- package/dist/collection/components/utils/mapml/control/ReloadButton.js +75 -0
- package/dist/collection/components/utils/mapml/control/ScaleBar.js +108 -0
- package/dist/collection/components/utils/mapml/control/SearchButton.js +565 -0
- package/dist/collection/components/utils/mapml/elementSupport/extents/createLayerControlForExtent.js +259 -0
- package/dist/collection/components/utils/mapml/elementSupport/inputs/heightInput.js +18 -0
- package/dist/collection/components/utils/mapml/elementSupport/inputs/hiddenInput.js +19 -0
- package/dist/collection/components/utils/mapml/elementSupport/inputs/locationInput.js +127 -0
- package/dist/collection/components/utils/mapml/elementSupport/inputs/widthInput.js +18 -0
- package/dist/collection/components/utils/mapml/elementSupport/inputs/zoomInput.js +30 -0
- package/dist/collection/components/utils/mapml/elementSupport/layers/calculatePosition.js +88 -0
- package/dist/collection/components/utils/mapml/elementSupport/layers/createLayerControlForLayer.js +326 -0
- package/dist/collection/components/utils/mapml/elementSupport/layers/renderStyles.js +55 -0
- package/dist/collection/components/utils/mapml/elementSupport/viewers/matchMedia.js +251 -0
- package/dist/collection/components/utils/mapml/features/featureRenderer.js +342 -0
- package/dist/collection/components/utils/mapml/features/geometry.js +268 -0
- package/dist/collection/components/utils/mapml/features/path.js +485 -0
- package/dist/collection/components/utils/mapml/handlers/AnnounceMovement.js +154 -0
- package/dist/collection/components/utils/mapml/handlers/ContextMenu.js +1436 -0
- package/dist/collection/components/utils/mapml/handlers/FeatureIndex.js +116 -0
- package/dist/collection/components/utils/mapml/handlers/QueryHandler.js +476 -0
- package/dist/collection/components/utils/mapml/handlers/keyboard.js +60 -0
- package/dist/collection/components/utils/mapml/layers/Crosshair.js +108 -0
- package/dist/collection/components/utils/mapml/layers/DebugOverlay.js +357 -0
- package/dist/collection/components/utils/mapml/layers/FeatureIndexOverlay.js +239 -0
- package/dist/collection/components/utils/mapml/layers/ImageLayer.js +136 -0
- package/dist/collection/components/utils/mapml/layers/MapExtentLayer.js +114 -0
- package/dist/collection/components/utils/mapml/layers/MapFeatureLayer.js +623 -0
- package/dist/collection/components/utils/mapml/layers/MapLayer.js +640 -0
- package/dist/collection/components/utils/mapml/layers/MapTileLayer.js +450 -0
- package/dist/collection/components/utils/mapml/layers/TemplatedFeaturesOrTilesLayer.js +346 -0
- package/dist/collection/components/utils/mapml/layers/TemplatedImageLayer.js +276 -0
- package/dist/collection/components/utils/mapml/layers/TemplatedPMTilesLayer.js +135 -0
- package/dist/collection/components/utils/mapml/layers/TemplatedTileLayer.js +664 -0
- package/dist/collection/components/utils/utils.js +26 -0
- package/dist/collection/fonts/icons/LICENSE.txt +92 -0
- package/dist/collection/fonts/icons/README.md +543 -0
- package/dist/collection/fonts/icons/gcds-icons.css +110 -0
- package/dist/collection/fonts/icons/gcds-icons.eot +0 -0
- package/dist/collection/fonts/icons/gcds-icons.svg +82 -0
- package/dist/collection/fonts/icons/gcds-icons.ttf +0 -0
- package/dist/collection/fonts/icons/gcds-icons.woff +0 -0
- package/dist/collection/fonts/lato/LICENSE.txt +48 -0
- package/dist/collection/fonts/lato/README.md +195 -0
- package/dist/collection/fonts/lato/gcds-lato-italic.woff +0 -0
- package/dist/collection/fonts/lato/gcds-lato-italic.woff2 +0 -0
- package/dist/collection/fonts/lato/gcds-lato.css +30 -0
- package/dist/collection/fonts/lato/gcds-lato.woff +0 -0
- package/dist/collection/fonts/lato/gcds-lato.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/LICENSE.txt +43 -0
- package/dist/collection/fonts/noto-sans/README.md +423 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
- package/dist/collection/fonts/noto-sans/gcds-noto-sans.css +89 -0
- package/dist/collection/fonts/noto-sans-mono/LICENSE.txt +93 -0
- package/dist/collection/fonts/noto-sans-mono/README.md +135 -0
- package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
- package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
- package/dist/collection/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
- package/dist/collection/generated/locale.js +148 -0
- package/dist/collection/global/mapml-globals.js +916 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/leaflet-src.esm.js +14419 -0
- package/dist/components/gcds-ext-map.d.ts +11 -0
- package/dist/components/gcds-ext-map.js +10 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/map-a.d.ts +11 -0
- package/dist/components/map-a.js +1 -0
- package/dist/components/map-caption.d.ts +11 -0
- package/dist/components/map-caption.js +1 -0
- package/dist/components/map-extent.d.ts +11 -0
- package/dist/components/map-extent.js +1 -0
- package/dist/components/map-feature.d.ts +11 -0
- package/dist/components/map-feature.js +1 -0
- package/dist/components/map-featurecaption.d.ts +11 -0
- package/dist/components/map-featurecaption.js +1 -0
- package/dist/components/map-geometry.d.ts +11 -0
- package/dist/components/map-geometry.js +1 -0
- package/dist/components/map-input.d.ts +11 -0
- package/dist/components/map-input.js +1 -0
- package/dist/components/map-layer.d.ts +11 -0
- package/dist/components/map-layer.js +1 -0
- package/dist/components/map-link.d.ts +11 -0
- package/dist/components/map-link.js +1 -0
- package/dist/components/map-meta.d.ts +11 -0
- package/dist/components/map-meta.js +1 -0
- package/dist/components/map-properties.d.ts +11 -0
- package/dist/components/map-properties.js +1 -0
- package/dist/components/map-select.d.ts +11 -0
- package/dist/components/map-select.js +1 -0
- package/dist/components/map-span.d.ts +11 -0
- package/dist/components/map-span.js +1 -0
- package/dist/components/map-style.d.ts +11 -0
- package/dist/components/map-style.js +1 -0
- package/dist/components/map-tile.d.ts +11 -0
- package/dist/components/map-tile.js +1 -0
- package/dist/components/p-B4YLD_Og.js +1 -0
- package/dist/components/p-BE41zrui.js +1 -0
- package/dist/components/p-Bpv_U_Lb.js +1 -0
- package/dist/components/p-CwRxGZga.js +5 -0
- package/dist/components/p-EYVT9Efh.js +1 -0
- package/dist/components/p-gwC_yeRa.js +1 -0
- package/dist/esm/AttributionButton-CfaoSLCu.js +103 -0
- package/dist/esm/MapTileLayer-DvC_iOIS.js +451 -0
- package/dist/esm/app-globals-De5ze2BD.js +773 -0
- package/dist/esm/calculatePosition-B4YLD_Og.js +90 -0
- package/dist/esm/gcds-ext-map.js +43 -0
- package/dist/esm/gcds-ext-map_2.entry.js +8078 -0
- package/dist/esm/index-BUsJ7i5g.js +32656 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +12 -0
- package/dist/esm/locale-Bpv_U_Lb.js +150 -0
- package/dist/esm/map-a.entry.js +14 -0
- package/dist/esm/map-caption.entry.js +53 -0
- package/dist/esm/map-extent.entry.js +991 -0
- package/dist/esm/map-feature.entry.js +634 -0
- package/dist/esm/map-featurecaption.entry.js +12 -0
- package/dist/esm/map-geometry.entry.js +34 -0
- package/dist/esm/map-input.entry.js +346 -0
- package/dist/esm/map-link.entry.js +6035 -0
- package/dist/esm/map-meta.entry.js +38 -0
- package/dist/esm/map-properties.entry.js +12 -0
- package/dist/esm/map-select.entry.js +98 -0
- package/dist/esm/map-span.entry.js +12 -0
- package/dist/esm/map-style.entry.js +125 -0
- package/dist/esm/map-tile.entry.js +272 -0
- package/dist/esm/renderStyles-EYVT9Efh.js +57 -0
- package/dist/gcds-ext-map/assets/canada.json +1 -0
- package/dist/gcds-ext-map/assets/images/w3community.ico +0 -0
- package/dist/gcds-ext-map/assets/mapml/en/apstile/arctic +18 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/canvec +22 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmt +24 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtgeom +20 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/cbmtsimple +20 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/current_conditions +33 -0
- package/dist/gcds-ext-map/assets/mapml/en/cbmtile/toporama +25 -0
- package/dist/gcds-ext-map/assets/mapml/en/custom/arcticsdi.mapml +18 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/cbmt +24 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/current_conditions +32 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/dark.mapml +19 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/light.mapml +19 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/osm +19 -0
- package/dist/gcds-ext-map/assets/mapml/en/osmtile/toporama +25 -0
- package/dist/gcds-ext-map/assets/mapml/fr/apstile/arctic +19 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/canvec +22 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmt +24 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtgeom +20 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/cbmtsimple +20 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/current_conditions +25 -0
- package/dist/gcds-ext-map/assets/mapml/fr/cbmtile/toporama +25 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/cbmt +24 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/current_conditions +24 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/dark.mapml +19 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/light.mapml +19 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/osm +19 -0
- package/dist/gcds-ext-map/assets/mapml/fr/osmtile/toporama +25 -0
- package/dist/gcds-ext-map/assets/pmtiles/darkTheme.js +19 -0
- package/dist/gcds-ext-map/assets/pmtiles/lightTheme.js +19 -0
- package/dist/gcds-ext-map/fonts/icons/LICENSE.txt +92 -0
- package/dist/gcds-ext-map/fonts/icons/README.md +543 -0
- package/dist/gcds-ext-map/fonts/icons/gcds-icons.css +110 -0
- package/dist/gcds-ext-map/fonts/icons/gcds-icons.eot +0 -0
- package/dist/gcds-ext-map/fonts/icons/gcds-icons.svg +82 -0
- package/dist/gcds-ext-map/fonts/icons/gcds-icons.ttf +0 -0
- package/dist/gcds-ext-map/fonts/icons/gcds-icons.woff +0 -0
- package/dist/gcds-ext-map/fonts/lato/LICENSE.txt +48 -0
- package/dist/gcds-ext-map/fonts/lato/README.md +195 -0
- package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/lato/gcds-lato-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/lato/gcds-lato.css +30 -0
- package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff +0 -0
- package/dist/gcds-ext-map/fonts/lato/gcds-lato.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/LICENSE.txt +43 -0
- package/dist/gcds-ext-map/fonts/noto-sans/README.md +423 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-bold.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-light.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-medium.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-regular.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold-italic.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans-semibold.woff2 +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans/gcds-noto-sans.css +89 -0
- package/dist/gcds-ext-map/fonts/noto-sans-mono/LICENSE.txt +93 -0
- package/dist/gcds-ext-map/fonts/noto-sans-mono/README.md +135 -0
- package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.css +17 -0
- package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff +0 -0
- package/dist/gcds-ext-map/fonts/noto-sans-mono/gcds-noto-sans-mono.woff2 +0 -0
- package/dist/gcds-ext-map/gcds-ext-map.esm.js +1 -0
- package/dist/gcds-ext-map/index.esm.js +0 -0
- package/dist/gcds-ext-map/leaflet-src.esm.js +14419 -0
- package/dist/gcds-ext-map/p-1b22f774.entry.js +1 -0
- package/dist/gcds-ext-map/p-29b4ba34.entry.js +1 -0
- package/dist/gcds-ext-map/p-2dd09d44.entry.js +1 -0
- package/dist/gcds-ext-map/p-3fef47e5.entry.js +1 -0
- package/dist/gcds-ext-map/p-4e324a1d.entry.js +1 -0
- package/dist/gcds-ext-map/p-4f4a6873.entry.js +1 -0
- package/dist/gcds-ext-map/p-9cc5ad37.entry.js +1 -0
- package/dist/gcds-ext-map/p-9edfea7d.entry.js +1 -0
- package/dist/gcds-ext-map/p-B4YLD_Og.js +1 -0
- package/dist/gcds-ext-map/p-B8Id5Ptd.js +1 -0
- package/dist/gcds-ext-map/p-BUsJ7i5g.js +6 -0
- package/dist/gcds-ext-map/p-Bpv_U_Lb.js +1 -0
- package/dist/gcds-ext-map/p-CtOuMgy9.js +1 -0
- package/dist/gcds-ext-map/p-Dd474fsL.js +1 -0
- package/dist/gcds-ext-map/p-EYVT9Efh.js +1 -0
- package/dist/gcds-ext-map/p-a67d721d.entry.js +1 -0
- package/dist/gcds-ext-map/p-b16e862b.entry.js +1 -0
- package/dist/gcds-ext-map/p-b9cbf1e0.entry.js +10 -0
- package/dist/gcds-ext-map/p-cab5246e.entry.js +1 -0
- package/dist/gcds-ext-map/p-d58d409b.entry.js +1 -0
- package/dist/gcds-ext-map/p-dfa21368.entry.js +1 -0
- package/dist/gcds-ext-map/p-f211048a.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/gcds-ext-map/gcds-ext-map.d.ts +125 -0
- package/dist/types/components/gcds-ext-map/stories/gcds-ext-map.stories.d.ts +230 -0
- package/dist/types/components/map-a/map-a.d.ts +7 -0
- package/dist/types/components/map-caption/map-caption.d.ts +7 -0
- package/dist/types/components/map-extent/map-extent.d.ts +53 -0
- package/dist/types/components/map-feature/map-feature.d.ts +50 -0
- package/dist/types/components/map-featurecaption/map-featurecaption.d.ts +3 -0
- package/dist/types/components/map-geometry/map-geometry.d.ts +7 -0
- package/dist/types/components/map-input/map-input.d.ts +24 -0
- package/dist/types/components/map-layer/map-layer.d.ts +85 -0
- package/dist/types/components/map-layer/stories/map-layer.stories.d.ts +96 -0
- package/dist/types/components/map-link/map-link.d.ts +66 -0
- package/dist/types/components/map-meta/map-meta.d.ts +11 -0
- package/dist/types/components/map-properties/map-properties.d.ts +3 -0
- package/dist/types/components/map-select/map-select.d.ts +13 -0
- package/dist/types/components/map-span/map-span.d.ts +5 -0
- package/dist/types/components/map-style/map-style.d.ts +17 -0
- package/dist/types/components/map-tile/map-tile.d.ts +32 -0
- package/dist/types/components/utils/mapml/DOMTokenList.d.ts +30 -0
- package/dist/types/components/utils/mapml/elementSupport/inputs/heightInput.d.ts +7 -0
- package/dist/types/components/utils/mapml/elementSupport/inputs/hiddenInput.d.ts +7 -0
- package/dist/types/components/utils/mapml/elementSupport/inputs/locationInput.d.ts +14 -0
- package/dist/types/components/utils/mapml/elementSupport/inputs/widthInput.d.ts +7 -0
- package/dist/types/components/utils/mapml/elementSupport/inputs/zoomInput.d.ts +11 -0
- package/dist/types/components/utils/mapml/layers/MapLayer.d.ts +69 -0
- package/dist/types/components/utils/utils.d.ts +2 -0
- package/dist/types/components.d.ts +521 -0
- package/dist/types/gcds-ext-map.d.ts +17 -0
- package/dist/types/generated/locale.d.ts +146 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +87 -0
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
import { P as Proj, l as leafletSrcExports, U as Util, Q as QueryHandler, C as ContextMenu, A as AnnounceMovement, F as FeatureIndex } from './index-BUsJ7i5g.js';
|
|
2
|
+
import { l as localeFr, a as locale } from './locale-Bpv_U_Lb.js';
|
|
3
|
+
|
|
4
|
+
var Options = {
|
|
5
|
+
featureIndexOverlayOption: false,
|
|
6
|
+
announceMovement: false,
|
|
7
|
+
announceScale: { metric: true, imperial: false },
|
|
8
|
+
defaultExtCoor: 'pcrs',
|
|
9
|
+
defaultLocCoor: 'gcrs',
|
|
10
|
+
locale,
|
|
11
|
+
localeFr
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function mapmlGlobals () {
|
|
15
|
+
(function (window, document, undefined$1) {
|
|
16
|
+
let M = {};
|
|
17
|
+
window.M = M;
|
|
18
|
+
M.mime = 'text/mapml';
|
|
19
|
+
let mapOptions = document.head.querySelector('map-options');
|
|
20
|
+
// key fact is that M.options now refers to the Options object, it's not copied
|
|
21
|
+
M.options = Options;
|
|
22
|
+
// make a DEEP copy of the default locale strings under a new name localeEn
|
|
23
|
+
// to support gcds-ext-map
|
|
24
|
+
M.options.localeEn = JSON.parse(JSON.stringify(Options.locale));
|
|
25
|
+
// if there's a locale field in mapOptions.innerHTML, it will overwrite the
|
|
26
|
+
//field of the same name in M.options
|
|
27
|
+
if (mapOptions)
|
|
28
|
+
M.options = Object.assign(M.options, JSON.parse(mapOptions.innerHTML));
|
|
29
|
+
// see https://leafletjs.com/reference-1.5.0.html#crs-l-crs-base
|
|
30
|
+
// "new classes can't inherit from (CRS), and methods can't be added
|
|
31
|
+
// to (CRS.anything) with the include function
|
|
32
|
+
// so we'll use the options property as a way to integrate needed
|
|
33
|
+
// properties and methods...
|
|
34
|
+
M.WGS84 = new Proj.CRS('EPSG:4326', '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ', {
|
|
35
|
+
origin: [-180, 90],
|
|
36
|
+
bounds: leafletSrcExports.bounds([
|
|
37
|
+
[-180, -90],
|
|
38
|
+
[180, 90]
|
|
39
|
+
]),
|
|
40
|
+
resolutions: [
|
|
41
|
+
0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125,
|
|
42
|
+
0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125,
|
|
43
|
+
0.001373291015625, 0.0006866455078125, 0.0003433227539062,
|
|
44
|
+
0.0001716613769531, 0.0000858306884766, 0.0000429153442383,
|
|
45
|
+
0.0000214576721191, 0.0000107288360596, 0.0000053644180298,
|
|
46
|
+
0.0000026822090149, 0.0000013411045074, 0.0000006705522537,
|
|
47
|
+
0.0000003352761269
|
|
48
|
+
],
|
|
49
|
+
crs: {
|
|
50
|
+
tcrs: {
|
|
51
|
+
horizontal: {
|
|
52
|
+
name: 'x',
|
|
53
|
+
min: 0,
|
|
54
|
+
max: (zoom) => Math.round(M.WGS84.options.bounds.getSize().x /
|
|
55
|
+
M.WGS84.options.resolutions[zoom])
|
|
56
|
+
},
|
|
57
|
+
vertical: {
|
|
58
|
+
name: 'y',
|
|
59
|
+
min: 0,
|
|
60
|
+
max: (zoom) => Math.round(M.WGS84.options.bounds.getSize().y /
|
|
61
|
+
M.WGS84.options.resolutions[zoom])
|
|
62
|
+
},
|
|
63
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
64
|
+
M.WGS84.options.crs.tcrs.horizontal.min,
|
|
65
|
+
M.WGS84.options.crs.tcrs.vertical.min
|
|
66
|
+
], [
|
|
67
|
+
M.WGS84.options.crs.tcrs.horizontal.max(zoom),
|
|
68
|
+
M.WGS84.options.crs.tcrs.vertical.max(zoom)
|
|
69
|
+
])
|
|
70
|
+
},
|
|
71
|
+
pcrs: {
|
|
72
|
+
horizontal: {
|
|
73
|
+
name: 'longitude',
|
|
74
|
+
get min() {
|
|
75
|
+
return M.WGS84.options.crs.gcrs.horizontal.min;
|
|
76
|
+
},
|
|
77
|
+
get max() {
|
|
78
|
+
return M.WGS84.options.crs.gcrs.horizontal.max;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
vertical: {
|
|
82
|
+
name: 'latitude',
|
|
83
|
+
get min() {
|
|
84
|
+
return M.WGS84.options.crs.gcrs.vertical.min;
|
|
85
|
+
},
|
|
86
|
+
get max() {
|
|
87
|
+
return M.WGS84.options.crs.gcrs.vertical.max;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
get bounds() {
|
|
91
|
+
return M.WGS84.options.bounds;
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
gcrs: {
|
|
95
|
+
horizontal: {
|
|
96
|
+
name: 'longitude',
|
|
97
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
98
|
+
min: -180,
|
|
99
|
+
max: 180.0
|
|
100
|
+
},
|
|
101
|
+
vertical: {
|
|
102
|
+
name: 'latitude',
|
|
103
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
104
|
+
min: -90,
|
|
105
|
+
max: 90.0
|
|
106
|
+
},
|
|
107
|
+
get bounds() {
|
|
108
|
+
return leafletSrcExports.latLngBounds([
|
|
109
|
+
M.WGS84.options.crs.gcrs.vertical.min,
|
|
110
|
+
M.WGS84.options.crs.gcrs.horizontal.min
|
|
111
|
+
], [
|
|
112
|
+
M.WGS84.options.crs.gcrs.vertical.max,
|
|
113
|
+
M.WGS84.options.crs.gcrs.horizontal.max
|
|
114
|
+
]);
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
map: {
|
|
118
|
+
horizontal: {
|
|
119
|
+
name: 'i',
|
|
120
|
+
min: 0,
|
|
121
|
+
max: (map) => map.getSize().x
|
|
122
|
+
},
|
|
123
|
+
vertical: {
|
|
124
|
+
name: 'j',
|
|
125
|
+
min: 0,
|
|
126
|
+
max: (map) => map.getSize().y
|
|
127
|
+
},
|
|
128
|
+
bounds: (map) => leafletSrcExports.bounds(leafletSrcExports.point([0, 0]), map.getSize())
|
|
129
|
+
},
|
|
130
|
+
tile: {
|
|
131
|
+
horizontal: {
|
|
132
|
+
name: 'i',
|
|
133
|
+
min: 0,
|
|
134
|
+
max: 256
|
|
135
|
+
},
|
|
136
|
+
vertical: {
|
|
137
|
+
name: 'j',
|
|
138
|
+
min: 0,
|
|
139
|
+
max: 256
|
|
140
|
+
},
|
|
141
|
+
get bounds() {
|
|
142
|
+
return leafletSrcExports.bounds([
|
|
143
|
+
M.WGS84.options.crs.tile.horizontal.min,
|
|
144
|
+
M.WGS84.options.crs.tile.vertical.min
|
|
145
|
+
], [
|
|
146
|
+
M.WGS84.options.crs.tile.horizontal.max,
|
|
147
|
+
M.WGS84.options.crs.tile.vertical.max
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
tilematrix: {
|
|
152
|
+
horizontal: {
|
|
153
|
+
name: 'column',
|
|
154
|
+
min: 0,
|
|
155
|
+
max: (zoom) => Math.round(M.WGS84.options.crs.tcrs.horizontal.max(zoom) /
|
|
156
|
+
M.WGS84.options.crs.tile.bounds.getSize().x)
|
|
157
|
+
},
|
|
158
|
+
vertical: {
|
|
159
|
+
name: 'row',
|
|
160
|
+
min: 0,
|
|
161
|
+
max: (zoom) => Math.round(M.WGS84.options.crs.tcrs.vertical.max(zoom) /
|
|
162
|
+
M.WGS84.options.crs.tile.bounds.getSize().y)
|
|
163
|
+
},
|
|
164
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
165
|
+
M.WGS84.options.crs.tilematrix.horizontal.min,
|
|
166
|
+
M.WGS84.options.crs.tilematrix.vertical.min
|
|
167
|
+
], [
|
|
168
|
+
M.WGS84.options.crs.tilematrix.horizontal.max(zoom),
|
|
169
|
+
M.WGS84.options.crs.tilematrix.vertical.max(zoom)
|
|
170
|
+
])
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
M.CBMTILE = new Proj.CRS('EPSG:3978', '+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs', {
|
|
175
|
+
origin: [-34655800, 39310000],
|
|
176
|
+
bounds: leafletSrcExports.bounds([
|
|
177
|
+
[-34655800, -39e6],
|
|
178
|
+
[10000000, 39310000]
|
|
179
|
+
]),
|
|
180
|
+
resolutions: [
|
|
181
|
+
38364.660062653464, 22489.62831258996, 13229.193125052918,
|
|
182
|
+
7937.5158750317505, 4630.2175937685215, 2645.8386250105837,
|
|
183
|
+
1587.5031750063501, 926.0435187537042, 529.1677250021168,
|
|
184
|
+
317.50063500127004, 185.20870375074085, 111.12522225044451,
|
|
185
|
+
66.1459656252646, 38.36466006265346, 22.48962831258996,
|
|
186
|
+
13.229193125052918, 7.9375158750317505, 4.6302175937685215,
|
|
187
|
+
2.6458386250105836, 1.5875031750063502, 0.92604351875370428,
|
|
188
|
+
0.52916772500211673, 0.31750063500127002, 0.18520870375074083,
|
|
189
|
+
0.11112522225044451, 0.066145965625264591
|
|
190
|
+
],
|
|
191
|
+
crs: {
|
|
192
|
+
tcrs: {
|
|
193
|
+
horizontal: {
|
|
194
|
+
name: 'x',
|
|
195
|
+
min: 0,
|
|
196
|
+
max: (zoom) => Math.round(M.CBMTILE.options.bounds.getSize().x /
|
|
197
|
+
M.CBMTILE.options.resolutions[zoom])
|
|
198
|
+
},
|
|
199
|
+
vertical: {
|
|
200
|
+
name: 'y',
|
|
201
|
+
min: 0,
|
|
202
|
+
max: (zoom) => Math.round(M.CBMTILE.options.bounds.getSize().y /
|
|
203
|
+
M.CBMTILE.options.resolutions[zoom])
|
|
204
|
+
},
|
|
205
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
206
|
+
M.CBMTILE.options.crs.tcrs.horizontal.min,
|
|
207
|
+
M.CBMTILE.options.crs.tcrs.vertical.min
|
|
208
|
+
], [
|
|
209
|
+
M.CBMTILE.options.crs.tcrs.horizontal.max(zoom),
|
|
210
|
+
M.CBMTILE.options.crs.tcrs.vertical.max(zoom)
|
|
211
|
+
])
|
|
212
|
+
},
|
|
213
|
+
pcrs: {
|
|
214
|
+
horizontal: {
|
|
215
|
+
name: 'easting',
|
|
216
|
+
get min() {
|
|
217
|
+
return M.CBMTILE.options.bounds.min.x;
|
|
218
|
+
},
|
|
219
|
+
get max() {
|
|
220
|
+
return M.CBMTILE.options.bounds.max.x;
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
vertical: {
|
|
224
|
+
name: 'northing',
|
|
225
|
+
get min() {
|
|
226
|
+
return M.CBMTILE.options.bounds.min.y;
|
|
227
|
+
},
|
|
228
|
+
get max() {
|
|
229
|
+
return M.CBMTILE.options.bounds.max.y;
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
get bounds() {
|
|
233
|
+
return M.CBMTILE.options.bounds;
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
gcrs: {
|
|
237
|
+
horizontal: {
|
|
238
|
+
name: 'longitude',
|
|
239
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
240
|
+
min: -141.01,
|
|
241
|
+
max: -47.74
|
|
242
|
+
},
|
|
243
|
+
vertical: {
|
|
244
|
+
name: 'latitude',
|
|
245
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
246
|
+
min: 40.04,
|
|
247
|
+
max: 86.46
|
|
248
|
+
},
|
|
249
|
+
get bounds() {
|
|
250
|
+
return leafletSrcExports.latLngBounds([
|
|
251
|
+
M.CBMTILE.options.crs.gcrs.vertical.min,
|
|
252
|
+
M.CBMTILE.options.crs.gcrs.horizontal.min
|
|
253
|
+
], [
|
|
254
|
+
M.CBMTILE.options.crs.gcrs.vertical.max,
|
|
255
|
+
M.CBMTILE.options.crs.gcrs.horizontal.max
|
|
256
|
+
]);
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
map: {
|
|
260
|
+
horizontal: {
|
|
261
|
+
name: 'i',
|
|
262
|
+
min: 0,
|
|
263
|
+
max: (map) => map.getSize().x
|
|
264
|
+
},
|
|
265
|
+
vertical: {
|
|
266
|
+
name: 'j',
|
|
267
|
+
min: 0,
|
|
268
|
+
max: (map) => map.getSize().y
|
|
269
|
+
},
|
|
270
|
+
bounds: (map) => leafletSrcExports.bounds(leafletSrcExports.point([0, 0]), map.getSize())
|
|
271
|
+
},
|
|
272
|
+
tile: {
|
|
273
|
+
horizontal: {
|
|
274
|
+
name: 'i',
|
|
275
|
+
min: 0,
|
|
276
|
+
max: 256
|
|
277
|
+
},
|
|
278
|
+
vertical: {
|
|
279
|
+
name: 'j',
|
|
280
|
+
min: 0,
|
|
281
|
+
max: 256
|
|
282
|
+
},
|
|
283
|
+
get bounds() {
|
|
284
|
+
return leafletSrcExports.bounds([
|
|
285
|
+
M.CBMTILE.options.crs.tile.horizontal.min,
|
|
286
|
+
M.CBMTILE.options.crs.tile.vertical.min
|
|
287
|
+
], [
|
|
288
|
+
M.CBMTILE.options.crs.tile.horizontal.max,
|
|
289
|
+
M.CBMTILE.options.crs.tile.vertical.max
|
|
290
|
+
]);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
tilematrix: {
|
|
294
|
+
horizontal: {
|
|
295
|
+
name: 'column',
|
|
296
|
+
min: 0,
|
|
297
|
+
max: (zoom) => Math.round(M.CBMTILE.options.crs.tcrs.horizontal.max(zoom) /
|
|
298
|
+
M.CBMTILE.options.crs.tile.bounds.getSize().x)
|
|
299
|
+
},
|
|
300
|
+
vertical: {
|
|
301
|
+
name: 'row',
|
|
302
|
+
min: 0,
|
|
303
|
+
max: (zoom) => Math.round(M.CBMTILE.options.crs.tcrs.vertical.max(zoom) /
|
|
304
|
+
M.CBMTILE.options.crs.tile.bounds.getSize().y)
|
|
305
|
+
},
|
|
306
|
+
bounds: (zoom) => leafletSrcExports.bounds([0, 0], [
|
|
307
|
+
M.CBMTILE.options.crs.tilematrix.horizontal.max(zoom),
|
|
308
|
+
M.CBMTILE.options.crs.tilematrix.vertical.max(zoom)
|
|
309
|
+
])
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
M.APSTILE = new Proj.CRS('EPSG:5936', '+proj=stere +lat_0=90 +lat_ts=50 +lon_0=-150 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs', {
|
|
314
|
+
origin: [-28567784.109255, 3.2567784109255e7],
|
|
315
|
+
bounds: leafletSrcExports.bounds([
|
|
316
|
+
[-28567784.109254867, -28567784.109254755],
|
|
317
|
+
[32567784.109255023, 32567784.10925506]
|
|
318
|
+
]),
|
|
319
|
+
resolutions: [
|
|
320
|
+
238810.813354, 119405.406677, 59702.7033384999, 29851.3516692501,
|
|
321
|
+
14925.675834625, 7462.83791731252, 3731.41895865639, 1865.70947932806,
|
|
322
|
+
932.854739664032, 466.427369832148, 233.213684916074, 116.606842458037,
|
|
323
|
+
58.3034212288862, 29.1517106145754, 14.5758553072877, 7.28792765351156,
|
|
324
|
+
3.64396382688807, 1.82198191331174, 0.910990956788164, 0.45549547826179
|
|
325
|
+
],
|
|
326
|
+
crs: {
|
|
327
|
+
tcrs: {
|
|
328
|
+
horizontal: {
|
|
329
|
+
name: 'x',
|
|
330
|
+
min: 0,
|
|
331
|
+
max: (zoom) => Math.round(M.APSTILE.options.bounds.getSize().x /
|
|
332
|
+
M.APSTILE.options.resolutions[zoom])
|
|
333
|
+
},
|
|
334
|
+
vertical: {
|
|
335
|
+
name: 'y',
|
|
336
|
+
min: 0,
|
|
337
|
+
max: (zoom) => Math.round(M.APSTILE.options.bounds.getSize().y /
|
|
338
|
+
M.APSTILE.options.resolutions[zoom])
|
|
339
|
+
},
|
|
340
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
341
|
+
M.APSTILE.options.crs.tcrs.horizontal.min,
|
|
342
|
+
M.APSTILE.options.crs.tcrs.vertical.min
|
|
343
|
+
], [
|
|
344
|
+
M.APSTILE.options.crs.tcrs.horizontal.max(zoom),
|
|
345
|
+
M.APSTILE.options.crs.tcrs.vertical.max(zoom)
|
|
346
|
+
])
|
|
347
|
+
},
|
|
348
|
+
pcrs: {
|
|
349
|
+
horizontal: {
|
|
350
|
+
name: 'easting',
|
|
351
|
+
get min() {
|
|
352
|
+
return M.APSTILE.options.bounds.min.x;
|
|
353
|
+
},
|
|
354
|
+
get max() {
|
|
355
|
+
return M.APSTILE.options.bounds.max.x;
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
vertical: {
|
|
359
|
+
name: 'northing',
|
|
360
|
+
get min() {
|
|
361
|
+
return M.APSTILE.options.bounds.min.y;
|
|
362
|
+
},
|
|
363
|
+
get max() {
|
|
364
|
+
return M.APSTILE.options.bounds.max.y;
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
get bounds() {
|
|
368
|
+
return M.APSTILE.options.bounds;
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
gcrs: {
|
|
372
|
+
horizontal: {
|
|
373
|
+
name: 'longitude',
|
|
374
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
375
|
+
min: -180,
|
|
376
|
+
max: 180.0
|
|
377
|
+
},
|
|
378
|
+
vertical: {
|
|
379
|
+
name: 'latitude',
|
|
380
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
381
|
+
min: 60.0,
|
|
382
|
+
max: 90.0
|
|
383
|
+
},
|
|
384
|
+
get bounds() {
|
|
385
|
+
return leafletSrcExports.latLngBounds([
|
|
386
|
+
M.APSTILE.options.crs.gcrs.vertical.min,
|
|
387
|
+
M.APSTILE.options.crs.gcrs.horizontal.min
|
|
388
|
+
], [
|
|
389
|
+
M.APSTILE.options.crs.gcrs.vertical.max,
|
|
390
|
+
M.APSTILE.options.crs.gcrs.horizontal.max
|
|
391
|
+
]);
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
map: {
|
|
395
|
+
horizontal: {
|
|
396
|
+
name: 'i',
|
|
397
|
+
min: 0,
|
|
398
|
+
max: (map) => map.getSize().x
|
|
399
|
+
},
|
|
400
|
+
vertical: {
|
|
401
|
+
name: 'j',
|
|
402
|
+
min: 0,
|
|
403
|
+
max: (map) => map.getSize().y
|
|
404
|
+
},
|
|
405
|
+
bounds: (map) => leafletSrcExports.bounds(leafletSrcExports.point([0, 0]), map.getSize())
|
|
406
|
+
},
|
|
407
|
+
tile: {
|
|
408
|
+
horizontal: {
|
|
409
|
+
name: 'i',
|
|
410
|
+
min: 0,
|
|
411
|
+
max: 256
|
|
412
|
+
},
|
|
413
|
+
vertical: {
|
|
414
|
+
name: 'j',
|
|
415
|
+
min: 0,
|
|
416
|
+
max: 256
|
|
417
|
+
},
|
|
418
|
+
get bounds() {
|
|
419
|
+
return leafletSrcExports.bounds([
|
|
420
|
+
M.APSTILE.options.crs.tile.horizontal.min,
|
|
421
|
+
M.APSTILE.options.crs.tile.vertical.min
|
|
422
|
+
], [
|
|
423
|
+
M.APSTILE.options.crs.tile.horizontal.max,
|
|
424
|
+
M.APSTILE.options.crs.tile.vertical.max
|
|
425
|
+
]);
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
tilematrix: {
|
|
429
|
+
horizontal: {
|
|
430
|
+
name: 'column',
|
|
431
|
+
min: 0,
|
|
432
|
+
max: (zoom) => Math.round(M.APSTILE.options.crs.tcrs.horizontal.max(zoom) /
|
|
433
|
+
M.APSTILE.options.crs.tile.bounds.getSize().x)
|
|
434
|
+
},
|
|
435
|
+
vertical: {
|
|
436
|
+
name: 'row',
|
|
437
|
+
min: 0,
|
|
438
|
+
max: (zoom) => Math.round(M.APSTILE.options.crs.tcrs.vertical.max(zoom) /
|
|
439
|
+
M.APSTILE.options.crs.tile.bounds.getSize().y)
|
|
440
|
+
},
|
|
441
|
+
bounds: (zoom) => leafletSrcExports.bounds([0, 0], [
|
|
442
|
+
M.APSTILE.options.crs.tilematrix.horizontal.max(zoom),
|
|
443
|
+
M.APSTILE.options.crs.tilematrix.vertical.max(zoom)
|
|
444
|
+
])
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
M.OSMTILE = leafletSrcExports.CRS.EPSG3857;
|
|
449
|
+
leafletSrcExports.setOptions(M.OSMTILE, {
|
|
450
|
+
origin: [-20037508.342787, 20037508.342787],
|
|
451
|
+
bounds: leafletSrcExports.bounds([
|
|
452
|
+
[-20037508.342787, -20037508.342787],
|
|
453
|
+
[20037508.342787, 20037508.342787]
|
|
454
|
+
]),
|
|
455
|
+
resolutions: [
|
|
456
|
+
156543.0339, 78271.51695, 39135.758475, 19567.8792375, 9783.93961875,
|
|
457
|
+
4891.969809375, 2445.9849046875, 1222.9924523438, 611.49622617188,
|
|
458
|
+
305.74811308594, 152.87405654297, 76.437028271484, 38.218514135742,
|
|
459
|
+
19.109257067871, 9.5546285339355, 4.7773142669678, 2.3886571334839,
|
|
460
|
+
1.1943285667419, 0.59716428337097, 0.29858214168549, 0.14929107084274,
|
|
461
|
+
0.074645535421371, 0.03732276771068573, 0.018661383855342865,
|
|
462
|
+
0.009330691927671432495
|
|
463
|
+
],
|
|
464
|
+
crs: {
|
|
465
|
+
tcrs: {
|
|
466
|
+
horizontal: {
|
|
467
|
+
name: 'x',
|
|
468
|
+
min: 0,
|
|
469
|
+
max: (zoom) => Math.round(M.OSMTILE.options.bounds.getSize().x /
|
|
470
|
+
M.OSMTILE.options.resolutions[zoom])
|
|
471
|
+
},
|
|
472
|
+
vertical: {
|
|
473
|
+
name: 'y',
|
|
474
|
+
min: 0,
|
|
475
|
+
max: (zoom) => Math.round(M.OSMTILE.options.bounds.getSize().y /
|
|
476
|
+
M.OSMTILE.options.resolutions[zoom])
|
|
477
|
+
},
|
|
478
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
479
|
+
M.OSMTILE.options.crs.tcrs.horizontal.min,
|
|
480
|
+
M.OSMTILE.options.crs.tcrs.vertical.min
|
|
481
|
+
], [
|
|
482
|
+
M.OSMTILE.options.crs.tcrs.horizontal.max(zoom),
|
|
483
|
+
M.OSMTILE.options.crs.tcrs.vertical.max(zoom)
|
|
484
|
+
])
|
|
485
|
+
},
|
|
486
|
+
pcrs: {
|
|
487
|
+
horizontal: {
|
|
488
|
+
name: 'easting',
|
|
489
|
+
get min() {
|
|
490
|
+
return M.OSMTILE.options.bounds.min.x;
|
|
491
|
+
},
|
|
492
|
+
get max() {
|
|
493
|
+
return M.OSMTILE.options.bounds.max.x;
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
vertical: {
|
|
497
|
+
name: 'northing',
|
|
498
|
+
get min() {
|
|
499
|
+
return M.OSMTILE.options.bounds.min.y;
|
|
500
|
+
},
|
|
501
|
+
get max() {
|
|
502
|
+
return M.OSMTILE.options.bounds.max.y;
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
get bounds() {
|
|
506
|
+
return M.OSMTILE.options.bounds;
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
gcrs: {
|
|
510
|
+
horizontal: {
|
|
511
|
+
name: 'longitude',
|
|
512
|
+
get min() {
|
|
513
|
+
return M.OSMTILE.unproject(M.OSMTILE.options.bounds.min).lng;
|
|
514
|
+
},
|
|
515
|
+
get max() {
|
|
516
|
+
return M.OSMTILE.unproject(M.OSMTILE.options.bounds.max).lng;
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
vertical: {
|
|
520
|
+
name: 'latitude',
|
|
521
|
+
get min() {
|
|
522
|
+
return M.OSMTILE.unproject(M.OSMTILE.options.bounds.min).lat;
|
|
523
|
+
},
|
|
524
|
+
get max() {
|
|
525
|
+
return M.OSMTILE.unproject(M.OSMTILE.options.bounds.max).lat;
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
get bounds() {
|
|
529
|
+
return leafletSrcExports.latLngBounds([
|
|
530
|
+
M.OSMTILE.options.crs.gcrs.vertical.min,
|
|
531
|
+
M.OSMTILE.options.crs.gcrs.horizontal.min
|
|
532
|
+
], [
|
|
533
|
+
M.OSMTILE.options.crs.gcrs.vertical.max,
|
|
534
|
+
M.OSMTILE.options.crs.gcrs.horizontal.max
|
|
535
|
+
]);
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
map: {
|
|
539
|
+
horizontal: {
|
|
540
|
+
name: 'i',
|
|
541
|
+
min: 0,
|
|
542
|
+
max: (map) => map.getSize().x
|
|
543
|
+
},
|
|
544
|
+
vertical: {
|
|
545
|
+
name: 'j',
|
|
546
|
+
min: 0,
|
|
547
|
+
max: (map) => map.getSize().y
|
|
548
|
+
},
|
|
549
|
+
bounds: (map) => leafletSrcExports.bounds(leafletSrcExports.point([0, 0]), map.getSize())
|
|
550
|
+
},
|
|
551
|
+
tile: {
|
|
552
|
+
horizontal: {
|
|
553
|
+
name: 'i',
|
|
554
|
+
min: 0,
|
|
555
|
+
max: 256
|
|
556
|
+
},
|
|
557
|
+
vertical: {
|
|
558
|
+
name: 'j',
|
|
559
|
+
min: 0,
|
|
560
|
+
max: 256
|
|
561
|
+
},
|
|
562
|
+
get bounds() {
|
|
563
|
+
return leafletSrcExports.bounds([
|
|
564
|
+
M.OSMTILE.options.crs.tile.horizontal.min,
|
|
565
|
+
M.OSMTILE.options.crs.tile.vertical.min
|
|
566
|
+
], [
|
|
567
|
+
M.OSMTILE.options.crs.tile.horizontal.max,
|
|
568
|
+
M.OSMTILE.options.crs.tile.vertical.max
|
|
569
|
+
]);
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
tilematrix: {
|
|
573
|
+
horizontal: {
|
|
574
|
+
name: 'column',
|
|
575
|
+
min: 0,
|
|
576
|
+
max: (zoom) => Math.round(M.OSMTILE.options.crs.tcrs.horizontal.max(zoom) /
|
|
577
|
+
M.OSMTILE.options.crs.tile.bounds.getSize().x)
|
|
578
|
+
},
|
|
579
|
+
vertical: {
|
|
580
|
+
name: 'row',
|
|
581
|
+
min: 0,
|
|
582
|
+
max: (zoom) => Math.round(M.OSMTILE.options.crs.tcrs.vertical.max(zoom) /
|
|
583
|
+
M.OSMTILE.options.crs.tile.bounds.getSize().y)
|
|
584
|
+
},
|
|
585
|
+
bounds: (zoom) => leafletSrcExports.bounds([0, 0], [
|
|
586
|
+
M.OSMTILE.options.crs.tilematrix.horizontal.max(zoom),
|
|
587
|
+
M.OSMTILE.options.crs.tilematrix.vertical.max(zoom)
|
|
588
|
+
])
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
M.geojson2mapml = Util.geojson2mapml;
|
|
593
|
+
M.mapml2geojson = Util.mapml2geojson;
|
|
594
|
+
// see https://leafletjs.com/examples/extending/extending-3-controls.html#handlers
|
|
595
|
+
leafletSrcExports.Map.addInitHook('addHandler', 'query', QueryHandler);
|
|
596
|
+
leafletSrcExports.Map.addInitHook('addHandler', 'contextMenu', ContextMenu);
|
|
597
|
+
leafletSrcExports.Map.addInitHook('addHandler', 'announceMovement', AnnounceMovement);
|
|
598
|
+
leafletSrcExports.Map.addInitHook('addHandler', 'featureIndex', FeatureIndex);
|
|
599
|
+
// constants
|
|
600
|
+
M.TILE_SIZE = 256;
|
|
601
|
+
M.FALLBACK_PROJECTION = 'OSMTILE';
|
|
602
|
+
M.FALLBACK_CS = 'TILEMATRIX';
|
|
603
|
+
M.BLANK_TT_TREF = 'mapmltemplatedtileplaceholder';
|
|
604
|
+
// this is for tests, all other modules import and use Util directly
|
|
605
|
+
M.Util = Util;
|
|
606
|
+
// Global API for defining custom projections
|
|
607
|
+
M.defineCustomProjection = function (jsonTemplate) {
|
|
608
|
+
let t = JSON.parse(jsonTemplate);
|
|
609
|
+
if (t === undefined$1 ||
|
|
610
|
+
!t.proj4string ||
|
|
611
|
+
!t.projection ||
|
|
612
|
+
!t.resolutions ||
|
|
613
|
+
!t.origin ||
|
|
614
|
+
!t.bounds)
|
|
615
|
+
throw new Error('Incomplete TCRS Definition');
|
|
616
|
+
if (t.projection.indexOf(':') >= 0)
|
|
617
|
+
throw new Error('":" is not permitted in projection name');
|
|
618
|
+
if (M[t.projection.toUpperCase()])
|
|
619
|
+
return t.projection.toUpperCase();
|
|
620
|
+
let tileSize = [256, 512, 1024, 2048, 4096].includes(t.tilesize)
|
|
621
|
+
? t.tilesize
|
|
622
|
+
: M.TILE_SIZE;
|
|
623
|
+
M[t.projection] = new Proj.CRS(t.projection, t.proj4string, {
|
|
624
|
+
origin: t.origin,
|
|
625
|
+
resolutions: t.resolutions,
|
|
626
|
+
bounds: leafletSrcExports.bounds(t.bounds),
|
|
627
|
+
crs: {
|
|
628
|
+
tcrs: {
|
|
629
|
+
horizontal: {
|
|
630
|
+
name: 'x',
|
|
631
|
+
min: 0,
|
|
632
|
+
max: (zoom) => Math.round(M[t.projection].options.bounds.getSize().x /
|
|
633
|
+
M[t.projection].options.resolutions[zoom])
|
|
634
|
+
},
|
|
635
|
+
vertical: {
|
|
636
|
+
name: 'y',
|
|
637
|
+
min: 0,
|
|
638
|
+
max: (zoom) => Math.round(M[t.projection].options.bounds.getSize().y /
|
|
639
|
+
M[t.projection].options.resolutions[zoom])
|
|
640
|
+
},
|
|
641
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
642
|
+
M[t.projection].options.crs.tcrs.horizontal.min,
|
|
643
|
+
M[t.projection].options.crs.tcrs.vertical.min
|
|
644
|
+
], [
|
|
645
|
+
M[t.projection].options.crs.tcrs.horizontal.max(zoom),
|
|
646
|
+
M[t.projection].options.crs.tcrs.vertical.max(zoom)
|
|
647
|
+
])
|
|
648
|
+
},
|
|
649
|
+
pcrs: {
|
|
650
|
+
horizontal: {
|
|
651
|
+
name: 'easting',
|
|
652
|
+
get min() {
|
|
653
|
+
return M[t.projection].options.bounds.min.x;
|
|
654
|
+
},
|
|
655
|
+
get max() {
|
|
656
|
+
return M[t.projection].options.bounds.max.x;
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
vertical: {
|
|
660
|
+
name: 'northing',
|
|
661
|
+
get min() {
|
|
662
|
+
return M[t.projection].options.bounds.min.y;
|
|
663
|
+
},
|
|
664
|
+
get max() {
|
|
665
|
+
return M[t.projection].options.bounds.max.y;
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
get bounds() {
|
|
669
|
+
return M[t.projection].options.bounds;
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
gcrs: {
|
|
673
|
+
horizontal: {
|
|
674
|
+
name: 'longitude',
|
|
675
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
676
|
+
get min() {
|
|
677
|
+
return M[t.projection].unproject(M.OSMTILE.options.bounds.min)
|
|
678
|
+
.lng;
|
|
679
|
+
},
|
|
680
|
+
get max() {
|
|
681
|
+
return M[t.projection].unproject(M.OSMTILE.options.bounds.max)
|
|
682
|
+
.lng;
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
vertical: {
|
|
686
|
+
name: 'latitude',
|
|
687
|
+
// set min/max axis values from EPSG registry area of use, retrieved 2019-07-25
|
|
688
|
+
get min() {
|
|
689
|
+
return M[t.projection].unproject(M.OSMTILE.options.bounds.min)
|
|
690
|
+
.lat;
|
|
691
|
+
},
|
|
692
|
+
get max() {
|
|
693
|
+
return M[t.projection].unproject(M.OSMTILE.options.bounds.max)
|
|
694
|
+
.lat;
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
get bounds() {
|
|
698
|
+
return leafletSrcExports.latLngBounds([
|
|
699
|
+
M[t.projection].options.crs.gcrs.vertical.min,
|
|
700
|
+
M[t.projection].options.crs.gcrs.horizontal.min
|
|
701
|
+
], [
|
|
702
|
+
M[t.projection].options.crs.gcrs.vertical.max,
|
|
703
|
+
M[t.projection].options.crs.gcrs.horizontal.max
|
|
704
|
+
]);
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
map: {
|
|
708
|
+
horizontal: {
|
|
709
|
+
name: 'i',
|
|
710
|
+
min: 0,
|
|
711
|
+
max: (map) => map.getSize().x
|
|
712
|
+
},
|
|
713
|
+
vertical: {
|
|
714
|
+
name: 'j',
|
|
715
|
+
min: 0,
|
|
716
|
+
max: (map) => map.getSize().y
|
|
717
|
+
},
|
|
718
|
+
bounds: (map) => leafletSrcExports.bounds([0, 0], map.getSize())
|
|
719
|
+
},
|
|
720
|
+
tile: {
|
|
721
|
+
horizontal: {
|
|
722
|
+
name: 'i',
|
|
723
|
+
min: 0,
|
|
724
|
+
max: tileSize
|
|
725
|
+
},
|
|
726
|
+
vertical: {
|
|
727
|
+
name: 'j',
|
|
728
|
+
min: 0,
|
|
729
|
+
max: tileSize
|
|
730
|
+
},
|
|
731
|
+
get bounds() {
|
|
732
|
+
return leafletSrcExports.bounds([
|
|
733
|
+
M[t.projection].options.crs.tile.horizontal.min,
|
|
734
|
+
M[t.projection].options.crs.tile.vertical.min
|
|
735
|
+
], [
|
|
736
|
+
M[t.projection].options.crs.tile.horizontal.max,
|
|
737
|
+
M[t.projection].options.crs.tile.vertical.max
|
|
738
|
+
]);
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
tilematrix: {
|
|
742
|
+
horizontal: {
|
|
743
|
+
name: 'column',
|
|
744
|
+
min: 0,
|
|
745
|
+
max: (zoom) => Math.round(M[t.projection].options.crs.tcrs.horizontal.max(zoom) /
|
|
746
|
+
M[t.projection].options.crs.tile.bounds.getSize().x)
|
|
747
|
+
},
|
|
748
|
+
vertical: {
|
|
749
|
+
name: 'row',
|
|
750
|
+
min: 0,
|
|
751
|
+
max: (zoom) => Math.round(M[t.projection].options.crs.tcrs.vertical.max(zoom) /
|
|
752
|
+
M[t.projection].options.crs.tile.bounds.getSize().y)
|
|
753
|
+
},
|
|
754
|
+
bounds: (zoom) => leafletSrcExports.bounds([
|
|
755
|
+
M[t.projection].options.crs.tilematrix.horizontal.min,
|
|
756
|
+
M[t.projection].options.crs.tilematrix.vertical.min
|
|
757
|
+
], [
|
|
758
|
+
M[t.projection].options.crs.tilematrix.horizontal.max(zoom),
|
|
759
|
+
M[t.projection].options.crs.tilematrix.vertical.max(zoom)
|
|
760
|
+
])
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}); //creates crs using L.Proj
|
|
764
|
+
M[t.projection.toUpperCase()] = M[t.projection]; //adds the projection uppercase to global M
|
|
765
|
+
return t.projection;
|
|
766
|
+
};
|
|
767
|
+
})(window, document);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
const appGlobalScript = mapmlGlobals || (() => {});
|
|
771
|
+
const globalScripts = appGlobalScript;
|
|
772
|
+
|
|
773
|
+
export { globalScripts as g };
|