@npm9912/v-map 0.1.0
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 +185 -0
- package/dist/cjs/_commonjsHelpers-B83fTs8d.js +36 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/cesium-provider-BiFFyAl9.js +2598 -0
- package/dist/cjs/deck-provider-Ctq3Q8a1.js +47824 -0
- package/dist/cjs/geotiff-CEwvF9cG.js +47 -0
- package/dist/cjs/geotiff-source-RaNzzWkC.js +1522 -0
- package/dist/cjs/index-B1oGO1g-.js +10658 -0
- package/dist/cjs/index-B8LHqjyg.js +1765 -0
- package/dist/cjs/index-BIL4VsgP.js +310 -0
- package/dist/cjs/index-Blku2QY8.js +167 -0
- package/dist/cjs/index-CJvvX4yx.js +21 -0
- package/dist/cjs/index-CbVT-Con.js +699 -0
- package/dist/cjs/index-ISOEpMC3.js +20478 -0
- package/dist/cjs/index-JSwBbvGA.js +1621 -0
- package/dist/cjs/index.browser-DQhD8Jwl.js +6873 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/layer-extension-B_olS0rc.js +65 -0
- package/dist/cjs/leaflet-provider-DOqfs7g5.js +1815 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/main-dist-7TykwFci.js +2655 -0
- package/dist/cjs/messages-D7h4m8Tx.js +186 -0
- package/dist/cjs/openlayers-provider-Dfeg6L4n.js +1604 -0
- package/dist/cjs/polygon-layer-B9PrN7vr.js +1300 -0
- package/dist/cjs/scenegraph-layer-DwNoxQdi.js +2530 -0
- package/dist/cjs/styleconfig-CVRqArk-.js +23 -0
- package/dist/cjs/v-map-builder.cjs.entry.js +3786 -0
- package/dist/cjs/v-map-layer-geojson_12.cjs.entry.js +40894 -0
- package/dist/cjs/v-map-layer-helper-iAzxAg9I.js +285 -0
- package/dist/cjs/v-map-layer-terrain-geotiff.cjs.entry.js +258 -0
- package/dist/cjs/v-map-layercontrol.cjs.entry.js +247 -0
- package/dist/cjs/v-map.cjs.js +25 -0
- package/dist/cjs/v-map.v-map-layer-osm.v-map-layergroup-BsXp3BoL.js +582 -0
- package/dist/cjs/v-map_3.cjs.entry.js +12 -0
- package/dist/collection/collection-manifest.json +30 -0
- package/dist/collection/components/v-map/v-map.css +3 -0
- package/dist/collection/components/v-map/v-map.js +467 -0
- package/dist/collection/components/v-map/v-map.test.js +33 -0
- package/dist/collection/components/v-map-builder/v-map-builder.css +1 -0
- package/dist/collection/components/v-map-builder/v-map-builder.js +913 -0
- package/dist/collection/components/v-map-builder/v-map-builder.test.js +56 -0
- package/dist/collection/components/v-map-layer-geojson/v-map-layer-geojson.js +862 -0
- package/dist/collection/components/v-map-layer-geojson/v-map-layer-geojson.test.js +42 -0
- package/dist/collection/components/v-map-layer-geotiff/v-map-layer-geotiff.css +4 -0
- package/dist/collection/components/v-map-layer-geotiff/v-map-layer-geotiff.js +500 -0
- package/dist/collection/components/v-map-layer-geotiff/v-map-layer-geotiff.test.js +38 -0
- package/dist/collection/components/v-map-layer-google/v-map-layer-google.css +1 -0
- package/dist/collection/components/v-map-layer-google/v-map-layer-google.js +442 -0
- package/dist/collection/components/v-map-layer-osm/error-api.test.js +108 -0
- package/dist/collection/components/v-map-layer-osm/v-map-layer-osm.css +4 -0
- package/dist/collection/components/v-map-layer-osm/v-map-layer-osm.js +311 -0
- package/dist/collection/components/v-map-layer-osm/v-map-layer-osm.test.js +36 -0
- package/dist/collection/components/v-map-layer-scatterplot/v-map-layer-scatterplot.css +1 -0
- package/dist/collection/components/v-map-layer-scatterplot/v-map-layer-scatterplot.js +305 -0
- package/dist/collection/components/v-map-layer-terrain/v-map-layer-terrain.css +3 -0
- package/dist/collection/components/v-map-layer-terrain/v-map-layer-terrain.js +548 -0
- package/dist/collection/components/v-map-layer-terrain/v-map-layer-terrain.test.js +36 -0
- package/dist/collection/components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.css +3 -0
- package/dist/collection/components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.js +735 -0
- package/dist/collection/components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.test.js +42 -0
- package/dist/collection/components/v-map-layer-tile3d/v-map-layer-tile3d.css +3 -0
- package/dist/collection/components/v-map-layer-tile3d/v-map-layer-tile3d.js +449 -0
- package/dist/collection/components/v-map-layer-tile3d/v-map-layer-tile3d.test.js +50 -0
- package/dist/collection/components/v-map-layer-wcs/v-map-layer-wcs.css +1 -0
- package/dist/collection/components/v-map-layer-wcs/v-map-layer-wcs.js +448 -0
- package/dist/collection/components/v-map-layer-wcs/v-map-layer-wcs.test.js +39 -0
- package/dist/collection/components/v-map-layer-wfs/v-map-layer-wfs.css +1 -0
- package/dist/collection/components/v-map-layer-wfs/v-map-layer-wfs.js +489 -0
- package/dist/collection/components/v-map-layer-wfs/v-map-layer-wfs.test.js +43 -0
- package/dist/collection/components/v-map-layer-wkt/v-map-layer-wkt.css +1 -0
- package/dist/collection/components/v-map-layer-wkt/v-map-layer-wkt.js +811 -0
- package/dist/collection/components/v-map-layer-wkt/v-map-layer-wkt.test.js +34 -0
- package/dist/collection/components/v-map-layer-wms/v-map-layer-wms.css +1 -0
- package/dist/collection/components/v-map-layer-wms/v-map-layer-wms.js +453 -0
- package/dist/collection/components/v-map-layer-wms/v-map-layer-wms.test.js +36 -0
- package/dist/collection/components/v-map-layer-xyz/v-map-layer-xyz.css +1 -0
- package/dist/collection/components/v-map-layer-xyz/v-map-layer-xyz.js +331 -0
- package/dist/collection/components/v-map-layer-xyz/v-map-layer-xyz.test.js +28 -0
- package/dist/collection/components/v-map-layercontrol/v-map-layercontrol.css +74 -0
- package/dist/collection/components/v-map-layercontrol/v-map-layercontrol.js +277 -0
- package/dist/collection/components/v-map-layercontrol/v-map-layercontrol.test.js +134 -0
- package/dist/collection/components/v-map-layergroup/v-map-layergroup.css +4 -0
- package/dist/collection/components/v-map-layergroup/v-map-layergroup.js +212 -0
- package/dist/collection/components/v-map-layergroup/v-map-layergroup.test.js +39 -0
- package/dist/collection/components/v-map-style/v-map-style.css +38 -0
- package/dist/collection/components/v-map-style/v-map-style.js +492 -0
- package/dist/collection/components/v-map-style/v-map-style.unit.js +62 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/layer/v-map-layer-helper.js +281 -0
- package/dist/collection/layer/v-map-layer-helper.unit.js +234 -0
- package/dist/collection/lib/cesium-loader.js +58 -0
- package/dist/collection/lib/ensure-importmap.js +12 -0
- package/dist/collection/lib/ensure-importmap.unit.js +57 -0
- package/dist/collection/lib/versions.gen.js +6 -0
- package/dist/collection/lib/vstyle.js +8 -0
- package/dist/collection/map-provider/cesium/CesiumGeoTIFFTerrainProvider.js +285 -0
- package/dist/collection/map-provider/cesium/CesiumLayerGroups.js +159 -0
- package/dist/collection/map-provider/cesium/GeoTIFFImageryProvider.js +192 -0
- package/dist/collection/map-provider/cesium/GeoTIFFImageryProvider.test.js +57 -0
- package/dist/collection/map-provider/cesium/cesium-provider.js +1408 -0
- package/dist/collection/map-provider/cesium/i-layer.js +1 -0
- package/dist/collection/map-provider/cesium/layer-manager.js +467 -0
- package/dist/collection/map-provider/deck/DeckGLGeoTIFFLayer.js +483 -0
- package/dist/collection/map-provider/deck/DeckGLGeoTIFFTerrainLayer.js +410 -0
- package/dist/collection/map-provider/deck/LayerGroupWithModel.js +169 -0
- package/dist/collection/map-provider/deck/LayerGroups.js +192 -0
- package/dist/collection/map-provider/deck/LayerModel.js +1 -0
- package/dist/collection/map-provider/deck/RenderableGroup.js +1 -0
- package/dist/collection/map-provider/deck/deck-provider.js +1563 -0
- package/dist/collection/map-provider/geotiff/geotiff-source.js +172 -0
- package/dist/collection/map-provider/geotiff/utils/AABB2D.js +24 -0
- package/dist/collection/map-provider/geotiff/utils/BVHNode2D.js +166 -0
- package/dist/collection/map-provider/geotiff/utils/GeoTIFFTileProcessor.js +484 -0
- package/dist/collection/map-provider/geotiff/utils/Triangle.js +1 -0
- package/dist/collection/map-provider/geotiff/utils/Triangulation.js +321 -0
- package/dist/collection/map-provider/geotiff/utils/colormap-utils.js +190 -0
- package/dist/collection/map-provider/geotiff/utils/normalization-utils.js +122 -0
- package/dist/collection/map-provider/geotiff/utils/sampling-utils.js +108 -0
- package/dist/collection/map-provider/leaflet/GeoTIFFGridLayer.js +147 -0
- package/dist/collection/map-provider/leaflet/WCSGridLayer.js +124 -0
- package/dist/collection/map-provider/leaflet/google-map-tiles-layer.js +352 -0
- package/dist/collection/map-provider/leaflet/leaflet-helpers.js +94 -0
- package/dist/collection/map-provider/leaflet/leaflet-provider.js +1095 -0
- package/dist/collection/map-provider/ol/CustomGeoTiff.js +145 -0
- package/dist/collection/map-provider/ol/openlayers-helper.js +26 -0
- package/dist/collection/map-provider/ol/openlayers-provider.js +1427 -0
- package/dist/collection/map-provider/provider-factory.js +44 -0
- package/dist/collection/map-provider/provider-factory.unit.js +66 -0
- package/dist/collection/testing/browser-test-utils.js +49 -0
- package/dist/collection/testing/e2e-testing.js +122 -0
- package/dist/collection/testing/e2e-utils.js +70 -0
- package/dist/collection/testing/geotiff-test-server.js +100 -0
- package/dist/collection/testing/mocks/geostyler-lyrx-parser.js +12 -0
- package/dist/collection/testing/mocks/geostyler-mapbox-parser.js +12 -0
- package/dist/collection/testing/mocks/geostyler-qgis-parser.js +12 -0
- package/dist/collection/testing/mocks/geostyler-sld-parser.js +13 -0
- package/dist/collection/testing/mocks/geostyler-style.js +5 -0
- package/dist/collection/testing/setupTests.browser.js +1 -0
- package/dist/collection/testing/setupTests.stencil.js +20 -0
- package/dist/collection/testing/setupTests.vitest.js +59 -0
- package/dist/collection/testing/stencil-testing-wrapper.js +43 -0
- package/dist/collection/testing/styleMock.js +1 -0
- package/dist/collection/types/color.js +1 -0
- package/dist/collection/types/cssmode.js +1 -0
- package/dist/collection/types/flavour.js +1 -0
- package/dist/collection/types/layerconfig.js +1 -0
- package/dist/collection/types/lonlat.js +1 -0
- package/dist/collection/types/mapinitoptions.js +1 -0
- package/dist/collection/types/mapprovider.js +1 -0
- package/dist/collection/types/provideroptions.js +1 -0
- package/dist/collection/types/styleconfig.js +19 -0
- package/dist/collection/types/styling.js +13 -0
- package/dist/collection/types/styling.unit.js +37 -0
- package/dist/collection/types/vmaplayer.js +1 -0
- package/dist/collection/utils/async-mutex.js +28 -0
- package/dist/collection/utils/diff.js +142 -0
- package/dist/collection/utils/diff.unit.js +59 -0
- package/dist/collection/utils/dom-env.js +43 -0
- package/dist/collection/utils/dom-env.unit.js +92 -0
- package/dist/collection/utils/events.js +8 -0
- package/dist/collection/utils/logger.js +183 -0
- package/dist/collection/utils/logger.unit.js +98 -0
- package/dist/collection/utils/messages.js +12 -0
- package/dist/collection/utils/spatial-utils.js +27 -0
- package/dist/collection/utils/spatial-utils.unit.js +24 -0
- package/dist/components/_commonjsHelpers.js +1 -0
- package/dist/components/cesium-provider.js +1 -0
- package/dist/components/deck-provider.js +1 -0
- package/dist/components/events.js +1 -0
- package/dist/components/geotiff-source.js +1 -0
- package/dist/components/geotiff.js +4 -0
- package/dist/components/index.browser.js +15 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +1 -0
- package/dist/components/index3.js +1 -0
- package/dist/components/index4.js +1 -0
- package/dist/components/index5.js +1 -0
- package/dist/components/index6.js +1 -0
- package/dist/components/index7.js +1 -0
- package/dist/components/index8.js +7 -0
- package/dist/components/layer-extension.js +1 -0
- package/dist/components/leaflet-provider.js +1 -0
- package/dist/components/main-dist.js +1 -0
- package/dist/components/messages.js +1 -0
- package/dist/components/openlayers-provider.js +1 -0
- package/dist/components/polygon-layer.js +1 -0
- package/dist/components/scenegraph-layer.js +1 -0
- package/dist/components/styleconfig.js +1 -0
- package/dist/components/styling.js +1 -0
- package/dist/components/v-map-builder.d.ts +11 -0
- package/dist/components/v-map-builder.js +2 -0
- package/dist/components/v-map-layer-geojson.d.ts +11 -0
- package/dist/components/v-map-layer-geojson.js +1 -0
- package/dist/components/v-map-layer-geojson2.js +1 -0
- package/dist/components/v-map-layer-geotiff.d.ts +11 -0
- package/dist/components/v-map-layer-geotiff.js +1 -0
- package/dist/components/v-map-layer-geotiff2.js +1 -0
- package/dist/components/v-map-layer-google.d.ts +11 -0
- package/dist/components/v-map-layer-google.js +1 -0
- package/dist/components/v-map-layer-google2.js +1 -0
- package/dist/components/v-map-layer-helper.js +1 -0
- package/dist/components/v-map-layer-osm.d.ts +11 -0
- package/dist/components/v-map-layer-osm.js +1 -0
- package/dist/components/v-map-layer-osm2.js +1 -0
- package/dist/components/v-map-layer-scatterplot.d.ts +11 -0
- package/dist/components/v-map-layer-scatterplot.js +1 -0
- package/dist/components/v-map-layer-scatterplot2.js +1 -0
- package/dist/components/v-map-layer-terrain-geotiff.d.ts +11 -0
- package/dist/components/v-map-layer-terrain-geotiff.js +1 -0
- package/dist/components/v-map-layer-terrain.d.ts +11 -0
- package/dist/components/v-map-layer-terrain.js +1 -0
- package/dist/components/v-map-layer-terrain2.js +1 -0
- package/dist/components/v-map-layer-tile3d.d.ts +11 -0
- package/dist/components/v-map-layer-tile3d.js +1 -0
- package/dist/components/v-map-layer-tile3d2.js +1 -0
- package/dist/components/v-map-layer-wcs.d.ts +11 -0
- package/dist/components/v-map-layer-wcs.js +1 -0
- package/dist/components/v-map-layer-wcs2.js +1 -0
- package/dist/components/v-map-layer-wfs.d.ts +11 -0
- package/dist/components/v-map-layer-wfs.js +1 -0
- package/dist/components/v-map-layer-wfs2.js +1 -0
- package/dist/components/v-map-layer-wkt.d.ts +11 -0
- package/dist/components/v-map-layer-wkt.js +1 -0
- package/dist/components/v-map-layer-wkt2.js +1 -0
- package/dist/components/v-map-layer-wms.d.ts +11 -0
- package/dist/components/v-map-layer-wms.js +1 -0
- package/dist/components/v-map-layer-wms2.js +1 -0
- package/dist/components/v-map-layer-xyz.d.ts +11 -0
- package/dist/components/v-map-layer-xyz.js +1 -0
- package/dist/components/v-map-layer-xyz2.js +1 -0
- package/dist/components/v-map-layercontrol.d.ts +11 -0
- package/dist/components/v-map-layercontrol.js +1 -0
- package/dist/components/v-map-layergroup.d.ts +11 -0
- package/dist/components/v-map-layergroup.js +1 -0
- package/dist/components/v-map-layergroup2.js +1 -0
- package/dist/components/v-map-style.d.ts +11 -0
- package/dist/components/v-map-style.js +1 -0
- package/dist/components/v-map-style2.js +10 -0
- package/dist/components/v-map.d.ts +11 -0
- package/dist/components/v-map.js +1 -0
- package/dist/components/v-map2.js +1 -0
- package/dist/esm/_commonjsHelpers-E-ZsRS8r.js +32 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/cesium-provider-BJfAup3w.js +2596 -0
- package/dist/esm/deck-provider-C7U9VDEq.js +47709 -0
- package/dist/esm/geotiff-BEWxTIfH.js +45 -0
- package/dist/esm/geotiff-source-esnDnC-u.js +1516 -0
- package/dist/esm/index-B1zwA4IC.js +685 -0
- package/dist/esm/index-BBpiaTpT.js +165 -0
- package/dist/esm/index-BIEmlzCf.js +1697 -0
- package/dist/esm/index-BUHa4Jj0.js +307 -0
- package/dist/esm/index-DbSdn93t.js +20461 -0
- package/dist/esm/index-RpJarvr_.js +10656 -0
- package/dist/esm/index-jN06TXUp.js +14 -0
- package/dist/esm/index-jzneDarq.js +1613 -0
- package/dist/esm/index.browser-DhQAXuA7.js +6860 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/layer-extension-CZXK5goK.js +63 -0
- package/dist/esm/leaflet-provider-Q41TB6ku.js +1794 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/main-dist-CwnA7_Xn.js +2652 -0
- package/dist/esm/messages-CMKJzsgL.js +180 -0
- package/dist/esm/openlayers-provider-CMsDsQTQ.js +1602 -0
- package/dist/esm/polygon-layer-ByhxGhWC.js +1295 -0
- package/dist/esm/scenegraph-layer-09K_B6DT.js +2526 -0
- package/dist/esm/styleconfig-B-bAcABs.js +21 -0
- package/dist/esm/v-map-builder.entry.js +3784 -0
- package/dist/esm/v-map-layer-geojson_12.entry.js +40881 -0
- package/dist/esm/v-map-layer-helper-Dys44Cgo.js +283 -0
- package/dist/esm/v-map-layer-terrain-geotiff.entry.js +256 -0
- package/dist/esm/v-map-layercontrol.entry.js +245 -0
- package/dist/esm/v-map.js +21 -0
- package/dist/esm/v-map.v-map-layer-osm.v-map-layergroup-B4pFHuSf.js +572 -0
- package/dist/esm/v-map_3.entry.js +4 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/cesium-augment.d.ts +5 -0
- package/dist/types/components/v-map/v-map.d.ts +70 -0
- package/dist/types/components/v-map/v-map.test.d.ts +1 -0
- package/dist/types/components/v-map-builder/v-map-builder.d.ts +48 -0
- package/dist/types/components/v-map-builder/v-map-builder.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-geojson/v-map-layer-geojson.d.ts +129 -0
- package/dist/types/components/v-map-layer-geojson/v-map-layer-geojson.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-geotiff/v-map-layer-geotiff.d.ts +74 -0
- package/dist/types/components/v-map-layer-geotiff/v-map-layer-geotiff.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-google/v-map-layer-google.d.ts +78 -0
- package/dist/types/components/v-map-layer-osm/error-api.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-osm/v-map-layer-osm.d.ts +50 -0
- package/dist/types/components/v-map-layer-osm/v-map-layer-osm.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-scatterplot/v-map-layer-scatterplot.d.ts +54 -0
- package/dist/types/components/v-map-layer-terrain/v-map-layer-terrain.d.ts +74 -0
- package/dist/types/components/v-map-layer-terrain/v-map-layer-terrain.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.d.ts +117 -0
- package/dist/types/components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-tile3d/v-map-layer-tile3d.d.ts +69 -0
- package/dist/types/components/v-map-layer-tile3d/v-map-layer-tile3d.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-wcs/v-map-layer-wcs.d.ts +47 -0
- package/dist/types/components/v-map-layer-wcs/v-map-layer-wcs.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-wfs/v-map-layer-wfs.d.ts +59 -0
- package/dist/types/components/v-map-layer-wfs/v-map-layer-wfs.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-wkt/v-map-layer-wkt.d.ts +132 -0
- package/dist/types/components/v-map-layer-wkt/v-map-layer-wkt.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-wms/v-map-layer-wms.d.ts +76 -0
- package/dist/types/components/v-map-layer-wms/v-map-layer-wms.test.d.ts +1 -0
- package/dist/types/components/v-map-layer-xyz/v-map-layer-xyz.d.ts +59 -0
- package/dist/types/components/v-map-layer-xyz/v-map-layer-xyz.test.d.ts +1 -0
- package/dist/types/components/v-map-layercontrol/v-map-layercontrol.d.ts +44 -0
- package/dist/types/components/v-map-layercontrol/v-map-layercontrol.test.d.ts +1 -0
- package/dist/types/components/v-map-layergroup/v-map-layergroup.d.ts +31 -0
- package/dist/types/components/v-map-layergroup/v-map-layergroup.test.d.ts +1 -0
- package/dist/types/components/v-map-style/v-map-style.d.ts +75 -0
- package/dist/types/components/v-map-style/v-map-style.unit.d.ts +1 -0
- package/dist/types/components.d.ts +2391 -0
- package/dist/types/globals.d.ts +16 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/layer/v-map-layer-helper.d.ts +45 -0
- package/dist/types/layer/v-map-layer-helper.unit.d.ts +1 -0
- package/dist/types/leaflet-augment.d.ts +15 -0
- package/dist/types/lib/cesium-loader.d.ts +3 -0
- package/dist/types/lib/ensure-importmap.d.ts +3 -0
- package/dist/types/lib/ensure-importmap.unit.d.ts +1 -0
- package/dist/types/lib/versions.gen.d.ts +5 -0
- package/dist/types/lib/vstyle.d.ts +44 -0
- package/dist/types/map-provider/cesium/CesiumGeoTIFFTerrainProvider.d.ts +92 -0
- package/dist/types/map-provider/cesium/CesiumLayerGroups.d.ts +64 -0
- package/dist/types/map-provider/cesium/GeoTIFFImageryProvider.d.ts +75 -0
- package/dist/types/map-provider/cesium/GeoTIFFImageryProvider.test.d.ts +1 -0
- package/dist/types/map-provider/cesium/cesium-provider.d.ts +87 -0
- package/dist/types/map-provider/cesium/i-layer.d.ts +11 -0
- package/dist/types/map-provider/cesium/layer-manager.d.ts +31 -0
- package/dist/types/map-provider/deck/DeckGLGeoTIFFLayer.d.ts +91 -0
- package/dist/types/map-provider/deck/DeckGLGeoTIFFTerrainLayer.d.ts +82 -0
- package/dist/types/map-provider/deck/LayerGroupWithModel.d.ts +55 -0
- package/dist/types/map-provider/deck/LayerGroups.d.ts +63 -0
- package/dist/types/map-provider/deck/LayerModel.d.ts +8 -0
- package/dist/types/map-provider/deck/RenderableGroup.d.ts +20 -0
- package/dist/types/map-provider/deck/deck-provider.d.ts +92 -0
- package/dist/types/map-provider/geotiff/geotiff-source.d.ts +30 -0
- package/dist/types/map-provider/geotiff/utils/AABB2D.d.ts +28 -0
- package/dist/types/map-provider/geotiff/utils/BVHNode2D.d.ts +36 -0
- package/dist/types/map-provider/geotiff/utils/GeoTIFFTileProcessor.d.ts +116 -0
- package/dist/types/map-provider/geotiff/utils/Triangle.d.ts +5 -0
- package/dist/types/map-provider/geotiff/utils/Triangulation.d.ts +94 -0
- package/dist/types/map-provider/geotiff/utils/colormap-utils.d.ts +47 -0
- package/dist/types/map-provider/geotiff/utils/normalization-utils.d.ts +39 -0
- package/dist/types/map-provider/geotiff/utils/sampling-utils.d.ts +13 -0
- package/dist/types/map-provider/leaflet/GeoTIFFGridLayer.d.ts +34 -0
- package/dist/types/map-provider/leaflet/WCSGridLayer.d.ts +38 -0
- package/dist/types/map-provider/leaflet/google-map-tiles-layer.d.ts +73 -0
- package/dist/types/map-provider/leaflet/leaflet-helpers.d.ts +6 -0
- package/dist/types/map-provider/leaflet/leaflet-provider.d.ts +73 -0
- package/dist/types/map-provider/ol/CustomGeoTiff.d.ts +14 -0
- package/dist/types/map-provider/ol/openlayers-helper.d.ts +2 -0
- package/dist/types/map-provider/ol/openlayers-provider.d.ts +80 -0
- package/dist/types/map-provider/provider-factory.d.ts +12 -0
- package/dist/types/map-provider/provider-factory.unit.d.ts +1 -0
- package/dist/types/namespaces.d.ts +3 -0
- package/dist/types/ol-augment.d.ts +3 -0
- package/dist/types/ol-override.d.ts +7 -0
- package/dist/types/ol.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/testing/browser-test-utils.d.ts +6 -0
- package/dist/types/testing/e2e-testing.d.ts +5 -0
- package/dist/types/testing/e2e-utils.d.ts +4 -0
- package/dist/types/testing/geotiff-test-server.d.ts +5 -0
- package/dist/types/testing/mocks/geostyler-lyrx-parser.d.ts +11 -0
- package/dist/types/testing/mocks/geostyler-mapbox-parser.d.ts +11 -0
- package/dist/types/testing/mocks/geostyler-qgis-parser.d.ts +11 -0
- package/dist/types/testing/mocks/geostyler-sld-parser.d.ts +11 -0
- package/dist/types/testing/mocks/geostyler-style.d.ts +5 -0
- package/dist/types/testing/setupTests.browser.d.ts +1 -0
- package/dist/types/testing/setupTests.stencil.d.ts +1 -0
- package/dist/types/testing/setupTests.vitest.d.ts +1 -0
- package/dist/types/testing/stencil-testing-wrapper.d.ts +3 -0
- package/dist/types/types/color.d.ts +1 -0
- package/dist/types/types/cssmode.d.ts +1 -0
- package/dist/types/types/flavour.d.ts +1 -0
- package/dist/types/types/layerconfig.d.ts +207 -0
- package/dist/types/types/lonlat.d.ts +1 -0
- package/dist/types/types/mapinitoptions.d.ts +4 -0
- package/dist/types/types/mapprovider.d.ts +46 -0
- package/dist/types/types/provideroptions.d.ts +8 -0
- package/dist/types/types/styleconfig.d.ts +27 -0
- package/dist/types/types/styling.d.ts +24 -0
- package/dist/types/types/styling.unit.d.ts +1 -0
- package/dist/types/types/vmaplayer.d.ts +10 -0
- package/dist/types/utils/async-mutex.d.ts +7 -0
- package/dist/types/utils/diff.d.ts +64 -0
- package/dist/types/utils/diff.unit.d.ts +1 -0
- package/dist/types/utils/dom-env.d.ts +5 -0
- package/dist/types/utils/dom-env.unit.d.ts +1 -0
- package/dist/types/utils/events.d.ts +29 -0
- package/dist/types/utils/logger.d.ts +47 -0
- package/dist/types/utils/logger.unit.d.ts +1 -0
- package/dist/types/utils/messages.d.ts +12 -0
- package/dist/types/utils/spatial-utils.d.ts +6 -0
- package/dist/types/utils/spatial-utils.unit.d.ts +1 -0
- package/dist/types/versions.d.ts +7 -0
- package/dist/v-map/index.esm.js +0 -0
- package/dist/v-map/p--vVleK-M.js +1 -0
- package/dist/v-map/p-09d10db0.entry.js +1 -0
- package/dist/v-map/p-5eba6058.entry.js +10 -0
- package/dist/v-map/p-6b102336.entry.js +1 -0
- package/dist/v-map/p-B-bAcABs.js +1 -0
- package/dist/v-map/p-BBpiaTpT.js +1 -0
- package/dist/v-map/p-BdijL4Av.js +1 -0
- package/dist/v-map/p-Be3r33VF.js +4 -0
- package/dist/v-map/p-BeFu0ap4.js +1 -0
- package/dist/v-map/p-BxFJezdK.js +1 -0
- package/dist/v-map/p-CMKJzsgL.js +1 -0
- package/dist/v-map/p-CXfA_q8m.js +1 -0
- package/dist/v-map/p-CZqY0yW4.js +1 -0
- package/dist/v-map/p-CafTHT9i.js +1 -0
- package/dist/v-map/p-DCTHyf58.js +1 -0
- package/dist/v-map/p-DQuL1Twl.js +1 -0
- package/dist/v-map/p-DR9McdNX.js +1 -0
- package/dist/v-map/p-Dckgonw8.js +1 -0
- package/dist/v-map/p-DhQAXuA7.js +15 -0
- package/dist/v-map/p-DmICdG34.js +7 -0
- package/dist/v-map/p-DrOQ9V4h.js +1 -0
- package/dist/v-map/p-DvHXtWUg.js +1 -0
- package/dist/v-map/p-E-ZsRS8r.js +1 -0
- package/dist/v-map/p-MyTSFnEk.js +1 -0
- package/dist/v-map/p-RpJarvr_.js +1 -0
- package/dist/v-map/p-WaMDUuAz.js +1 -0
- package/dist/v-map/p-aa410e64.entry.js +2 -0
- package/dist/v-map/p-c21c93fe.entry.js +1 -0
- package/dist/v-map/p-jzneDarq.js +2 -0
- package/dist/v-map/p-uiIP-taz.js +1 -0
- package/dist/v-map/v-map.esm.js +1 -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 +193 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-JSwBbvGA.js');
|
|
4
|
+
var messages = require('./messages-D7h4m8Tx.js');
|
|
5
|
+
var vMapLayerHelper = require('./v-map-layer-helper-iAzxAg9I.js');
|
|
6
|
+
|
|
7
|
+
/** Exhaustiveness-Guard für Switch/Union */
|
|
8
|
+
function assertNever(x, msg) {
|
|
9
|
+
throw new Error(msg ?? `Unbekannte Engine: ${String(x)}`);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Erzeugt eine konkrete Karten-Provider-Instanz abhängig vom gewählten Flavour.
|
|
13
|
+
*
|
|
14
|
+
* Unterstützt:
|
|
15
|
+
* - "ol" → OpenLayers
|
|
16
|
+
* - "cesium" → CesiumJS
|
|
17
|
+
* - "deck" → Deck.gl
|
|
18
|
+
* - "leaflet" → Leaflet
|
|
19
|
+
*/
|
|
20
|
+
async function createProvider(engine) {
|
|
21
|
+
try {
|
|
22
|
+
switch (engine) {
|
|
23
|
+
case 'ol': {
|
|
24
|
+
const { OpenLayersProvider } = await Promise.resolve().then(function () { return require('./openlayers-provider-Dfeg6L4n.js'); });
|
|
25
|
+
return new OpenLayersProvider();
|
|
26
|
+
}
|
|
27
|
+
case 'cesium': {
|
|
28
|
+
const { CesiumProvider } = await Promise.resolve().then(function () { return require('./cesium-provider-BiFFyAl9.js'); });
|
|
29
|
+
return new CesiumProvider();
|
|
30
|
+
}
|
|
31
|
+
case 'deck': {
|
|
32
|
+
const { DeckProvider } = await Promise.resolve().then(function () { return require('./deck-provider-Ctq3Q8a1.js'); }).then(function (n) { return n.deckProvider; });
|
|
33
|
+
return new DeckProvider();
|
|
34
|
+
}
|
|
35
|
+
case 'leaflet': {
|
|
36
|
+
const { LeafletProvider } = await Promise.resolve().then(function () { return require('./leaflet-provider-DOqfs7g5.js'); });
|
|
37
|
+
return new LeafletProvider();
|
|
38
|
+
}
|
|
39
|
+
default: {
|
|
40
|
+
// Exhaustiveness: Falls Flavour erweitert wird, meckert TS hier
|
|
41
|
+
return assertNever(engine, `Unbekannte Engine: ${engine}`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
messages.log(e);
|
|
47
|
+
throw e;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* AUTO-GENERATED: DO NOT EDIT. Run "pnpm build" to regenerate. */
|
|
52
|
+
const CESIUM_VERSION = '1.139.1';
|
|
53
|
+
const OL_VERSION = '10.8.0';
|
|
54
|
+
const LEAFLET_VERSION = '1.9.4';
|
|
55
|
+
const IMPORT_MAP_JSON = "{\n \"imports\": {\n \"ol/\": \"https://esm.sh/ol@10.8.0/\",\n \"ol\": \"https://esm.sh/ol@10.8.0\",\n \"leaflet\": \"https://esm.sh/leaflet@1.9.4\",\n \"deck\": \"https://esm.sh/deck@9.2.11\",\n \"@loaders.gl/core\": \"https://esm.sh/@loaders.gl/core@4.3.4\",\n \"@loaders.gl/3d-tiles\": \"https://esm.sh/@loaders.gl/3d-tiles@4.3.4\",\n \"@loaders.gl/gis\": \"https://esm.sh/@loaders.gl/gis@4.3.4\",\n \"@loaders.gl/gltf\": \"https://esm.sh/@loaders.gl/gltf@4.3.4\",\n \"@loaders.gl/images\": \"https://esm.sh/@loaders.gl/images@4.3.4\",\n \"@loaders.gl/loader-utils\": \"https://esm.sh/@loaders.gl/loader-utils@4.3.4\",\n \"@loaders.gl/mvt\": \"https://esm.sh/@loaders.gl/mvt@4.3.4\",\n \"@loaders.gl/schema\": \"https://esm.sh/@loaders.gl/schema@4.3.4\",\n \"@loaders.gl/terrain\": \"https://esm.sh/@loaders.gl/terrain@4.3.4\",\n \"@loaders.gl/textures\": \"https://esm.sh/@loaders.gl/textures@4.3.4\",\n \"@loaders.gl/tiles\": \"https://esm.sh/@loaders.gl/tiles@4.3.4\",\n \"@loaders.gl/wms\": \"https://esm.sh/@loaders.gl/wms@4.3.4\"\n }\n}";
|
|
56
|
+
|
|
57
|
+
function ensureImportMap({ allowOverride = true } = {}) {
|
|
58
|
+
if (allowOverride && document.querySelector('script[type="importmap"]'))
|
|
59
|
+
return;
|
|
60
|
+
if (!document.querySelector('script[type="importmap"][data-v-map]')) {
|
|
61
|
+
const s = document.createElement('script');
|
|
62
|
+
s.type = 'importmap';
|
|
63
|
+
s.dataset.vMap = 'true';
|
|
64
|
+
s.textContent = IMPORT_MAP_JSON;
|
|
65
|
+
document.head.appendChild(s);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const isBrowser = () => typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
70
|
+
const supportsAdoptedStyleSheets = () => isBrowser() &&
|
|
71
|
+
'adoptedStyleSheets' in document &&
|
|
72
|
+
typeof CSSStyleSheet.prototype.replaceSync === 'function';
|
|
73
|
+
function onNextTick(fn) {
|
|
74
|
+
if (typeof requestAnimationFrame !== 'undefined')
|
|
75
|
+
requestAnimationFrame(fn);
|
|
76
|
+
else
|
|
77
|
+
setTimeout(fn, 0);
|
|
78
|
+
}
|
|
79
|
+
/** Beobachtet Größenänderungen des Targets. Nutzt ResizeObserver wenn vorhanden, sonst Fallback. */
|
|
80
|
+
function watchElementResize(target, cb, mutationObserverInit) {
|
|
81
|
+
// Native ResizeObserver vorhanden?
|
|
82
|
+
if (typeof globalThis.ResizeObserver !== 'undefined') {
|
|
83
|
+
const ro = new globalThis.ResizeObserver(() => cb());
|
|
84
|
+
ro.observe(target);
|
|
85
|
+
return () => ro.disconnect();
|
|
86
|
+
}
|
|
87
|
+
// Fallback: Fenster-Resize + Mutations (Attribute-Änderungen, z.B. style.width/height)
|
|
88
|
+
const onWinResize = () => onNextTick(cb);
|
|
89
|
+
if (typeof window !== 'undefined') {
|
|
90
|
+
window.addEventListener('resize', onWinResize);
|
|
91
|
+
}
|
|
92
|
+
let mo;
|
|
93
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
94
|
+
mo = new MutationObserver(() => onNextTick(cb));
|
|
95
|
+
if (mutationObserverInit) {
|
|
96
|
+
mo.observe(target, mutationObserverInit);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
mo.observe(target);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Letzter Fallback: leichtes Polling (nur im Test sinnvoll)
|
|
103
|
+
const pollId = typeof window === 'undefined' ? undefined : setInterval(() => cb(), 250);
|
|
104
|
+
return () => {
|
|
105
|
+
if (typeof window !== 'undefined')
|
|
106
|
+
window.removeEventListener('resize', onWinResize);
|
|
107
|
+
mo?.disconnect();
|
|
108
|
+
if (pollId)
|
|
109
|
+
clearInterval(pollId);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const vMapCss = () => `:host{display:block}`;
|
|
114
|
+
|
|
115
|
+
const NOOP_PROVIDER = {
|
|
116
|
+
async init() { },
|
|
117
|
+
async destroy() { },
|
|
118
|
+
async setOpacity() { },
|
|
119
|
+
async setVisible() { },
|
|
120
|
+
async setZIndex() { },
|
|
121
|
+
async addLayerToGroup() {
|
|
122
|
+
return null;
|
|
123
|
+
},
|
|
124
|
+
async updateLayer() { },
|
|
125
|
+
async removeLayer() { },
|
|
126
|
+
async setView() { },
|
|
127
|
+
async addBaseLayer() {
|
|
128
|
+
return null;
|
|
129
|
+
},
|
|
130
|
+
async setBaseLayer() { },
|
|
131
|
+
async ensureGroup() { },
|
|
132
|
+
async setGroupVisible() { },
|
|
133
|
+
};
|
|
134
|
+
const MSG_COMPONENT$2 = 'v-map - ';
|
|
135
|
+
const VMap = class {
|
|
136
|
+
constructor(hostRef) {
|
|
137
|
+
index.registerInstance(this, hostRef);
|
|
138
|
+
this.mapProviderReady = index.createEvent(this, "mapProviderReady", 5);
|
|
139
|
+
}
|
|
140
|
+
get el() { return index.getElement(this); }
|
|
141
|
+
/**
|
|
142
|
+
* Zu verwendender Karten-Provider.
|
|
143
|
+
* Unterstützte Werte: "ol" | "leaflet" | "cesium" | "deck".
|
|
144
|
+
* @default "ol"
|
|
145
|
+
* @example
|
|
146
|
+
* <v-map flavour="leaflet"></v-map>
|
|
147
|
+
*/
|
|
148
|
+
flavour = 'ol';
|
|
149
|
+
/**
|
|
150
|
+
* Mittelpunkt der Karte im **WGS84**-Koordinatensystem.
|
|
151
|
+
* Erwartet [lon, lat] (Längengrad, Breitengrad).
|
|
152
|
+
* @default [0, 0]
|
|
153
|
+
* @example
|
|
154
|
+
* <v-map center="[11.5761, 48.1371]" zoom="12"></v-map>
|
|
155
|
+
*/
|
|
156
|
+
center = '0,0';
|
|
157
|
+
/**
|
|
158
|
+
* Anfangs-Zoomstufe. Skala abhängig vom Provider (typisch 0–20).
|
|
159
|
+
* @default 3
|
|
160
|
+
*/
|
|
161
|
+
zoom = 2;
|
|
162
|
+
/** Falls true, injiziert v-map automatisch die Import-Map. */
|
|
163
|
+
useDefaultImportMap = true;
|
|
164
|
+
/**
|
|
165
|
+
* Aktiviert ein „CSS-Only“-Rendering (z. B. für einfache Tests/Layouts).
|
|
166
|
+
* Bei `true` werden keine Provider initialisiert.
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
cssMode = 'cdn';
|
|
170
|
+
/**
|
|
171
|
+
* Wird ausgelöst, sobald der Karten-Provider initialisiert wurde und Layers entgegennimmt.
|
|
172
|
+
* `detail` enthält `{ provider, flavour }`.
|
|
173
|
+
* @event mapProviderReady
|
|
174
|
+
*/
|
|
175
|
+
mapProviderReady;
|
|
176
|
+
// KEIN @State – keine Re-Renders nötig
|
|
177
|
+
mapProvider;
|
|
178
|
+
mapState = 'unavailable';
|
|
179
|
+
mapContainer;
|
|
180
|
+
unsubscribeResize;
|
|
181
|
+
unsubscribePointerMove = null;
|
|
182
|
+
async onFlavourChanged(oldValue, newValue) {
|
|
183
|
+
messages.log(MSG_COMPONENT$2 + 'onFlavourChanged');
|
|
184
|
+
if (oldValue !== newValue) {
|
|
185
|
+
this.reset();
|
|
186
|
+
// await this.createMap();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
reset() {
|
|
190
|
+
this.unsubscribeResize?.();
|
|
191
|
+
this.unsubscribePointerMove?.();
|
|
192
|
+
this.unsubscribePointerMove = null;
|
|
193
|
+
const mapProvider = this.mapProvider;
|
|
194
|
+
this.mapProvider = null;
|
|
195
|
+
this.el.__vMapProvider = null;
|
|
196
|
+
const payLoad = {
|
|
197
|
+
mapProvider: NOOP_PROVIDER,
|
|
198
|
+
};
|
|
199
|
+
// this.mapProviderReady.emit(payLoad);
|
|
200
|
+
this.el.dispatchEvent(new CustomEvent(messages.VMapEvents.MapProviderWillShutdown, {
|
|
201
|
+
detail: payLoad, // deine Payload
|
|
202
|
+
bubbles: false, // blubbert nach oben
|
|
203
|
+
composed: false, // geht über Shadow-Grenzen
|
|
204
|
+
cancelable: true, // Parent kann preventDefault() aufrufen
|
|
205
|
+
}));
|
|
206
|
+
mapProvider?.destroy();
|
|
207
|
+
this.mapState = 'unavailable';
|
|
208
|
+
}
|
|
209
|
+
async createMap() {
|
|
210
|
+
this.mapContainer = this.ensureContainer();
|
|
211
|
+
if (this.mapState === 'creating') {
|
|
212
|
+
messages.log('Map already in creating state.');
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
this.mapState = 'creating';
|
|
216
|
+
this.mapProvider = await createProvider(this.flavour);
|
|
217
|
+
const mapInitOpts = { zoom: this.zoom };
|
|
218
|
+
if (this.center) {
|
|
219
|
+
const centerLL = this.center.split(',').map(parseFloat);
|
|
220
|
+
const [centerLon, centerLat] = centerLL;
|
|
221
|
+
if (!Number.isFinite(centerLon) || !Number.isFinite(centerLat)) {
|
|
222
|
+
throw new Error(`<v-map>: Ungültiges center-Prop: "${this.center}" (erwartet "lon,lat")`);
|
|
223
|
+
}
|
|
224
|
+
mapInitOpts.center = centerLL;
|
|
225
|
+
}
|
|
226
|
+
const opts = {
|
|
227
|
+
target: this.mapContainer,
|
|
228
|
+
shadowRoot: this.el.shadowRoot,
|
|
229
|
+
mapInitOptions: mapInitOpts,
|
|
230
|
+
cssMode: this.cssMode,
|
|
231
|
+
};
|
|
232
|
+
await this.mapProvider.init(opts);
|
|
233
|
+
this.mapState = 'available';
|
|
234
|
+
this.el.__vMapProvider = this.mapProvider;
|
|
235
|
+
this.unsubscribeResize = watchElementResize(this.el, async () => {
|
|
236
|
+
await this.mapProvider?.setView(mapInitOpts.center, mapInitOpts.zoom);
|
|
237
|
+
});
|
|
238
|
+
const payLoad = {
|
|
239
|
+
mapProvider: this.mapProvider,
|
|
240
|
+
};
|
|
241
|
+
// this.mapProviderReady.emit(payLoad);
|
|
242
|
+
this.el.dispatchEvent(new CustomEvent(messages.VMapEvents.MapProviderReady, {
|
|
243
|
+
detail: payLoad, // deine Payload
|
|
244
|
+
bubbles: false, // blubbert nach oben
|
|
245
|
+
composed: false, // geht über Shadow-Grenzen
|
|
246
|
+
cancelable: true, // Parent kann preventDefault() aufrufen
|
|
247
|
+
}));
|
|
248
|
+
// Mouse-move → Geo-Koordinaten (provider-spezifisch)
|
|
249
|
+
if (this.mapProvider?.onPointerMove) {
|
|
250
|
+
this.unsubscribePointerMove = this.mapProvider.onPointerMove((coordinate, pixel) => {
|
|
251
|
+
this.el.dispatchEvent(new CustomEvent(messages.VMapEvents.MapMouseMove, {
|
|
252
|
+
detail: { coordinate, pixel },
|
|
253
|
+
bubbles: true,
|
|
254
|
+
composed: true,
|
|
255
|
+
}));
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
async componentWillLoad() {
|
|
260
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_WILL_LOAD);
|
|
261
|
+
if (this.useDefaultImportMap) {
|
|
262
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_WILL_LOAD + ' - useDefaultImportMap');
|
|
263
|
+
ensureImportMap();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// async componentDidLoad() {
|
|
267
|
+
// log(MSG_COMPONENT + MSG.COMPONENT_DID_LOAD);
|
|
268
|
+
// //test
|
|
269
|
+
// }
|
|
270
|
+
async componentWillRender() {
|
|
271
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_WILL_RENDER);
|
|
272
|
+
}
|
|
273
|
+
async componentDidRender() {
|
|
274
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_DID_RENDER);
|
|
275
|
+
await this.createMap();
|
|
276
|
+
this.el.addEventListener(messages.VMapEvents.MapProviderReady, ((event) => {
|
|
277
|
+
messages.log(MSG_COMPONENT$2 + 'test - event: ', event);
|
|
278
|
+
}));
|
|
279
|
+
}
|
|
280
|
+
disconnectedCallback() {
|
|
281
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_DISCONNECTED_CALLBACK);
|
|
282
|
+
this.reset();
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Gibt zurück, ob der Karten-Provider initialisiert wurde und verwendet werden kann.
|
|
286
|
+
* @returns Promise mit `true`, sobald der Provider bereit ist, sonst `false`.
|
|
287
|
+
*/
|
|
288
|
+
async isMapProviderReady() {
|
|
289
|
+
const isReady = this.mapProvider !== null &&
|
|
290
|
+
this.mapProvider !== undefined &&
|
|
291
|
+
this.mapProvider !== NOOP_PROVIDER;
|
|
292
|
+
if (!isReady) {
|
|
293
|
+
messages.log(MSG_COMPONENT$2 + 'Map provider not yet ready.');
|
|
294
|
+
}
|
|
295
|
+
return isReady;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Setzt Kartenzentrum und Zoom (optional animiert).
|
|
299
|
+
* @param center [lon, lat] in WGS84
|
|
300
|
+
* @param zoom Zoomstufe
|
|
301
|
+
* @param options Zusätzliche Optionen (z. B. { animate: true, duration: 300 })
|
|
302
|
+
* @example
|
|
303
|
+
* await mapEl.setView([7.1, 50.7], 10, { animate: true, duration: 400 });
|
|
304
|
+
*/
|
|
305
|
+
async setView(coordinates, zoom) {
|
|
306
|
+
if (!this.mapProvider || this.mapProvider == NOOP_PROVIDER)
|
|
307
|
+
throw new Error(MSG_COMPONENT$2 + 'Map-Provider noch nicht initialisiert.');
|
|
308
|
+
await Promise.resolve(this.mapProvider?.setView(coordinates, zoom));
|
|
309
|
+
}
|
|
310
|
+
ensureContainer() {
|
|
311
|
+
let el = this.el.shadowRoot.querySelector('#map');
|
|
312
|
+
if (!el) {
|
|
313
|
+
el = document.createElement('div');
|
|
314
|
+
el.id = 'map';
|
|
315
|
+
el.style.cssText =
|
|
316
|
+
'position:relative;width:100%;height:100%;display:block;';
|
|
317
|
+
this.el.shadowRoot.appendChild(el);
|
|
318
|
+
}
|
|
319
|
+
return el;
|
|
320
|
+
}
|
|
321
|
+
render() {
|
|
322
|
+
messages.log(MSG_COMPONENT$2 + messages.MESSAGES.COMPONENT_RENDER);
|
|
323
|
+
//return <div id="map-container"></div>;
|
|
324
|
+
return (index.h("div", { key: '41aca26c5cab5a3d7fef6169e9c4b8d27c7e65db' }, index.h("slot", { key: '4b04986c721a478cdfb900491e44106778c07df7' })));
|
|
325
|
+
}
|
|
326
|
+
static get watchers() { return {
|
|
327
|
+
"flavour": [{
|
|
328
|
+
"onFlavourChanged": 0
|
|
329
|
+
}]
|
|
330
|
+
}; }
|
|
331
|
+
};
|
|
332
|
+
VMap.style = vMapCss();
|
|
333
|
+
|
|
334
|
+
const vMapLayerOsmCss = () => `:host{display:none;}`;
|
|
335
|
+
|
|
336
|
+
const MSG_COMPONENT$1 = 'v-map-layer-osm - ';
|
|
337
|
+
const VMapLayerOSM = class {
|
|
338
|
+
constructor(hostRef) {
|
|
339
|
+
index.registerInstance(this, hostRef);
|
|
340
|
+
this.ready = index.createEvent(this, "ready", 7);
|
|
341
|
+
}
|
|
342
|
+
get el() { return index.getElement(this); }
|
|
343
|
+
/** Current load state of the layer. */
|
|
344
|
+
loadState = 'idle';
|
|
345
|
+
visible = true;
|
|
346
|
+
/**
|
|
347
|
+
* Opazität der OSM-Kacheln (0–1).
|
|
348
|
+
* @default 1
|
|
349
|
+
*/
|
|
350
|
+
opacity = 1.0;
|
|
351
|
+
/**
|
|
352
|
+
* Z-index for layer stacking order. Higher values render on top.
|
|
353
|
+
*/
|
|
354
|
+
zIndex = 10;
|
|
355
|
+
/**
|
|
356
|
+
* Base URL for OpenStreetMap tile server. Defaults to the standard OSM tile server.
|
|
357
|
+
*/
|
|
358
|
+
url = 'https://tile.openstreetmap.org';
|
|
359
|
+
/**
|
|
360
|
+
* Wird ausgelöst, wenn der OSM-Layer bereit ist.
|
|
361
|
+
* @event ready
|
|
362
|
+
*/
|
|
363
|
+
ready;
|
|
364
|
+
didLoad = false;
|
|
365
|
+
hasLoadedOnce = false;
|
|
366
|
+
helper;
|
|
367
|
+
setLoadState(state) {
|
|
368
|
+
this.loadState = state;
|
|
369
|
+
}
|
|
370
|
+
/** Returns the last error detail, if any. */
|
|
371
|
+
async getError() {
|
|
372
|
+
return this.helper?.getError();
|
|
373
|
+
}
|
|
374
|
+
async onVisibleChanged() {
|
|
375
|
+
messages.log(MSG_COMPONENT$1 + 'onVisibleChanged');
|
|
376
|
+
await this.helper?.setVisible(this.visible);
|
|
377
|
+
}
|
|
378
|
+
async onOpacityChanged() {
|
|
379
|
+
messages.log(MSG_COMPONENT$1 + 'onOpacityChanged');
|
|
380
|
+
await this.helper?.setOpacity(this.opacity);
|
|
381
|
+
}
|
|
382
|
+
async onZIndexChanged() {
|
|
383
|
+
messages.log(MSG_COMPONENT$1 + 'onZIndexChanged');
|
|
384
|
+
await this.helper?.setZIndex(this.zIndex);
|
|
385
|
+
}
|
|
386
|
+
async onUrlChanged(oldValue, newValue) {
|
|
387
|
+
messages.log(MSG_COMPONENT$1 + 'onUrlChanged');
|
|
388
|
+
if (oldValue !== newValue) {
|
|
389
|
+
await this.helper?.updateLayer({
|
|
390
|
+
type: 'osm',
|
|
391
|
+
data: {
|
|
392
|
+
url: this.url,
|
|
393
|
+
},
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
// if (oldValue !== newValue) {
|
|
397
|
+
// await this.helper.initLayer(() => this.createLayerConfig());
|
|
398
|
+
// }
|
|
399
|
+
}
|
|
400
|
+
isReady() {
|
|
401
|
+
return this.didLoad;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Returns the internal layer ID used by the map provider.
|
|
405
|
+
*/
|
|
406
|
+
async getLayerId() {
|
|
407
|
+
return this.helper?.getLayerId();
|
|
408
|
+
}
|
|
409
|
+
createLayerConfig() {
|
|
410
|
+
return {
|
|
411
|
+
type: 'osm',
|
|
412
|
+
url: this.url,
|
|
413
|
+
visible: this.visible,
|
|
414
|
+
zIndex: this.zIndex,
|
|
415
|
+
opacity: this.opacity,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
async connectedCallback() {
|
|
419
|
+
messages.log(MSG_COMPONENT$1 + messages.MESSAGES.COMPONENT_CONNECTED_CALLBACK);
|
|
420
|
+
if (!this.hasLoadedOnce)
|
|
421
|
+
return;
|
|
422
|
+
this.helper.startLoading();
|
|
423
|
+
await this.helper.initLayer(() => this.createLayerConfig(), this.el.id);
|
|
424
|
+
}
|
|
425
|
+
async componentWillLoad() {
|
|
426
|
+
messages.log(MSG_COMPONENT$1 + messages.MESSAGES.COMPONENT_WILL_LOAD);
|
|
427
|
+
this.helper = new vMapLayerHelper.VMapLayerHelper(this.el, this);
|
|
428
|
+
}
|
|
429
|
+
async componentDidLoad() {
|
|
430
|
+
messages.log(MSG_COMPONENT$1 + messages.MESSAGES.COMPONENT_DID_LOAD);
|
|
431
|
+
this.helper.startLoading();
|
|
432
|
+
await this.helper.initLayer(() => this.createLayerConfig(), this.el.id);
|
|
433
|
+
this.hasLoadedOnce = true;
|
|
434
|
+
this.didLoad = true;
|
|
435
|
+
this.ready.emit();
|
|
436
|
+
}
|
|
437
|
+
async componentWillRender() {
|
|
438
|
+
messages.log(MSG_COMPONENT$1 + messages.MESSAGES.COMPONENT_WILL_RENDER);
|
|
439
|
+
}
|
|
440
|
+
async disconnectedCallback() {
|
|
441
|
+
messages.log(MSG_COMPONENT$1 + messages.MESSAGES.COMPONENT_DISCONNECTED_CALLBACK);
|
|
442
|
+
await this.helper?.dispose();
|
|
443
|
+
}
|
|
444
|
+
render() {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
static get watchers() { return {
|
|
448
|
+
"visible": [{
|
|
449
|
+
"onVisibleChanged": 0
|
|
450
|
+
}],
|
|
451
|
+
"opacity": [{
|
|
452
|
+
"onOpacityChanged": 0
|
|
453
|
+
}],
|
|
454
|
+
"zIndex": [{
|
|
455
|
+
"onZIndexChanged": 0
|
|
456
|
+
}],
|
|
457
|
+
"url": [{
|
|
458
|
+
"onUrlChanged": 0
|
|
459
|
+
}]
|
|
460
|
+
}; }
|
|
461
|
+
};
|
|
462
|
+
VMapLayerOSM.style = vMapLayerOsmCss();
|
|
463
|
+
|
|
464
|
+
const vMapLayergroupCss = () => `:host{display:none;}`;
|
|
465
|
+
|
|
466
|
+
const MSG_COMPONENT = 'v-map-layergroup - ';
|
|
467
|
+
const VMapLayerGroup = class {
|
|
468
|
+
constructor(hostRef) {
|
|
469
|
+
index.registerInstance(this, hostRef);
|
|
470
|
+
}
|
|
471
|
+
get el() { return index.getElement(this); }
|
|
472
|
+
/**
|
|
473
|
+
* Sichtbarkeit der gesamten Gruppe.
|
|
474
|
+
* @default true
|
|
475
|
+
*/
|
|
476
|
+
visible = true;
|
|
477
|
+
/**
|
|
478
|
+
* Globale Opazität (0–1) für alle Kinder.
|
|
479
|
+
* @default 1
|
|
480
|
+
*/
|
|
481
|
+
opacity = 1.0;
|
|
482
|
+
// /**
|
|
483
|
+
// * Kennzeichnet diese Gruppe als Basis-Kartenebene (exklusiv sichtbar).
|
|
484
|
+
// * @default false
|
|
485
|
+
// */
|
|
486
|
+
// @Prop({ reflect: true }) basemap = false;
|
|
487
|
+
/**
|
|
488
|
+
* Base map identifier for this layer group. When set, layers in this group will be treated as base map layers.
|
|
489
|
+
*/
|
|
490
|
+
basemapid = null;
|
|
491
|
+
// /**
|
|
492
|
+
// * Eindeutige Gruppen-ID (z. B. für programmatisches Umschalten).
|
|
493
|
+
// */
|
|
494
|
+
// @Prop({ reflect: true }) groupId: string = Math.random()
|
|
495
|
+
// .toString(36)
|
|
496
|
+
// .slice(2, 11);
|
|
497
|
+
mapProvider = null;
|
|
498
|
+
groupId = crypto.randomUUID();
|
|
499
|
+
async onVisibleChanged() {
|
|
500
|
+
messages.log(MSG_COMPONENT + 'onVisibleChanged');
|
|
501
|
+
if (this.mapProvider?.setGroupVisible) {
|
|
502
|
+
await this.mapProvider.setGroupVisible(this.groupId, this.visible);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
async onBaseMapIdChanged() {
|
|
506
|
+
messages.log(MSG_COMPONENT + 'onBaseMapIdChanged');
|
|
507
|
+
if (this.mapProvider?.setBaseLayer) {
|
|
508
|
+
await this.mapProvider.setBaseLayer(this.groupId, this.basemapid);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
async init(mapProvider) {
|
|
512
|
+
if (this.mapProvider != null)
|
|
513
|
+
return;
|
|
514
|
+
this.mapProvider = mapProvider;
|
|
515
|
+
if (this.mapProvider === null)
|
|
516
|
+
return;
|
|
517
|
+
if (this.mapProvider?.ensureGroup) {
|
|
518
|
+
await this.mapProvider.ensureGroup(this.groupId, this.visible, {
|
|
519
|
+
basemapid: this.basemapid,
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
await this.mapProvider?.setGroupVisible(this.groupId, this.visible);
|
|
523
|
+
await this.mapProvider?.setBaseLayer(this.groupId, this.basemapid);
|
|
524
|
+
}
|
|
525
|
+
async connectedCallback() {
|
|
526
|
+
messages.log(MSG_COMPONENT + messages.MESSAGES.COMPONENT_CONNECTED_CALLBACK);
|
|
527
|
+
const mapElement = this.el.closest('v-map');
|
|
528
|
+
await customElements.whenDefined('v-map');
|
|
529
|
+
const vmap = mapElement;
|
|
530
|
+
const mapProviderAvailable = (await mapElement?.isMapProviderReady?.()) === true;
|
|
531
|
+
if (mapProviderAvailable) {
|
|
532
|
+
const mapProvider = mapElement?.__vMapProvider ?? null;
|
|
533
|
+
await this.init(mapProvider);
|
|
534
|
+
}
|
|
535
|
+
vmap?.addEventListener(messages.VMapEvents.MapProviderReady, (async (event) => {
|
|
536
|
+
messages.log(`${MSG_COMPONENT}map provider ready`);
|
|
537
|
+
const mapEvent = event.detail;
|
|
538
|
+
await this.init(mapEvent.mapProvider);
|
|
539
|
+
}));
|
|
540
|
+
vmap?.addEventListener(messages.VMapEvents.MapProviderWillShutdown, async (_event) => {
|
|
541
|
+
messages.log(`${MSG_COMPONENT}map provider shutting down`);
|
|
542
|
+
this.mapProvider = null;
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
async componentWillLoad() {
|
|
546
|
+
messages.log(MSG_COMPONENT + messages.MESSAGES.COMPONENT_WILL_LOAD);
|
|
547
|
+
}
|
|
548
|
+
async componentDidLoad() {
|
|
549
|
+
messages.log(MSG_COMPONENT + messages.MESSAGES.COMPONENT_DID_LOAD);
|
|
550
|
+
}
|
|
551
|
+
async componentWillRender() {
|
|
552
|
+
messages.log(MSG_COMPONENT + messages.MESSAGES.COMPONENT_WILL_RENDER);
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Returns the internal group identifier used by the map provider.
|
|
556
|
+
*/
|
|
557
|
+
async getGroupId() {
|
|
558
|
+
return this.groupId;
|
|
559
|
+
}
|
|
560
|
+
render() {
|
|
561
|
+
return index.h("slot", { key: '584a5816d8f73071bf257e3f70a4c2baea2d2f56' });
|
|
562
|
+
}
|
|
563
|
+
static get watchers() { return {
|
|
564
|
+
"visible": [{
|
|
565
|
+
"onVisibleChanged": 0
|
|
566
|
+
}],
|
|
567
|
+
"basemapid": [{
|
|
568
|
+
"onBaseMapIdChanged": 0
|
|
569
|
+
}]
|
|
570
|
+
}; }
|
|
571
|
+
};
|
|
572
|
+
VMapLayerGroup.style = vMapLayergroupCss();
|
|
573
|
+
|
|
574
|
+
exports.CESIUM_VERSION = CESIUM_VERSION;
|
|
575
|
+
exports.LEAFLET_VERSION = LEAFLET_VERSION;
|
|
576
|
+
exports.OL_VERSION = OL_VERSION;
|
|
577
|
+
exports.VMap = VMap;
|
|
578
|
+
exports.VMapLayerGroup = VMapLayerGroup;
|
|
579
|
+
exports.VMapLayerOSM = VMapLayerOSM;
|
|
580
|
+
exports.isBrowser = isBrowser;
|
|
581
|
+
exports.supportsAdoptedStyleSheets = supportsAdoptedStyleSheets;
|
|
582
|
+
exports.watchElementResize = watchElementResize;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vMap_vMapLayerOsm_vMapLayergroup_entry = require('./v-map.v-map-layer-osm.v-map-layergroup-BsXp3BoL.js');
|
|
4
|
+
require('./index-JSwBbvGA.js');
|
|
5
|
+
require('./messages-D7h4m8Tx.js');
|
|
6
|
+
require('./v-map-layer-helper-iAzxAg9I.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.v_map = vMap_vMapLayerOsm_vMapLayergroup_entry.VMap;
|
|
11
|
+
exports.v_map_layer_osm = vMap_vMapLayerOsm_vMapLayergroup_entry.VMapLayerOSM;
|
|
12
|
+
exports.v_map_layergroup = vMap_vMapLayerOsm_vMapLayergroup_entry.VMapLayerGroup;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/v-map-layer-scatterplot/v-map-layer-scatterplot.js",
|
|
4
|
+
"components/v-map/v-map.js",
|
|
5
|
+
"components/v-map-builder/v-map-builder.js",
|
|
6
|
+
"components/v-map-layer-geojson/v-map-layer-geojson.js",
|
|
7
|
+
"components/v-map-layer-geotiff/v-map-layer-geotiff.js",
|
|
8
|
+
"components/v-map-layer-google/v-map-layer-google.js",
|
|
9
|
+
"components/v-map-layer-osm/v-map-layer-osm.js",
|
|
10
|
+
"components/v-map-layer-terrain/v-map-layer-terrain.js",
|
|
11
|
+
"components/v-map-layer-terrain-geotiff/v-map-layer-terrain-geotiff.js",
|
|
12
|
+
"components/v-map-layer-tile3d/v-map-layer-tile3d.js",
|
|
13
|
+
"components/v-map-layer-wcs/v-map-layer-wcs.js",
|
|
14
|
+
"components/v-map-layer-wfs/v-map-layer-wfs.js",
|
|
15
|
+
"components/v-map-layer-wkt/v-map-layer-wkt.js",
|
|
16
|
+
"components/v-map-layer-wms/v-map-layer-wms.js",
|
|
17
|
+
"components/v-map-layer-xyz/v-map-layer-xyz.js",
|
|
18
|
+
"components/v-map-layercontrol/v-map-layercontrol.js",
|
|
19
|
+
"components/v-map-layergroup/v-map-layergroup.js",
|
|
20
|
+
"components/v-map-style/v-map-style.js"
|
|
21
|
+
],
|
|
22
|
+
"mixins": [],
|
|
23
|
+
"compiler": {
|
|
24
|
+
"name": "@stencil/core",
|
|
25
|
+
"version": "4.43.3",
|
|
26
|
+
"typescriptVersion": "5.8.3"
|
|
27
|
+
},
|
|
28
|
+
"collections": [],
|
|
29
|
+
"bundles": []
|
|
30
|
+
}
|