@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,862 @@
|
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { VMapLayerHelper } from "../../layer/v-map-layer-helper";
|
|
3
|
+
import { log } from "../../utils/logger";
|
|
4
|
+
import MSG from "../../utils/messages";
|
|
5
|
+
import { isGeoStylerStyle } from "../../types/styling";
|
|
6
|
+
const MSG_COMPONENT = 'v-map-layer-geojson - ';
|
|
7
|
+
export class VMapLayerGeoJSON {
|
|
8
|
+
el;
|
|
9
|
+
/** Current load state of the layer. */
|
|
10
|
+
loadState = 'idle';
|
|
11
|
+
/** Prop, die du intern nutzt/weiterverarbeitest */
|
|
12
|
+
geojson;
|
|
13
|
+
/**
|
|
14
|
+
* URL to fetch GeoJSON data from. Alternative to providing data via slot.
|
|
15
|
+
*/
|
|
16
|
+
url = null;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the layer is visible on the map.
|
|
19
|
+
*/
|
|
20
|
+
visible = true;
|
|
21
|
+
/**
|
|
22
|
+
* Z-index for layer stacking order. Higher values render on top.
|
|
23
|
+
*/
|
|
24
|
+
zIndex = 1000;
|
|
25
|
+
/**
|
|
26
|
+
* Opazität der geojson-Kacheln (0–1).
|
|
27
|
+
* @default 1
|
|
28
|
+
*/
|
|
29
|
+
opacity = 1.0;
|
|
30
|
+
// ========== Styling Properties ==========
|
|
31
|
+
/**
|
|
32
|
+
* Fill color for polygon geometries (CSS color value)
|
|
33
|
+
* @default 'rgba(0,100,255,0.3)'
|
|
34
|
+
*/
|
|
35
|
+
fillColor;
|
|
36
|
+
/**
|
|
37
|
+
* Fill opacity for polygon geometries (0-1)
|
|
38
|
+
* @default 0.3
|
|
39
|
+
*/
|
|
40
|
+
fillOpacity;
|
|
41
|
+
/**
|
|
42
|
+
* Stroke color for lines and polygon outlines (CSS color value)
|
|
43
|
+
* @default 'rgba(0,100,255,1)'
|
|
44
|
+
*/
|
|
45
|
+
strokeColor;
|
|
46
|
+
/**
|
|
47
|
+
* Stroke width in pixels
|
|
48
|
+
* @default 2
|
|
49
|
+
*/
|
|
50
|
+
strokeWidth;
|
|
51
|
+
/**
|
|
52
|
+
* Stroke opacity (0-1)
|
|
53
|
+
* @default 1
|
|
54
|
+
*/
|
|
55
|
+
strokeOpacity;
|
|
56
|
+
/**
|
|
57
|
+
* Point radius for point geometries in pixels
|
|
58
|
+
* @default 6
|
|
59
|
+
*/
|
|
60
|
+
pointRadius;
|
|
61
|
+
/**
|
|
62
|
+
* Point color for point geometries (CSS color value)
|
|
63
|
+
* @default 'rgba(0,100,255,1)'
|
|
64
|
+
*/
|
|
65
|
+
pointColor;
|
|
66
|
+
/**
|
|
67
|
+
* Icon URL for point features (alternative to pointColor/pointRadius)
|
|
68
|
+
*/
|
|
69
|
+
iconUrl;
|
|
70
|
+
/**
|
|
71
|
+
* Icon size as [width, height] in pixels (comma-separated string like "32,32")
|
|
72
|
+
* @default "32,32"
|
|
73
|
+
*/
|
|
74
|
+
iconSize;
|
|
75
|
+
/**
|
|
76
|
+
* Text property name from feature properties to display as label
|
|
77
|
+
*/
|
|
78
|
+
textProperty;
|
|
79
|
+
/**
|
|
80
|
+
* Text color for labels (CSS color value)
|
|
81
|
+
* @default '#000000'
|
|
82
|
+
*/
|
|
83
|
+
textColor;
|
|
84
|
+
/**
|
|
85
|
+
* Text size for labels in pixels
|
|
86
|
+
* @default 12
|
|
87
|
+
*/
|
|
88
|
+
textSize;
|
|
89
|
+
geoSlot;
|
|
90
|
+
mo;
|
|
91
|
+
lastString;
|
|
92
|
+
layerId = null;
|
|
93
|
+
didLoad = false;
|
|
94
|
+
hasLoadedOnce = false;
|
|
95
|
+
helper;
|
|
96
|
+
appliedGeostylerStyle;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the internal layer ID used by the map provider.
|
|
99
|
+
*/
|
|
100
|
+
async getLayerId() {
|
|
101
|
+
return this.layerId;
|
|
102
|
+
}
|
|
103
|
+
setLoadState(state) {
|
|
104
|
+
this.loadState = state;
|
|
105
|
+
}
|
|
106
|
+
/** Returns the last error detail, if any. */
|
|
107
|
+
async getError() {
|
|
108
|
+
return this.helper?.getError();
|
|
109
|
+
}
|
|
110
|
+
async connectedCallback() {
|
|
111
|
+
log(MSG_COMPONENT + MSG.COMPONENT_CONNECTED_CALLBACK);
|
|
112
|
+
if (!this.hasLoadedOnce)
|
|
113
|
+
return;
|
|
114
|
+
this.helper.startLoading();
|
|
115
|
+
await this.helper.initLayer(() => this.createLayerConfig(), this.el.id);
|
|
116
|
+
}
|
|
117
|
+
async componentWillLoad() {
|
|
118
|
+
log(MSG_COMPONENT + MSG.COMPONENT_WILL_LOAD);
|
|
119
|
+
this.helper = new VMapLayerHelper(this.el, this);
|
|
120
|
+
}
|
|
121
|
+
async componentDidLoad() {
|
|
122
|
+
log(MSG_COMPONENT + MSG.COMPONENT_DID_LOAD);
|
|
123
|
+
// Slot referenzieren
|
|
124
|
+
this.geoSlot = this.el.shadowRoot.querySelector('slot[name="geojson"]');
|
|
125
|
+
if (this.geoSlot) {
|
|
126
|
+
// 1) Auf Slot-Zuweisungswechsel reagieren
|
|
127
|
+
this.geoSlot.addEventListener('slotchange', this.onSlotChange);
|
|
128
|
+
// 2) Initial lesen + zugewiesene Nodes beobachten
|
|
129
|
+
this.observeAssignedNodes();
|
|
130
|
+
this.readGeoJsonFromSlot();
|
|
131
|
+
}
|
|
132
|
+
this.helper.startLoading();
|
|
133
|
+
await this.helper.initLayer(() => this.createLayerConfig(), this.el.id);
|
|
134
|
+
await this.applyExistingStyles();
|
|
135
|
+
this.didLoad = true;
|
|
136
|
+
this.hasLoadedOnce = true;
|
|
137
|
+
//todo this.ready.emit();
|
|
138
|
+
}
|
|
139
|
+
async disconnectedCallback() {
|
|
140
|
+
log(MSG_COMPONENT + MSG.COMPONENT_DISCONNECTED_CALLBACK);
|
|
141
|
+
this.mo?.disconnect();
|
|
142
|
+
this.geoSlot?.removeEventListener('slotchange', this.onSlotChange);
|
|
143
|
+
await this.helper?.dispose();
|
|
144
|
+
}
|
|
145
|
+
isReady() {
|
|
146
|
+
return this.didLoad;
|
|
147
|
+
}
|
|
148
|
+
async onGeoJsonChanged(oldValue, newValue) {
|
|
149
|
+
log(MSG_COMPONENT + 'onGeoJsonChanged');
|
|
150
|
+
// hier deinen Layer aktualisieren
|
|
151
|
+
if (oldValue !== newValue) {
|
|
152
|
+
let geojsonString = null;
|
|
153
|
+
if (typeof this.geojson === 'object') {
|
|
154
|
+
geojsonString = JSON.stringify(this.geojson);
|
|
155
|
+
}
|
|
156
|
+
else if (typeof this.geojson === 'string') {
|
|
157
|
+
geojsonString = this.geojson;
|
|
158
|
+
}
|
|
159
|
+
await this.helper?.updateLayer({
|
|
160
|
+
type: 'geojson',
|
|
161
|
+
data: {
|
|
162
|
+
geojson: geojsonString,
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
// await this.helper.initLayer(() => this.createLayerConfig());
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
async onUrlChanged(oldValue, newValue) {
|
|
169
|
+
log(MSG_COMPONENT + 'onUrlChanged');
|
|
170
|
+
if (oldValue !== newValue) {
|
|
171
|
+
await this.helper?.updateLayer({
|
|
172
|
+
type: 'geojson',
|
|
173
|
+
data: {
|
|
174
|
+
url: this.url,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
// if (oldValue !== newValue) {
|
|
179
|
+
// await this.helper.initLayer(() => this.createLayerConfig());
|
|
180
|
+
// }
|
|
181
|
+
}
|
|
182
|
+
async onVisibleChanged() {
|
|
183
|
+
log(MSG_COMPONENT + 'onVisibleChanged');
|
|
184
|
+
await this.helper?.setVisible(this.visible);
|
|
185
|
+
}
|
|
186
|
+
async onOpacityChanged() {
|
|
187
|
+
log(MSG_COMPONENT + 'onOpacityChanged');
|
|
188
|
+
await this.helper?.setOpacity(this.opacity);
|
|
189
|
+
}
|
|
190
|
+
async onZIndexChanged() {
|
|
191
|
+
log(MSG_COMPONENT + 'onZIndexChanged');
|
|
192
|
+
await this.helper?.setZIndex(this.zIndex);
|
|
193
|
+
}
|
|
194
|
+
// ========== Styling Property Watchers ==========
|
|
195
|
+
async onStyleChanged() {
|
|
196
|
+
log(MSG_COMPONENT + 'onStyleChanged');
|
|
197
|
+
// Trigger layer recreation with new style
|
|
198
|
+
await this.helper?.updateLayer({
|
|
199
|
+
type: 'geojson',
|
|
200
|
+
data: {
|
|
201
|
+
geojson: this.geojson,
|
|
202
|
+
url: this.url,
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Listen for style events from v-map-style components
|
|
208
|
+
*/
|
|
209
|
+
async onStyleReady(event) {
|
|
210
|
+
if (isGeoStylerStyle(event.detail.style)) {
|
|
211
|
+
if (this.isTargetedByStyle(event.detail.layerIds)) {
|
|
212
|
+
log(MSG_COMPONENT + 'Applying geostyler style');
|
|
213
|
+
this.appliedGeostylerStyle = event.detail.style;
|
|
214
|
+
await this.updateLayerWithGeostylerStyle();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Check if this layer is targeted by a style component
|
|
220
|
+
*/
|
|
221
|
+
isTargetedByStyle(layerIds) {
|
|
222
|
+
if (!layerIds)
|
|
223
|
+
return false;
|
|
224
|
+
return layerIds.includes(this.el.id) || layerIds.length === 0;
|
|
225
|
+
}
|
|
226
|
+
async applyExistingStyles() {
|
|
227
|
+
const styleComponents = Array.from(document.querySelectorAll('v-map-style'));
|
|
228
|
+
for (const styleComponent of styleComponents) {
|
|
229
|
+
const style = styleComponent.getStyle
|
|
230
|
+
? await styleComponent.getStyle()
|
|
231
|
+
: undefined;
|
|
232
|
+
if (!style)
|
|
233
|
+
continue;
|
|
234
|
+
if (!isGeoStylerStyle(style))
|
|
235
|
+
continue;
|
|
236
|
+
const layerTargetIds = styleComponent.getLayerTargetIds
|
|
237
|
+
? await styleComponent.getLayerTargetIds()
|
|
238
|
+
: undefined;
|
|
239
|
+
if (!layerTargetIds)
|
|
240
|
+
continue;
|
|
241
|
+
if (!this.isTargetedByStyle(layerTargetIds))
|
|
242
|
+
continue;
|
|
243
|
+
log(MSG_COMPONENT + 'Applying existing geostyler style');
|
|
244
|
+
this.appliedGeostylerStyle = style;
|
|
245
|
+
await this.updateLayerWithGeostylerStyle();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
// private isGeostylerFormat(styleComponent: HTMLVMapStyleElement): boolean {
|
|
249
|
+
// const format = styleComponent.format?.toLowerCase();
|
|
250
|
+
// return (
|
|
251
|
+
// format === 'sld' ||
|
|
252
|
+
// format === 'mapbox-gl' ||
|
|
253
|
+
// format === 'qgis' ||
|
|
254
|
+
// format === 'lyrx'
|
|
255
|
+
// );
|
|
256
|
+
// }
|
|
257
|
+
/**
|
|
258
|
+
* Update the layer with the applied geostyler style
|
|
259
|
+
*/
|
|
260
|
+
async updateLayerWithGeostylerStyle() {
|
|
261
|
+
if (!this.appliedGeostylerStyle || !this.helper)
|
|
262
|
+
return;
|
|
263
|
+
await this.helper.updateLayer({
|
|
264
|
+
type: 'geojson',
|
|
265
|
+
data: {
|
|
266
|
+
geojson: this.geojson,
|
|
267
|
+
url: this.url,
|
|
268
|
+
geostylerStyle: this.appliedGeostylerStyle,
|
|
269
|
+
},
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
onSlotChange = () => {
|
|
273
|
+
log(MSG_COMPONENT + 'onSlotChange');
|
|
274
|
+
this.observeAssignedNodes();
|
|
275
|
+
this.readGeoJsonFromSlot();
|
|
276
|
+
};
|
|
277
|
+
observeAssignedNodes() {
|
|
278
|
+
log(MSG_COMPONENT + 'observeAssignedNodes');
|
|
279
|
+
this.mo?.disconnect();
|
|
280
|
+
if (!this.geoSlot)
|
|
281
|
+
return;
|
|
282
|
+
const nodes = this.geoSlot.assignedNodes({ flatten: true });
|
|
283
|
+
this.mo = new MutationObserver(() => this.readGeoJsonFromSlot());
|
|
284
|
+
for (const n of nodes) {
|
|
285
|
+
// Text- oder Element-Knoten beobachten (inkl. Subtree)
|
|
286
|
+
this.mo.observe(n, {
|
|
287
|
+
characterData: true,
|
|
288
|
+
childList: true,
|
|
289
|
+
subtree: true,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
readGeoJsonFromSlot() {
|
|
294
|
+
log(MSG_COMPONENT + 'readGeoJsonFromSlot');
|
|
295
|
+
if (!this.geoSlot) {
|
|
296
|
+
log(MSG_COMPONENT + 'readGeoJsonFromSlot - geoSlot: false');
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
const raw = this.geoSlot
|
|
300
|
+
.assignedNodes({ flatten: true })
|
|
301
|
+
.map(n => n.textContent || '')
|
|
302
|
+
.join('')
|
|
303
|
+
.trim();
|
|
304
|
+
if (!raw) {
|
|
305
|
+
log(MSG_COMPONENT + 'readGeoJsonFromSlot - raw: false');
|
|
306
|
+
return; // nichts/keine Änderung
|
|
307
|
+
}
|
|
308
|
+
if (raw === this.lastString) {
|
|
309
|
+
log(MSG_COMPONENT + 'readGeoJsonFromSlot - raw === this.lastString');
|
|
310
|
+
return; // nichts/keine Änderung
|
|
311
|
+
}
|
|
312
|
+
this.lastString = raw;
|
|
313
|
+
try {
|
|
314
|
+
const geojson = JSON.parse(raw);
|
|
315
|
+
log(MSG_COMPONENT + 'readGeoJsonFromSlot: ', geojson);
|
|
316
|
+
this.geojson = geojson;
|
|
317
|
+
// optional: eigenes Event „data-updated“ feuern
|
|
318
|
+
// this.host.dispatchEvent(new CustomEvent('data-updated', { detail: this.geojson }));
|
|
319
|
+
}
|
|
320
|
+
catch (e) {
|
|
321
|
+
this.helper?.setError({ type: 'parse', message: 'Ungültiges JSON im Slot', attribute: 'geojson', cause: e });
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
createLayerConfig() {
|
|
325
|
+
// Parse iconSize string to array
|
|
326
|
+
const iconSizeArray = this.iconSize
|
|
327
|
+
? this.iconSize.split(',').map(s => parseInt(s.trim(), 10))
|
|
328
|
+
: undefined;
|
|
329
|
+
let geojsonString = null;
|
|
330
|
+
if (typeof this.geojson === 'object') {
|
|
331
|
+
geojsonString = JSON.stringify(this.geojson);
|
|
332
|
+
}
|
|
333
|
+
else if (typeof this.geojson === 'string') {
|
|
334
|
+
geojsonString = this.geojson;
|
|
335
|
+
}
|
|
336
|
+
const style = {
|
|
337
|
+
fillColor: this.fillColor,
|
|
338
|
+
fillOpacity: this.fillOpacity,
|
|
339
|
+
strokeColor: this.strokeColor,
|
|
340
|
+
strokeWidth: this.strokeWidth,
|
|
341
|
+
strokeOpacity: this.strokeOpacity,
|
|
342
|
+
pointRadius: this.pointRadius,
|
|
343
|
+
pointColor: this.pointColor,
|
|
344
|
+
iconUrl: this.iconUrl,
|
|
345
|
+
iconSize: iconSizeArray,
|
|
346
|
+
textProperty: this.textProperty,
|
|
347
|
+
textColor: this.textColor,
|
|
348
|
+
textSize: this.textSize,
|
|
349
|
+
};
|
|
350
|
+
const config = {
|
|
351
|
+
type: 'geojson',
|
|
352
|
+
opacity: this.opacity,
|
|
353
|
+
visible: this.visible,
|
|
354
|
+
zIndex: this.zIndex,
|
|
355
|
+
url: this.url,
|
|
356
|
+
geojson: geojsonString,
|
|
357
|
+
style,
|
|
358
|
+
};
|
|
359
|
+
// Add geostyler style if available (takes precedence over component style props)
|
|
360
|
+
if (this.appliedGeostylerStyle) {
|
|
361
|
+
config.geostylerStyle = this.appliedGeostylerStyle;
|
|
362
|
+
}
|
|
363
|
+
return config;
|
|
364
|
+
}
|
|
365
|
+
render() {
|
|
366
|
+
return h("slot", { key: '093a5de19ea7090df1883b15e379b604dfabc1a1', name: "geojson", onSlotchange: this.onSlotChange });
|
|
367
|
+
}
|
|
368
|
+
static get is() { return "v-map-layer-geojson"; }
|
|
369
|
+
static get encapsulation() { return "shadow"; }
|
|
370
|
+
static get properties() {
|
|
371
|
+
return {
|
|
372
|
+
"loadState": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"mutable": true,
|
|
375
|
+
"complexType": {
|
|
376
|
+
"original": "'idle' | 'loading' | 'ready' | 'error'",
|
|
377
|
+
"resolved": "\"error\" | \"idle\" | \"loading\" | \"ready\"",
|
|
378
|
+
"references": {}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": false,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": "Current load state of the layer."
|
|
385
|
+
},
|
|
386
|
+
"getter": false,
|
|
387
|
+
"setter": false,
|
|
388
|
+
"reflect": true,
|
|
389
|
+
"attribute": "load-state",
|
|
390
|
+
"defaultValue": "'idle'"
|
|
391
|
+
},
|
|
392
|
+
"geojson": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": true,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": true,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Prop, die du intern nutzt/weiterverarbeitest"
|
|
405
|
+
},
|
|
406
|
+
"getter": false,
|
|
407
|
+
"setter": false,
|
|
408
|
+
"reflect": false,
|
|
409
|
+
"attribute": "geojson"
|
|
410
|
+
},
|
|
411
|
+
"url": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"mutable": false,
|
|
414
|
+
"complexType": {
|
|
415
|
+
"original": "string | null",
|
|
416
|
+
"resolved": "string",
|
|
417
|
+
"references": {}
|
|
418
|
+
},
|
|
419
|
+
"required": false,
|
|
420
|
+
"optional": false,
|
|
421
|
+
"docs": {
|
|
422
|
+
"tags": [],
|
|
423
|
+
"text": "URL to fetch GeoJSON data from. Alternative to providing data via slot."
|
|
424
|
+
},
|
|
425
|
+
"getter": false,
|
|
426
|
+
"setter": false,
|
|
427
|
+
"reflect": true,
|
|
428
|
+
"attribute": "url",
|
|
429
|
+
"defaultValue": "null"
|
|
430
|
+
},
|
|
431
|
+
"visible": {
|
|
432
|
+
"type": "boolean",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "boolean",
|
|
436
|
+
"resolved": "boolean",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": "Whether the layer is visible on the map."
|
|
444
|
+
},
|
|
445
|
+
"getter": false,
|
|
446
|
+
"setter": false,
|
|
447
|
+
"reflect": true,
|
|
448
|
+
"attribute": "visible",
|
|
449
|
+
"defaultValue": "true"
|
|
450
|
+
},
|
|
451
|
+
"zIndex": {
|
|
452
|
+
"type": "number",
|
|
453
|
+
"mutable": false,
|
|
454
|
+
"complexType": {
|
|
455
|
+
"original": "number",
|
|
456
|
+
"resolved": "number",
|
|
457
|
+
"references": {}
|
|
458
|
+
},
|
|
459
|
+
"required": false,
|
|
460
|
+
"optional": false,
|
|
461
|
+
"docs": {
|
|
462
|
+
"tags": [],
|
|
463
|
+
"text": "Z-index for layer stacking order. Higher values render on top."
|
|
464
|
+
},
|
|
465
|
+
"getter": false,
|
|
466
|
+
"setter": false,
|
|
467
|
+
"reflect": true,
|
|
468
|
+
"attribute": "z-index",
|
|
469
|
+
"defaultValue": "1000"
|
|
470
|
+
},
|
|
471
|
+
"opacity": {
|
|
472
|
+
"type": "number",
|
|
473
|
+
"mutable": false,
|
|
474
|
+
"complexType": {
|
|
475
|
+
"original": "number",
|
|
476
|
+
"resolved": "number",
|
|
477
|
+
"references": {}
|
|
478
|
+
},
|
|
479
|
+
"required": false,
|
|
480
|
+
"optional": false,
|
|
481
|
+
"docs": {
|
|
482
|
+
"tags": [{
|
|
483
|
+
"name": "default",
|
|
484
|
+
"text": "1"
|
|
485
|
+
}],
|
|
486
|
+
"text": "Opazit\u00E4t der geojson-Kacheln (0\u20131)."
|
|
487
|
+
},
|
|
488
|
+
"getter": false,
|
|
489
|
+
"setter": false,
|
|
490
|
+
"reflect": true,
|
|
491
|
+
"attribute": "opacity",
|
|
492
|
+
"defaultValue": "1.0"
|
|
493
|
+
},
|
|
494
|
+
"fillColor": {
|
|
495
|
+
"type": "string",
|
|
496
|
+
"mutable": false,
|
|
497
|
+
"complexType": {
|
|
498
|
+
"original": "string",
|
|
499
|
+
"resolved": "string",
|
|
500
|
+
"references": {}
|
|
501
|
+
},
|
|
502
|
+
"required": false,
|
|
503
|
+
"optional": true,
|
|
504
|
+
"docs": {
|
|
505
|
+
"tags": [{
|
|
506
|
+
"name": "default",
|
|
507
|
+
"text": "'rgba(0,100,255,0.3)'"
|
|
508
|
+
}],
|
|
509
|
+
"text": "Fill color for polygon geometries (CSS color value)"
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": true,
|
|
514
|
+
"attribute": "fill-color"
|
|
515
|
+
},
|
|
516
|
+
"fillOpacity": {
|
|
517
|
+
"type": "number",
|
|
518
|
+
"mutable": false,
|
|
519
|
+
"complexType": {
|
|
520
|
+
"original": "number",
|
|
521
|
+
"resolved": "number",
|
|
522
|
+
"references": {}
|
|
523
|
+
},
|
|
524
|
+
"required": false,
|
|
525
|
+
"optional": true,
|
|
526
|
+
"docs": {
|
|
527
|
+
"tags": [{
|
|
528
|
+
"name": "default",
|
|
529
|
+
"text": "0.3"
|
|
530
|
+
}],
|
|
531
|
+
"text": "Fill opacity for polygon geometries (0-1)"
|
|
532
|
+
},
|
|
533
|
+
"getter": false,
|
|
534
|
+
"setter": false,
|
|
535
|
+
"reflect": true,
|
|
536
|
+
"attribute": "fill-opacity"
|
|
537
|
+
},
|
|
538
|
+
"strokeColor": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"mutable": false,
|
|
541
|
+
"complexType": {
|
|
542
|
+
"original": "string",
|
|
543
|
+
"resolved": "string",
|
|
544
|
+
"references": {}
|
|
545
|
+
},
|
|
546
|
+
"required": false,
|
|
547
|
+
"optional": true,
|
|
548
|
+
"docs": {
|
|
549
|
+
"tags": [{
|
|
550
|
+
"name": "default",
|
|
551
|
+
"text": "'rgba(0,100,255,1)'"
|
|
552
|
+
}],
|
|
553
|
+
"text": "Stroke color for lines and polygon outlines (CSS color value)"
|
|
554
|
+
},
|
|
555
|
+
"getter": false,
|
|
556
|
+
"setter": false,
|
|
557
|
+
"reflect": true,
|
|
558
|
+
"attribute": "stroke-color"
|
|
559
|
+
},
|
|
560
|
+
"strokeWidth": {
|
|
561
|
+
"type": "number",
|
|
562
|
+
"mutable": false,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "number",
|
|
565
|
+
"resolved": "number",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": true,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [{
|
|
572
|
+
"name": "default",
|
|
573
|
+
"text": "2"
|
|
574
|
+
}],
|
|
575
|
+
"text": "Stroke width in pixels"
|
|
576
|
+
},
|
|
577
|
+
"getter": false,
|
|
578
|
+
"setter": false,
|
|
579
|
+
"reflect": true,
|
|
580
|
+
"attribute": "stroke-width"
|
|
581
|
+
},
|
|
582
|
+
"strokeOpacity": {
|
|
583
|
+
"type": "number",
|
|
584
|
+
"mutable": false,
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "number",
|
|
587
|
+
"resolved": "number",
|
|
588
|
+
"references": {}
|
|
589
|
+
},
|
|
590
|
+
"required": false,
|
|
591
|
+
"optional": true,
|
|
592
|
+
"docs": {
|
|
593
|
+
"tags": [{
|
|
594
|
+
"name": "default",
|
|
595
|
+
"text": "1"
|
|
596
|
+
}],
|
|
597
|
+
"text": "Stroke opacity (0-1)"
|
|
598
|
+
},
|
|
599
|
+
"getter": false,
|
|
600
|
+
"setter": false,
|
|
601
|
+
"reflect": true,
|
|
602
|
+
"attribute": "stroke-opacity"
|
|
603
|
+
},
|
|
604
|
+
"pointRadius": {
|
|
605
|
+
"type": "number",
|
|
606
|
+
"mutable": false,
|
|
607
|
+
"complexType": {
|
|
608
|
+
"original": "number",
|
|
609
|
+
"resolved": "number",
|
|
610
|
+
"references": {}
|
|
611
|
+
},
|
|
612
|
+
"required": false,
|
|
613
|
+
"optional": true,
|
|
614
|
+
"docs": {
|
|
615
|
+
"tags": [{
|
|
616
|
+
"name": "default",
|
|
617
|
+
"text": "6"
|
|
618
|
+
}],
|
|
619
|
+
"text": "Point radius for point geometries in pixels"
|
|
620
|
+
},
|
|
621
|
+
"getter": false,
|
|
622
|
+
"setter": false,
|
|
623
|
+
"reflect": true,
|
|
624
|
+
"attribute": "point-radius"
|
|
625
|
+
},
|
|
626
|
+
"pointColor": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"mutable": false,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "string",
|
|
631
|
+
"resolved": "string",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": true,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [{
|
|
638
|
+
"name": "default",
|
|
639
|
+
"text": "'rgba(0,100,255,1)'"
|
|
640
|
+
}],
|
|
641
|
+
"text": "Point color for point geometries (CSS color value)"
|
|
642
|
+
},
|
|
643
|
+
"getter": false,
|
|
644
|
+
"setter": false,
|
|
645
|
+
"reflect": true,
|
|
646
|
+
"attribute": "point-color"
|
|
647
|
+
},
|
|
648
|
+
"iconUrl": {
|
|
649
|
+
"type": "string",
|
|
650
|
+
"mutable": false,
|
|
651
|
+
"complexType": {
|
|
652
|
+
"original": "string",
|
|
653
|
+
"resolved": "string",
|
|
654
|
+
"references": {}
|
|
655
|
+
},
|
|
656
|
+
"required": false,
|
|
657
|
+
"optional": true,
|
|
658
|
+
"docs": {
|
|
659
|
+
"tags": [],
|
|
660
|
+
"text": "Icon URL for point features (alternative to pointColor/pointRadius)"
|
|
661
|
+
},
|
|
662
|
+
"getter": false,
|
|
663
|
+
"setter": false,
|
|
664
|
+
"reflect": true,
|
|
665
|
+
"attribute": "icon-url"
|
|
666
|
+
},
|
|
667
|
+
"iconSize": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"mutable": false,
|
|
670
|
+
"complexType": {
|
|
671
|
+
"original": "string",
|
|
672
|
+
"resolved": "string",
|
|
673
|
+
"references": {}
|
|
674
|
+
},
|
|
675
|
+
"required": false,
|
|
676
|
+
"optional": true,
|
|
677
|
+
"docs": {
|
|
678
|
+
"tags": [{
|
|
679
|
+
"name": "default",
|
|
680
|
+
"text": "\"32,32\""
|
|
681
|
+
}],
|
|
682
|
+
"text": "Icon size as [width, height] in pixels (comma-separated string like \"32,32\")"
|
|
683
|
+
},
|
|
684
|
+
"getter": false,
|
|
685
|
+
"setter": false,
|
|
686
|
+
"reflect": true,
|
|
687
|
+
"attribute": "icon-size"
|
|
688
|
+
},
|
|
689
|
+
"textProperty": {
|
|
690
|
+
"type": "string",
|
|
691
|
+
"mutable": false,
|
|
692
|
+
"complexType": {
|
|
693
|
+
"original": "string",
|
|
694
|
+
"resolved": "string",
|
|
695
|
+
"references": {}
|
|
696
|
+
},
|
|
697
|
+
"required": false,
|
|
698
|
+
"optional": true,
|
|
699
|
+
"docs": {
|
|
700
|
+
"tags": [],
|
|
701
|
+
"text": "Text property name from feature properties to display as label"
|
|
702
|
+
},
|
|
703
|
+
"getter": false,
|
|
704
|
+
"setter": false,
|
|
705
|
+
"reflect": true,
|
|
706
|
+
"attribute": "text-property"
|
|
707
|
+
},
|
|
708
|
+
"textColor": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"mutable": false,
|
|
711
|
+
"complexType": {
|
|
712
|
+
"original": "string",
|
|
713
|
+
"resolved": "string",
|
|
714
|
+
"references": {}
|
|
715
|
+
},
|
|
716
|
+
"required": false,
|
|
717
|
+
"optional": true,
|
|
718
|
+
"docs": {
|
|
719
|
+
"tags": [{
|
|
720
|
+
"name": "default",
|
|
721
|
+
"text": "'#000000'"
|
|
722
|
+
}],
|
|
723
|
+
"text": "Text color for labels (CSS color value)"
|
|
724
|
+
},
|
|
725
|
+
"getter": false,
|
|
726
|
+
"setter": false,
|
|
727
|
+
"reflect": true,
|
|
728
|
+
"attribute": "text-color"
|
|
729
|
+
},
|
|
730
|
+
"textSize": {
|
|
731
|
+
"type": "number",
|
|
732
|
+
"mutable": false,
|
|
733
|
+
"complexType": {
|
|
734
|
+
"original": "number",
|
|
735
|
+
"resolved": "number",
|
|
736
|
+
"references": {}
|
|
737
|
+
},
|
|
738
|
+
"required": false,
|
|
739
|
+
"optional": true,
|
|
740
|
+
"docs": {
|
|
741
|
+
"tags": [{
|
|
742
|
+
"name": "default",
|
|
743
|
+
"text": "12"
|
|
744
|
+
}],
|
|
745
|
+
"text": "Text size for labels in pixels"
|
|
746
|
+
},
|
|
747
|
+
"getter": false,
|
|
748
|
+
"setter": false,
|
|
749
|
+
"reflect": true,
|
|
750
|
+
"attribute": "text-size"
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
static get methods() {
|
|
755
|
+
return {
|
|
756
|
+
"getLayerId": {
|
|
757
|
+
"complexType": {
|
|
758
|
+
"signature": "() => Promise<string>",
|
|
759
|
+
"parameters": [],
|
|
760
|
+
"references": {
|
|
761
|
+
"Promise": {
|
|
762
|
+
"location": "global",
|
|
763
|
+
"id": "global::Promise"
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"return": "Promise<string>"
|
|
767
|
+
},
|
|
768
|
+
"docs": {
|
|
769
|
+
"text": "Returns the internal layer ID used by the map provider.",
|
|
770
|
+
"tags": []
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"getError": {
|
|
774
|
+
"complexType": {
|
|
775
|
+
"signature": "() => Promise<VMapErrorDetail | undefined>",
|
|
776
|
+
"parameters": [],
|
|
777
|
+
"references": {
|
|
778
|
+
"Promise": {
|
|
779
|
+
"location": "global",
|
|
780
|
+
"id": "global::Promise"
|
|
781
|
+
},
|
|
782
|
+
"VMapErrorDetail": {
|
|
783
|
+
"location": "import",
|
|
784
|
+
"path": "../../utils/events",
|
|
785
|
+
"id": "src/utils/events.ts::VMapErrorDetail",
|
|
786
|
+
"referenceLocation": "VMapErrorDetail"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"return": "Promise<VMapErrorDetail>"
|
|
790
|
+
},
|
|
791
|
+
"docs": {
|
|
792
|
+
"text": "Returns the last error detail, if any.",
|
|
793
|
+
"tags": []
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
static get elementRef() { return "el"; }
|
|
799
|
+
static get watchers() {
|
|
800
|
+
return [{
|
|
801
|
+
"propName": "geojson",
|
|
802
|
+
"methodName": "onGeoJsonChanged"
|
|
803
|
+
}, {
|
|
804
|
+
"propName": "url",
|
|
805
|
+
"methodName": "onUrlChanged"
|
|
806
|
+
}, {
|
|
807
|
+
"propName": "visible",
|
|
808
|
+
"methodName": "onVisibleChanged"
|
|
809
|
+
}, {
|
|
810
|
+
"propName": "opacity",
|
|
811
|
+
"methodName": "onOpacityChanged"
|
|
812
|
+
}, {
|
|
813
|
+
"propName": "zIndex",
|
|
814
|
+
"methodName": "onZIndexChanged"
|
|
815
|
+
}, {
|
|
816
|
+
"propName": "fillColor",
|
|
817
|
+
"methodName": "onStyleChanged"
|
|
818
|
+
}, {
|
|
819
|
+
"propName": "fillOpacity",
|
|
820
|
+
"methodName": "onStyleChanged"
|
|
821
|
+
}, {
|
|
822
|
+
"propName": "strokeColor",
|
|
823
|
+
"methodName": "onStyleChanged"
|
|
824
|
+
}, {
|
|
825
|
+
"propName": "strokeWidth",
|
|
826
|
+
"methodName": "onStyleChanged"
|
|
827
|
+
}, {
|
|
828
|
+
"propName": "strokeOpacity",
|
|
829
|
+
"methodName": "onStyleChanged"
|
|
830
|
+
}, {
|
|
831
|
+
"propName": "pointRadius",
|
|
832
|
+
"methodName": "onStyleChanged"
|
|
833
|
+
}, {
|
|
834
|
+
"propName": "pointColor",
|
|
835
|
+
"methodName": "onStyleChanged"
|
|
836
|
+
}, {
|
|
837
|
+
"propName": "iconUrl",
|
|
838
|
+
"methodName": "onStyleChanged"
|
|
839
|
+
}, {
|
|
840
|
+
"propName": "iconSize",
|
|
841
|
+
"methodName": "onStyleChanged"
|
|
842
|
+
}, {
|
|
843
|
+
"propName": "textProperty",
|
|
844
|
+
"methodName": "onStyleChanged"
|
|
845
|
+
}, {
|
|
846
|
+
"propName": "textColor",
|
|
847
|
+
"methodName": "onStyleChanged"
|
|
848
|
+
}, {
|
|
849
|
+
"propName": "textSize",
|
|
850
|
+
"methodName": "onStyleChanged"
|
|
851
|
+
}];
|
|
852
|
+
}
|
|
853
|
+
static get listeners() {
|
|
854
|
+
return [{
|
|
855
|
+
"name": "styleReady",
|
|
856
|
+
"method": "onStyleReady",
|
|
857
|
+
"target": "document",
|
|
858
|
+
"capture": false,
|
|
859
|
+
"passive": false
|
|
860
|
+
}];
|
|
861
|
+
}
|
|
862
|
+
}
|