@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 @@
|
|
|
1
|
+
import{l as t,r as e,g as i,U as s}from"./p-BUsJ7i5g.js";import{r as a}from"./p-EYVT9Efh.js";import{c as h}from"./p-B4YLD_Og.js";var n=t.LayerGroup.extend({initialize:function(e){t.LayerGroup.prototype.initialize.call(this,null,e),this._container=t.DomUtil.create("div","leaflet-layer"),this._extentEl=this.options.extentEl,this.changeOpacity(this.options.opacity),this.setZIndex(e.zIndex),t.DomUtil.addClass(this._container,"mapml-extentlayer-container")},getEvents:function(){return{zoomstart:this._onZoomStart}},_onZoomStart:function(){this.closePopup()},getContainer:function(){return this._container},onAdd:function(e){t.LayerGroup.prototype.onAdd.call(this,e),this.options.extentEl.parentLayer._layer._container.appendChild(this._container)},redraw:function(){this.eachLayer((function(t){t.redraw()}))},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},onRemove:function(){t.LayerGroup.prototype.onRemove.call(this,this._map),t.DomUtil.remove(this._container)},_previousFeature:function(){this._count+-1>=0&&(this._count--,this._map.fire("featurepagination",{i:this._count,popup:this}))},_nextFeature:function(){this._count+1<this._source._totalFeatureCount&&(this._count++,this._map.fire("featurepagination",{i:this._count,popup:this}))},changeOpacity:function(t){this._container.style.opacity=t,this._extentEl._opacity=t,this._extentEl._opacitySlider&&(this._extentEl._opacitySlider.value=t)},renderStyles:a}),r=function(){var e=t.DomUtil.create("fieldset","mapml-layer-extent"),i=t.DomUtil.create("div","mapml-layer-item-properties",e),s=t.DomUtil.create("div","mapml-layer-item-settings",e),a=t.DomUtil.create("label","mapml-layer-item-toggle",i),h=t.DomUtil.create("input"),n=t.SVG.create("svg"),r=t.SVG.create("path"),l=t.SVG.create("path"),o=t.DomUtil.create("span"),m=t.DomUtil.create("div","mapml-layer-item-controls",i),c=t.DomUtil.create("details","mapml-layer-item-details mapml-control-layers",s),d=t.DomUtil.create("summary","",c),p=this.getMapEl(),u=this.getLayerEl(),f=t.DomUtil.create("input","",c);s.hidden=!0,e.setAttribute("aria-grabbed","false"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("height","22"),n.setAttribute("width","22"),r.setAttribute("d","M0 0h24v24H0z"),r.setAttribute("fill","none"),l.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),n.appendChild(r),n.appendChild(l);let b=this.el.querySelectorAll("map-select");b.length&&Promise.all(Array.from(b).map((t=>t.whenReady()))).then((()=>{for(var t=document.createDocumentFragment(),e=0;e<b.length;e++)t.appendChild(b[e].selectdetails);s.appendChild(t)}));let g=t.DomUtil.create("button","mapml-layer-item-remove-control",m);g.type="button",g.title=p.locale.lmRemoveExtent,g.innerHTML="<span aria-hidden='true'>✕</span>",g.classList.add("mapml-button"),g.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.el.remove()}));let y=t.DomUtil.create("button","mapml-layer-item-settings-control",m);y.type="button",y.title=p.locale.lmExtentSettings,y.setAttribute("aria-expanded",!1),y.classList.add("mapml-button"),t.DomEvent.on(y,"click",(()=>{!0===s.hidden?(y.setAttribute("aria-expanded",!0),s.hidden=!1):(y.setAttribute("aria-expanded",!1),s.hidden=!0)}),this),o.setAttribute("aria-hidden",!0),a.appendChild(h),y.appendChild(o),o.appendChild(n),d.innerText=p.locale.lcOpacity,d.id="mapml-extent-item-opacity-"+t.stamp(d),f.setAttribute("type","range"),f.setAttribute("min","0"),f.setAttribute("max","1.0"),f.setAttribute("step","0.1"),f.setAttribute("aria-labelledby","mapml-extent-item-opacity-"+t.stamp(d)),f.setAttribute("value",this.opacity),f.value=this._extentLayer._container.style.opacity||"1.0",f.addEventListener("change",function(t){t&&t.target&&t.target.value>=0&&t.target.value<=1&&this._extentLayer.changeOpacity(t.target.value)}.bind(this));var v=t.DomUtil.create("span","mapml-extent-item-name",a);return h.type="checkbox",h.defaultChecked=this.checked,v.innerHTML=this.label,this._layerControlCheckbox=h,h.addEventListener("change",function(){this.checked=!this.checked,this.el.dispatchEvent(new CustomEvent("map-change"))}.bind(this)),v.id="mapml-extent-item-name-{"+t.stamp(v)+"}",e.setAttribute("aria-labelledby",v.id),v.extent=this.el,e.ontouchstart=e.onmousedown=t=>{if("label"===t.target.parentElement.tagName.toLowerCase()&&"input"!==t.target.tagName.toLowerCase()||"label"===t.target.tagName.toLowerCase()){t.stopPropagation(),t=t instanceof TouchEvent?t.touches[0]:t;let i=e,s=e.parentNode,a=!1,h=t.clientY,n=Array.from(e.parentElement.querySelectorAll("fieldset")).indexOf(e);document.body.ontouchmove=document.body.onmousemove=t=>{t.preventDefault();let e=(t=t instanceof TouchEvent?t.touches[0]:t).clientY-h;if(a=Math.abs(e)>15||a,s&&!a||s&&s.childElementCount<=1||s.getBoundingClientRect().top>i.getBoundingClientRect().bottom||s.getBoundingClientRect().bottom<i.getBoundingClientRect().top)return;s.classList.add("mapml-draggable"),i.style.transform="translateY("+e+"px)",i.style.pointerEvents="none";let n=t.clientX,r=t.clientY,l=("GCDS-EXT-MAP"===p.tagName?p.shadowRoot:p.querySelector(".mapml-web-map").shadowRoot).elementFromPoint(n,r),o=l&&l.closest("fieldset")?l.closest("fieldset"):i;o=Math.abs(e)<=o.offsetHeight?i:o,i.setAttribute("aria-grabbed","true"),i.setAttribute("aria-dropeffect","move"),o&&s===o.parentNode&&(o=o!==i.nextSibling?o:o.nextSibling,i!==o&&(h=t.clientY,i.style.transform=null),s.insertBefore(i,o))},document.body.ontouchend=document.body.onmouseup=()=>{let t=Array.from(e.parentElement.querySelectorAll("fieldset")).indexOf(e);if(i.setAttribute("aria-grabbed","false"),i.removeAttribute("aria-dropeffect"),i.style.pointerEvents=null,i.style.transform=null,n!==t){let t=s.children,e=0;for(let i of t){let t=i.querySelector("span").extent;t.setAttribute("data-moving",""),(u.src?u.shadowRoot:u).append(t),t.removeAttribute("data-moving"),t.extentZIndex=e,t._extentLayer.setZIndex(e),e++}}s.classList.remove("mapml-draggable"),document.body.ontouchmove=document.body.onmousemove=document.body.ontouchend=document.body.onmouseup=null}}},this._extentRootFieldset=e,this._opacitySlider=f,this._opacityControl=c,this._layerControlLabel=a,e};const l=class{constructor(t){e(this,t)}get el(){return i(this)}checked=!1;_label;opacity=1;_opacity;hidden=!1;units;disabled=!1;get label(){return this._label||this.mapEl?.locale?.dfExtent||"Sub-layer"}get opacityValue(){return this._opacity??this.opacity??1}mapEl;parentLayer;_map;_extentLayer;_layerControlHTML;_layerControlCheckbox;_layerControlLabel;_opacityControl;_opacitySlider;_selectdetails;_observer;_changeHandler;_boundsCalculated=!1;unitsChanged(t,e){}labelChanged(){this._layerControlHTML&&(this._layerControlHTML.querySelector(".mapml-extent-item-name").textContent=this.label)}checkedChanged(){this.parentLayer&&this._extentLayer&&this.parentLayer.whenReady().then((()=>{this._handleChange(),this._calculateBounds(),this._layerControlCheckbox&&(this._layerControlCheckbox.checked=this.checked)})).catch((t=>{console.log("Error while waiting on parentLayer for map-extent checked callback: "+t)}))}opacityChanged(t,e){e!==t&&this._extentLayer&&(this._opacity=t,this._extentLayer.changeOpacity(t),this._opacitySlider&&(this._opacitySlider.value=t.toString()))}hiddenChanged(t,e){e!==t&&this._extentLayer&&this._layerControlHTML&&this._applyHiddenState(t)}_applyHiddenState(t){this._extentLayer&&this._layerControlHTML&&this.parentLayer&&this.parentLayer.whenReady().then((()=>{let e=this.parentLayer._propertiesGroupAnatomy,i=Array.from(this.parentLayer.src?this.parentLayer.shadowRoot.querySelectorAll(":host > map-extent"):this.parentLayer.querySelectorAll(":scope > map-extent")).filter((t=>!t.hidden)).indexOf(this.el);t?this._layerControlHTML.remove():0===i?e.insertAdjacentElement("afterbegin",this._layerControlHTML):i>0&&Array.from(this.parentLayer.src?this.parentLayer.shadowRoot.querySelectorAll(":host > map-extent:not([hidden])"):this.parentLayer.querySelectorAll(":scope > map-extent:not([hidden])"))[i-1]._layerControlHTML.insertAdjacentElement("afterend",this._layerControlHTML),this._validateLayerControlContainerHidden()})).catch((()=>{console.log("Error while waiting on parentLayer for map-extent hidden callback")}))}get extent(){const t=t=>Object.assign(s._convertAndFormatPCRS(t._extentLayer.bounds,M[t.units],t.units),{zoom:t._extentLayer.zoomBounds});return this._extentLayer.bounds?t(this):((e=this)._calculateBounds(),t(e));var e}get position(){return h(this.el)}getOuterHTML(){let t=this.el.cloneNode(!0);this.el.querySelector("map-link")&&t.querySelectorAll("map-link").forEach((t=>{t.hasAttribute("href")?t.setAttribute("href",decodeURI(new URL(t.getAttribute("href"),this.el.baseURI?this.el.baseURI:document.baseURI).href)):t.hasAttribute("tref")&&t.setAttribute("tref",decodeURI(new URL(t.getAttribute("tref"),this.el.baseURI?this.el.baseURI:document.baseURI).href))}));let e=t.outerHTML;return t.remove(),e}zoomTo(){let e=this.extent,i=this.getMapEl()._map,a=e.bottomRight.pcrs.horizontal,h=e.topLeft.pcrs.vertical,n=t.bounds(t.point(e.topLeft.pcrs.horizontal,e.bottomRight.pcrs.vertical),t.point(a,h)),r=i.options.crs.unproject(n.getCenter(!0));i.setView(r,s.getMaxZoom(n,i,e.zoom.minZoom,e.zoom.maxZoom),{animate:!1})}getMapEl(){return s.getClosest(this.el,"gcds-ext-map")}getLayerEl(){return s.getClosest(this.el,"map-layer,layer-")}async connectedCallback(){if(this._opacity=this.opacityValue,this._changeHandler=this._handleChange.bind(this),this.parentLayer=this.el.parentLayer=this.getLayerEl(),this.el.hasAttribute("data-moving")||this.parentLayer?.hasAttribute("data-moving"))return;if(this.mapEl=this.getMapEl(),this.el.getMapEl=this.getMapEl.bind(this),this.el.getLayerEl=this.getLayerEl.bind(this),this.el.getLayerControlHTML=this.getLayerControlHTML.bind(this),this.el.zoomTo=this.zoomTo.bind(this),this.el._validateDisabled=this._validateDisabled.bind(this),this.el.getMeta=this.getMeta.bind(this),this.el.getOuterHTML=this.getOuterHTML.bind(this),Object.defineProperty(this.el,"_boundsCalculated",{get:()=>this._boundsCalculated,configurable:!0,enumerable:!0}),Object.defineProperty(this.el,"extent",{get:()=>this.extent,configurable:!0}),Object.defineProperty(this.el,"label",{get:()=>this.el.hasAttribute("label")?this.el.getAttribute("label"):this.mapEl?.locale?.dfExtent||"Sub-layer",set:t=>{t&&(this.el.setAttribute("label",t),this._label=t)},configurable:!0}),this.el.hasAttribute("label")&&(this._label=this.el.getAttribute("label")),!this.mapEl)return;if(await this.mapEl.whenProjectionDefined(this.units).catch((()=>{throw new Error("Undefined projection:"+this.units)})),!this.el.isConnected)return;var t;await this.mapEl.whenReady(),this._map=this.mapEl._map,this.parentLayer?.addEventListener("map-change",this._changeHandler),this.mapEl.addEventListener("map-projectionchange",this._changeHandler),this._extentLayer=(t={opacity:this.opacityValue,crs:M[this.units],zIndex:this.position,extentEl:this.el},new n(t)),this.el._extentLayer=this._extentLayer;const e=r.call(this);this._layerControlHTML=e,this.el._layerControlHTML=e,this.el._layerControlLabel=this._layerControlLabel,this.el._layerControlCheckbox=this._layerControlCheckbox,this.el._opacityControl=this._opacityControl,this.el._opacitySlider=this._opacitySlider,this.el._selectdetails=this._selectdetails,await this._waitForTrefLinks(),this._calculateBounds(),this._handleChange(),this._runMutationObserver(this.el.children),this._bindMutationObserver()}_bindMutationObserver(){this._observer=new MutationObserver((t=>{for(let e of t)"attributes"===e.type&&"label"===e.attributeName&&(this.el.hasAttribute("label")||(this._label=this.mapEl?.locale?.dfExtent||"Sub-layer")),"childList"===e.type&&this._runMutationObserver(e.addedNodes)})),this._observer.observe(this.el,{childList:!0,attributes:!0,attributeFilter:["label"]})}_runMutationObserver(t){const e=()=>{this.whenReady().then((()=>{this._calculateBounds(),this._validateDisabled()}))},i=t=>{this.whenReady().then((()=>{this._extentLayer.renderStyles(t)}))},s=t=>{this.whenReady().then((()=>{this._extentLayer.renderStyles(t)}))};for(let a=0;a<t.length;++a){let h=t[a];switch(h.nodeName){case"MAP-META":h.hasAttribute("name")&&("zoom"===h.getAttribute("name").toLowerCase()||"extent"===h.getAttribute("name").toLowerCase())&&h.hasAttribute("content")&&e();break;case"MAP-LINK":h.link&&!h.link.isConnected&&i(h);break;case"MAP-STYLE":h.styleElement&&!h.styleElement.isConnected&&s(h)}}}getLayerControlHTML(){return this._layerControlHTML}_projectionMatch(){return this.units.toUpperCase()===this._map.options.projection.toUpperCase()}_validateDisabled(){if(!this._extentLayer)return;let t=this.el.querySelectorAll("map-link[rel=image],map-link[rel=tile],map-link[rel=features],map-link[rel=query]");return!this._projectionMatch()||(()=>{let e=t.length,i=0;for(let e=0;e<t.length;e++)t[e].isVisible()||i++;return i===e})()?(this.el.setAttribute("disabled",""),this.disabled=!0):(this.el.removeAttribute("disabled"),this.disabled=!1),this.toggleLayerControlDisabled(),this._handleChange(),this.disabled}getMeta(t){let e=t.toLowerCase();if("extent"===e||"zoom"===e||"cs"===e)return this.parentLayer.src?this.el.querySelector(`:scope > map-meta[name=${e}]`)||this.parentLayer.shadowRoot.querySelector(`:host > map-meta[name=${e}]`):this.el.querySelector(`:scope > map-meta[name=${e}]`)||this.parentLayer.querySelector(`:scope > map-meta[name=${e}]`)}toggleLayerControlDisabled(){let t=this._layerControlCheckbox,e=this._layerControlLabel,i=this._opacityControl,s=this._opacitySlider,a=this._selectdetails;this.disabled?(t.disabled=!0,s.disabled=!0,e.style.fontStyle="italic",i.style.fontStyle="italic",a&&a.forEach((t=>{t.querySelectorAll("select").forEach((t=>{t.disabled=!0,t.style.fontStyle="italic"})),t.style.fontStyle="italic"}))):(t.disabled=!1,s.disabled=!1,e.style.fontStyle="normal",i.style.fontStyle="normal",a&&a.forEach((t=>{t.querySelectorAll("select").forEach((t=>{t.disabled=!1,t.style.fontStyle="normal"})),t.style.fontStyle="normal"})))}_handleChange(){this.checked&&!this.disabled&&this.parentLayer._layer?(this._extentLayer.addTo(this.parentLayer._layer),this._extentLayer.setZIndex(this.position)):this.parentLayer._layer?.removeLayer(this._extentLayer)}_validateLayerControlContainerHidden(){let t=this.parentLayer._propertiesGroupAnatomy;t&&(0===Array.from(this.parentLayer.src?this.parentLayer.shadowRoot.querySelectorAll(":host > map-extent"):this.parentLayer.querySelectorAll(":scope > map-extent")).filter((t=>!t.hidden)).length?t.setAttribute("hidden",""):t.removeAttribute("hidden"))}disconnectedCallback(){this.el.hasAttribute("data-moving")||this.parentLayer?.hasAttribute("data-moving")||!this._extentLayer||(this._validateLayerControlContainerHidden(),this._layerControlHTML&&this._layerControlHTML.remove(),this.parentLayer?._layer&&this.parentLayer._layer.removeLayer(this._extentLayer),this.parentLayer&&this.parentLayer.removeEventListener("map-change",this._changeHandler),this.mapEl&&this.mapEl.removeEventListener("map-projectionchange",this._changeHandler),this._boundsCalculated=!1,delete this._extentLayer,this.parentLayer?._layer&&delete this.parentLayer._layer.bounds)}async _waitForTrefLinks(){const t=this.el.querySelectorAll("map-link[rel=image][tref],map-link[rel=tile][tref],map-link[rel=features][tref],map-link[rel=query][tref]"),e=[];for(let i of Array.from(t))e.push(new Promise((t=>{if(i._templateVars)t();else{const e=setInterval((()=>{i._templateVars&&(clearInterval(e),t())}),10);setTimeout((()=>{clearInterval(e),t()}),1e3)}})));return Promise.all(e)}_calculateBounds(){delete this._extentLayer.bounds,delete this._extentLayer.zoomBounds,this.parentLayer._layer&&delete this.parentLayer._layer.bounds;let e=this.el.querySelectorAll("map-link[rel=image]:not([disabled]),map-link[rel=tile]:not([disabled]),map-link[rel=features]:not([disabled]),map-link[rel=query]:not([disabled])"),i=this.el.querySelector(":scope > map-meta[name=extent][content]")?s.getBoundsFromMeta(this.el):void 0,a=this.el.querySelector(":scope > map-meta[name=zoom][content]")?s.getZoomBoundsFromMeta(this.el):void 0;for(let s=0;s<e.length;s++){const h=e[s].getZoomBounds(),n=e[s].getBounds();let r=a&&a.hasOwnProperty("maxZoom")?a.maxZoom:-1/0,l=a&&a.hasOwnProperty("minZoom")?a.minZoom:1/0,o=a&&a.hasOwnProperty("minNativeZoom")?a.minNativeZoom:1/0,m=a&&a.hasOwnProperty("maxNativeZoom")?a.maxNativeZoom:-1/0;a?(r=Math.max(r,h.maxZoom),l=Math.min(l,h.minZoom),m=Math.max(m,h.maxNativeZoom),o=Math.min(o,h.minNativeZoom),a.minZoom=l,a.maxZoom=r,a.minNativeZoom=o,a.maxNativeZoom=m):a=Object.assign({},h),i?i.extend(n):i=t.bounds(n.min,n.max)}this._extentLayer.bounds=i||t.bounds(M[this.units].options.bounds.min,M[this.units].options.bounds.max),a||(a={}),a.hasOwnProperty("minZoom")||(a.minZoom=0),a.hasOwnProperty("maxZoom")||(a.maxZoom=M[this.units].options.resolutions.length-1),a.hasOwnProperty("minNativeZoom")&&a.minNativeZoom!==1/0||(a.minNativeZoom=a.minZoom),a.hasOwnProperty("maxNativeZoom")&&a.maxNativeZoom!==-1/0||(a.maxNativeZoom=a.maxZoom),this._extentLayer.zoomBounds=a,this._boundsCalculated=!0}async whenReady(){return new Promise(((t,e)=>{let i,s;this._extentLayer&&this._boundsCalculated?t():(i=setInterval((function(a){a._extentLayer&&a._boundsCalculated?(clearInterval(i),clearTimeout(s),t()):a.isConnected||(clearInterval(i),clearTimeout(s),e("map-extent was disconnected while waiting to be ready"))}),300,this.el),s=setTimeout((function(){clearInterval(i),clearTimeout(s),e("Timeout reached waiting for extent to be ready")}),1e4))}))}render(){return null}async whenLinksReady(){let t=this.el.querySelectorAll("map-link[rel=image],map-link[rel=tile],map-link[rel=features],map-link[rel=query]"),e=[];for(let i of Array.from(t))e.push(i.whenReady());return Promise.allSettled(e)}static get watchers(){return{units:[{unitsChanged:0}],_label:[{labelChanged:0}],checked:[{checkedChanged:0}],_opacity:[{opacityChanged:0}],hidden:[{hiddenChanged:0}]}}};export{l as map_extent}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { DOMTokenList } from '../utils/mapml/DOMTokenList.js';
|
|
2
|
+
export declare class GcdsExtMap {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
lat?: number;
|
|
5
|
+
lon?: number;
|
|
6
|
+
zoom?: number;
|
|
7
|
+
projection?: string;
|
|
8
|
+
controls: boolean;
|
|
9
|
+
static?: boolean;
|
|
10
|
+
_controlslist?: string;
|
|
11
|
+
locale?: any;
|
|
12
|
+
_controlsList: DOMTokenList;
|
|
13
|
+
_source: string;
|
|
14
|
+
_history: any[];
|
|
15
|
+
_historyIndex: number;
|
|
16
|
+
_traversalCall: number | false;
|
|
17
|
+
private _map;
|
|
18
|
+
private _container;
|
|
19
|
+
private mapCaptionObserver;
|
|
20
|
+
private _featureIndexOverlay;
|
|
21
|
+
private _zoomControl;
|
|
22
|
+
private _layerControl;
|
|
23
|
+
private _reloadButton;
|
|
24
|
+
private _fullScreenControl;
|
|
25
|
+
private _geolocationButton;
|
|
26
|
+
private _scaleBar;
|
|
27
|
+
private _searchButton;
|
|
28
|
+
private _isInitialized;
|
|
29
|
+
private _debug;
|
|
30
|
+
private _crosshair;
|
|
31
|
+
private _boundDropHandler;
|
|
32
|
+
private _boundDragoverHandler;
|
|
33
|
+
controlsChanged(newValue: boolean): void;
|
|
34
|
+
controlsListChanged(newValue: string): void;
|
|
35
|
+
get controlsList(): DOMTokenList;
|
|
36
|
+
set controlsList(value: string | null);
|
|
37
|
+
projectionChanged(newValue: string, oldValue: string): Promise<void>;
|
|
38
|
+
get extent(): any;
|
|
39
|
+
getWidth(): number;
|
|
40
|
+
getHeight(): number;
|
|
41
|
+
staticChanged(): void;
|
|
42
|
+
componentWillLoad(): void;
|
|
43
|
+
connectedCallback(): Promise<void>;
|
|
44
|
+
_setLocale(): void;
|
|
45
|
+
_initShadowRoot(): void;
|
|
46
|
+
_createMap(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
48
|
+
_ensureControlsLoaded(): Promise<void>;
|
|
49
|
+
_createControls(): void;
|
|
50
|
+
_toggleControls(): void;
|
|
51
|
+
_hideControls(): void;
|
|
52
|
+
_showControls(): void;
|
|
53
|
+
_deleteControls(): void;
|
|
54
|
+
_setControlsVisibility(control: any, hide: any): void;
|
|
55
|
+
_toggleStatic(): void;
|
|
56
|
+
_removeEvents(): void;
|
|
57
|
+
_setUpEvents(): void;
|
|
58
|
+
_dropHandler(event: DragEvent): void;
|
|
59
|
+
_dragoverHandler(event: DragEvent): void;
|
|
60
|
+
/**
|
|
61
|
+
* Toggle debug overlay on the map
|
|
62
|
+
*/
|
|
63
|
+
toggleDebug(): void;
|
|
64
|
+
locate(options?: any): void;
|
|
65
|
+
_changeWidth(width: number | string): void;
|
|
66
|
+
_changeHeight(height: number | string): void;
|
|
67
|
+
_updateMapCenter(): void;
|
|
68
|
+
_resetHistory(): void;
|
|
69
|
+
_addToHistory(): void;
|
|
70
|
+
private _updateNavigationControls;
|
|
71
|
+
/**
|
|
72
|
+
* Navigate back in map history
|
|
73
|
+
*/
|
|
74
|
+
back(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Allows user to move forward in history
|
|
77
|
+
*/
|
|
78
|
+
forward(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Allows the user to reload/reset the map's location to its initial location
|
|
81
|
+
* and reset the history to the initial state
|
|
82
|
+
*/
|
|
83
|
+
reload(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Internal method to toggle fullscreen (used by MapML context menu)
|
|
86
|
+
*/
|
|
87
|
+
private _toggleFullScreen;
|
|
88
|
+
/**
|
|
89
|
+
* Open the map source in a new window
|
|
90
|
+
*/
|
|
91
|
+
viewSource(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Zoom the map to a specific location and zoom level
|
|
94
|
+
* @param lat - Latitude coordinate
|
|
95
|
+
* @param lon - Longitude coordinate
|
|
96
|
+
* @param zoom - Zoom level (optional, defaults to current zoom)
|
|
97
|
+
*/
|
|
98
|
+
zoomToExtent(west: number, south: number, east: number, north: number): void;
|
|
99
|
+
zoomTo(lat: number, lon: number, zoom?: number): void;
|
|
100
|
+
whenProjectionDefined(projection: string): Promise<unknown>;
|
|
101
|
+
defineCustomProjection(jsonTemplate: any): any;
|
|
102
|
+
/**
|
|
103
|
+
* Promise-based method to wait until map is ready
|
|
104
|
+
* Returns a promise that resolves when the map is fully initialized
|
|
105
|
+
*/
|
|
106
|
+
whenReady(): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Promise-based method to wait until all layers are ready
|
|
109
|
+
* Returns a promise that resolves when all child layers are fully initialized
|
|
110
|
+
*/
|
|
111
|
+
whenLayersReady(): Promise<PromiseSettledResult<void>[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Convert GeoJSON to MapML and append as a layer
|
|
114
|
+
* @param json - GeoJSON object (FeatureCollection, Feature, or Geometry)
|
|
115
|
+
* @param options - Conversion options:
|
|
116
|
+
* - label: Layer label (defaults to json.name, json.title, or locale default)
|
|
117
|
+
* - projection: Target projection (defaults to map's projection)
|
|
118
|
+
* - caption: Feature caption property name or function
|
|
119
|
+
* - properties: Custom properties handling (function, string, or HTMLElement)
|
|
120
|
+
* - geometryFunction: Custom geometry processing function
|
|
121
|
+
* @returns The created map-layer element
|
|
122
|
+
*/
|
|
123
|
+
geojson2mapml(json: any, options?: any): HTMLElement;
|
|
124
|
+
render(): any;
|
|
125
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
argTypes: {
|
|
4
|
+
lat: {
|
|
5
|
+
name: string;
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
description: string;
|
|
10
|
+
table: {
|
|
11
|
+
type: {
|
|
12
|
+
summary: string;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
summary: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
lon: {
|
|
20
|
+
name: string;
|
|
21
|
+
control: {
|
|
22
|
+
type: string;
|
|
23
|
+
min: number;
|
|
24
|
+
max: number;
|
|
25
|
+
};
|
|
26
|
+
description: string;
|
|
27
|
+
table: {
|
|
28
|
+
type: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
defaultValue: {
|
|
32
|
+
summary: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
zoom: {
|
|
37
|
+
name: string;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
table: {
|
|
43
|
+
type: {
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
projection: {
|
|
52
|
+
name: string;
|
|
53
|
+
control: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
options: string[];
|
|
57
|
+
description: string;
|
|
58
|
+
table: {
|
|
59
|
+
type: {
|
|
60
|
+
summary: string;
|
|
61
|
+
};
|
|
62
|
+
defaultValue: {
|
|
63
|
+
summary: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
layer: {
|
|
68
|
+
name: string;
|
|
69
|
+
control: string;
|
|
70
|
+
options: string[];
|
|
71
|
+
mapping: {};
|
|
72
|
+
description: string;
|
|
73
|
+
table: {
|
|
74
|
+
type: {
|
|
75
|
+
summary: string;
|
|
76
|
+
};
|
|
77
|
+
defaultValue: {
|
|
78
|
+
summary: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
lang: {
|
|
83
|
+
name: string;
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
options: string[];
|
|
88
|
+
description: string;
|
|
89
|
+
table: {
|
|
90
|
+
type: {
|
|
91
|
+
summary: string;
|
|
92
|
+
};
|
|
93
|
+
defaultValue: {
|
|
94
|
+
summary: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
controls: {
|
|
99
|
+
name: string;
|
|
100
|
+
control: string;
|
|
101
|
+
description: string;
|
|
102
|
+
table: {
|
|
103
|
+
type: {
|
|
104
|
+
summary: string;
|
|
105
|
+
};
|
|
106
|
+
defaultValue: {
|
|
107
|
+
summary: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
static: {
|
|
112
|
+
name: string;
|
|
113
|
+
control: string;
|
|
114
|
+
description: string;
|
|
115
|
+
table: {
|
|
116
|
+
type: {
|
|
117
|
+
summary: string;
|
|
118
|
+
};
|
|
119
|
+
defaultValue: {
|
|
120
|
+
summary: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
controlslist: {
|
|
125
|
+
name: string;
|
|
126
|
+
control: string;
|
|
127
|
+
options: string[];
|
|
128
|
+
description: string;
|
|
129
|
+
table: {
|
|
130
|
+
type: {
|
|
131
|
+
summary: string;
|
|
132
|
+
};
|
|
133
|
+
defaultValue: {
|
|
134
|
+
summary: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
caption: {
|
|
139
|
+
name: string;
|
|
140
|
+
control: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
description: string;
|
|
144
|
+
table: {
|
|
145
|
+
type: {
|
|
146
|
+
summary: string;
|
|
147
|
+
};
|
|
148
|
+
defaultValue: {
|
|
149
|
+
summary: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export default _default;
|
|
156
|
+
export declare const Default: any;
|
|
157
|
+
export declare const HiddenBasemap: {
|
|
158
|
+
(args: any): string;
|
|
159
|
+
args: {
|
|
160
|
+
lat: number;
|
|
161
|
+
lon: number;
|
|
162
|
+
zoom: number;
|
|
163
|
+
projection: string;
|
|
164
|
+
controls: boolean;
|
|
165
|
+
layer: string;
|
|
166
|
+
caption: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare const Playground: {
|
|
170
|
+
(args: any): string;
|
|
171
|
+
args: {
|
|
172
|
+
lat: number;
|
|
173
|
+
lon: number;
|
|
174
|
+
zoom: number;
|
|
175
|
+
projection: string;
|
|
176
|
+
controls: boolean;
|
|
177
|
+
static: boolean;
|
|
178
|
+
lang: string;
|
|
179
|
+
controlslist: string[];
|
|
180
|
+
layer: string;
|
|
181
|
+
caption: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
export declare const GeoJSON2MapMLExample: {
|
|
185
|
+
render: (args: any, { loaded }: {
|
|
186
|
+
loaded: any;
|
|
187
|
+
}) => Element;
|
|
188
|
+
args: {
|
|
189
|
+
lat: number;
|
|
190
|
+
lon: number;
|
|
191
|
+
zoom: number;
|
|
192
|
+
projection: string;
|
|
193
|
+
controls: boolean;
|
|
194
|
+
static: boolean;
|
|
195
|
+
lang: string;
|
|
196
|
+
controlslist: string[];
|
|
197
|
+
layer: string;
|
|
198
|
+
caption: string;
|
|
199
|
+
};
|
|
200
|
+
loaders: (() => Promise<{
|
|
201
|
+
geoJsonData: any;
|
|
202
|
+
error?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
geoJsonData: any;
|
|
205
|
+
error: any;
|
|
206
|
+
}>)[];
|
|
207
|
+
parameters: {
|
|
208
|
+
docs: {
|
|
209
|
+
source: {
|
|
210
|
+
type: string;
|
|
211
|
+
language: string;
|
|
212
|
+
code: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
export declare const DarkMode: {
|
|
218
|
+
render: (args: any) => string;
|
|
219
|
+
args: {
|
|
220
|
+
lat: number;
|
|
221
|
+
lon: number;
|
|
222
|
+
zoom: number;
|
|
223
|
+
projection: string;
|
|
224
|
+
controls: boolean;
|
|
225
|
+
static: boolean;
|
|
226
|
+
lang: string;
|
|
227
|
+
controlslist: string[];
|
|
228
|
+
caption: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare class GcdsMapExtent {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
_label?: string;
|
|
5
|
+
opacity?: number;
|
|
6
|
+
_opacity?: number;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
units: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
get label(): string;
|
|
11
|
+
get opacityValue(): number;
|
|
12
|
+
mapEl: any;
|
|
13
|
+
parentLayer: any;
|
|
14
|
+
_map: any;
|
|
15
|
+
_extentLayer: any;
|
|
16
|
+
_layerControlHTML: any;
|
|
17
|
+
_layerControlCheckbox: any;
|
|
18
|
+
_layerControlLabel: any;
|
|
19
|
+
_opacityControl: any;
|
|
20
|
+
_opacitySlider: any;
|
|
21
|
+
_selectdetails: any;
|
|
22
|
+
_observer: any;
|
|
23
|
+
_changeHandler: any;
|
|
24
|
+
_boundsCalculated: boolean;
|
|
25
|
+
unitsChanged(newValue: string, oldValue: string): void;
|
|
26
|
+
labelChanged(): void;
|
|
27
|
+
checkedChanged(): void;
|
|
28
|
+
opacityChanged(newValue: number, oldValue: number): void;
|
|
29
|
+
hiddenChanged(newValue: boolean, oldValue: boolean): void;
|
|
30
|
+
private _applyHiddenState;
|
|
31
|
+
get extent(): any;
|
|
32
|
+
get position(): any;
|
|
33
|
+
getOuterHTML(): string;
|
|
34
|
+
zoomTo(): void;
|
|
35
|
+
getMapEl(): any;
|
|
36
|
+
getLayerEl(): any;
|
|
37
|
+
connectedCallback(): Promise<void>;
|
|
38
|
+
_bindMutationObserver(): void;
|
|
39
|
+
_runMutationObserver(elementsGroup: any): void;
|
|
40
|
+
getLayerControlHTML(): any;
|
|
41
|
+
_projectionMatch(): boolean;
|
|
42
|
+
_validateDisabled(): boolean;
|
|
43
|
+
getMeta(metaName: any): any;
|
|
44
|
+
toggleLayerControlDisabled(): void;
|
|
45
|
+
_handleChange(): void;
|
|
46
|
+
_validateLayerControlContainerHidden(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
48
|
+
_waitForTrefLinks(): Promise<any[]>;
|
|
49
|
+
_calculateBounds(): void;
|
|
50
|
+
whenReady(): Promise<void>;
|
|
51
|
+
render(): any;
|
|
52
|
+
whenLinksReady(): Promise<PromiseSettledResult<any>[]>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare class MapFeature {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
zoom?: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
_featureLayer: any;
|
|
7
|
+
_geometry: any;
|
|
8
|
+
_groupEl: any;
|
|
9
|
+
_observer: MutationObserver;
|
|
10
|
+
_parentEl: any;
|
|
11
|
+
_initialZoom: number;
|
|
12
|
+
_getFeatureExtent: any;
|
|
13
|
+
zoomChanged(newValue: number, oldValue: number): void;
|
|
14
|
+
minChanged(newValue: number, oldValue: number): void;
|
|
15
|
+
maxChanged(newValue: number, oldValue: number): void;
|
|
16
|
+
get zoomValue(): number;
|
|
17
|
+
get minValue(): number;
|
|
18
|
+
get maxValue(): number;
|
|
19
|
+
get extent(): any;
|
|
20
|
+
get position(): any;
|
|
21
|
+
getMapEl(): any;
|
|
22
|
+
getLayerEl(): any;
|
|
23
|
+
connectedCallback(): Promise<void>;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
reRender(layerToRenderOn: any): void;
|
|
26
|
+
removeFeature(layerToRemoveFrom: any): void;
|
|
27
|
+
addFeature(layerToAddTo: any): void;
|
|
28
|
+
getPrevious(): any;
|
|
29
|
+
isFirst(): boolean;
|
|
30
|
+
_createOrGetFeatureLayer(): void;
|
|
31
|
+
_setUpEvents(): void;
|
|
32
|
+
_getFallbackCS(): string;
|
|
33
|
+
_memoizeExtent(): () => any;
|
|
34
|
+
_updateExtent(shape: Element, coord: Element, bboxExtent: number[]): number[];
|
|
35
|
+
_getZoomBounds(): {
|
|
36
|
+
minZoom: number;
|
|
37
|
+
maxZoom: number;
|
|
38
|
+
minNativeZoom: number;
|
|
39
|
+
maxNativeZoom: number;
|
|
40
|
+
};
|
|
41
|
+
getZoomToZoom(): number;
|
|
42
|
+
getMeta(metaName: string): Element | null;
|
|
43
|
+
mapml2geojson(options?: any): any;
|
|
44
|
+
click(): void;
|
|
45
|
+
focus(options?: FocusOptions): void;
|
|
46
|
+
blur(): void;
|
|
47
|
+
zoomTo(): void;
|
|
48
|
+
whenReady(): Promise<void>;
|
|
49
|
+
render(): any;
|
|
50
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class MapInput {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
axis?: string;
|
|
7
|
+
units?: string;
|
|
8
|
+
position?: string;
|
|
9
|
+
rel?: string;
|
|
10
|
+
min?: string;
|
|
11
|
+
max?: string;
|
|
12
|
+
step?: string;
|
|
13
|
+
input: any;
|
|
14
|
+
_layer: any;
|
|
15
|
+
initialValue?: number;
|
|
16
|
+
getMapEl(): any;
|
|
17
|
+
getLayerEl(): any;
|
|
18
|
+
connectedCallback(): Promise<void>;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
checkValidity(): boolean;
|
|
21
|
+
reportValidity(): boolean;
|
|
22
|
+
whenReady(): Promise<void>;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare class GcdsMapLayer {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
src?: string;
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
hidden: boolean;
|
|
6
|
+
opacity?: number;
|
|
7
|
+
_opacity?: number;
|
|
8
|
+
media?: string;
|
|
9
|
+
get opacityValue(): number;
|
|
10
|
+
_layer: any;
|
|
11
|
+
_layerControl: any;
|
|
12
|
+
_layerControlHTML: any;
|
|
13
|
+
_layerItemSettingsHTML: any;
|
|
14
|
+
_propertiesGroupAnatomy: any;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
_fetchError: boolean;
|
|
17
|
+
_layerRegistry: Map<number, {
|
|
18
|
+
layer: any;
|
|
19
|
+
count: number;
|
|
20
|
+
}>;
|
|
21
|
+
srcChanged(newValue: string, oldValue: string): void;
|
|
22
|
+
checkedChanged(newValue: boolean): void;
|
|
23
|
+
opacityChanged(newValue: number, oldValue: number): void;
|
|
24
|
+
mediaChanged(newValue: string, oldValue: string): void;
|
|
25
|
+
hiddenChanged(newValue: boolean, oldValue: boolean): void;
|
|
26
|
+
private _applyHiddenState;
|
|
27
|
+
private loggedMessages;
|
|
28
|
+
private _observer?;
|
|
29
|
+
private _mql?;
|
|
30
|
+
private _changeHandler?;
|
|
31
|
+
private _boundCreateLayerControlHTML?;
|
|
32
|
+
private _layerControlCheckbox?;
|
|
33
|
+
private _layerControlLabel?;
|
|
34
|
+
private _opacityControl?;
|
|
35
|
+
private _opacitySlider?;
|
|
36
|
+
private _styles?;
|
|
37
|
+
get label(): string;
|
|
38
|
+
set label(val: string);
|
|
39
|
+
get extent(): any;
|
|
40
|
+
private _registerMediaQuery;
|
|
41
|
+
getMapEl(): any;
|
|
42
|
+
componentWillLoad(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
private _onRemove;
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
private _onAdd;
|
|
47
|
+
private _setLocalizedDefaultLabel;
|
|
48
|
+
private _selectAlternateOrChangeProjection;
|
|
49
|
+
private _copyRemoteContentToShadowRoot;
|
|
50
|
+
/**
|
|
51
|
+
* For "local" content, getProjection will use content of "this"
|
|
52
|
+
* For "remote" content, you need to pass the shadowRoot to search through
|
|
53
|
+
*/
|
|
54
|
+
getProjection(): any;
|
|
55
|
+
private _attachedToMap;
|
|
56
|
+
private _runMutationObserver;
|
|
57
|
+
/**
|
|
58
|
+
* Set up a function to watch additions of child elements of map-layer or
|
|
59
|
+
* map-layer.shadowRoot and invoke desired side effects via _runMutationObserver
|
|
60
|
+
*/
|
|
61
|
+
private _bindMutationObserver;
|
|
62
|
+
private _validateDisabled;
|
|
63
|
+
private toggleLayerControlDisabled;
|
|
64
|
+
queryable(): boolean;
|
|
65
|
+
getAlternateStyles(styleLinks: any[]): HTMLElement | null;
|
|
66
|
+
getOuterHTML(): string;
|
|
67
|
+
zoomTo(): void;
|
|
68
|
+
pasteFeature(feature: any): void;
|
|
69
|
+
private _createLayerControlHTML;
|
|
70
|
+
whenReady(): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Wait for all map-extent and map-feature elements to be ready.
|
|
73
|
+
* Returns a promise that resolves when all are settled.
|
|
74
|
+
*/
|
|
75
|
+
whenElemsReady(): Promise<PromiseSettledResult<unknown>[]>;
|
|
76
|
+
/**
|
|
77
|
+
* Convert this MapML layer to GeoJSON FeatureCollection
|
|
78
|
+
* @param options - Conversion options:
|
|
79
|
+
* - propertyFunction: Function to map <map-properties> to GeoJSON properties
|
|
80
|
+
* - transform: Whether to transform coordinates to GCRS (EPSG:4326), defaults to true
|
|
81
|
+
* @returns GeoJSON FeatureCollection object
|
|
82
|
+
*/
|
|
83
|
+
mapml2geojson(options?: any): any;
|
|
84
|
+
render(): any;
|
|
85
|
+
}
|