@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,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalization utilities for raster data
|
|
3
|
+
* Handles conversion of different TypedArray types to normalized 0-255 range
|
|
4
|
+
*/
|
|
5
|
+
export type TypedArrayType = 'Uint8Array' | 'Uint16Array' | 'Int16Array' | 'Uint32Array' | 'Int32Array' | 'Float32Array' | 'Float64Array';
|
|
6
|
+
/**
|
|
7
|
+
* Normalize a raw value to 0-255 range based on array type
|
|
8
|
+
* @param rawValue - The raw value from the raster
|
|
9
|
+
* @param arrayType - The TypedArray type name
|
|
10
|
+
* @returns Normalized value 0-255
|
|
11
|
+
*/
|
|
12
|
+
export declare function normalizeValue(rawValue: number, arrayType: TypedArrayType): number;
|
|
13
|
+
/**
|
|
14
|
+
* Normalize a raw value to 0-1 range for colormap application
|
|
15
|
+
* @param rawValue - The raw value from the raster
|
|
16
|
+
* @param valueRange - Optional [min, max] range. If not provided, assumes normalized data.
|
|
17
|
+
* @returns Normalized value 0-1
|
|
18
|
+
*/
|
|
19
|
+
export declare function normalizeToColorMapRange(rawValue: number, valueRange?: [number, number]): number;
|
|
20
|
+
/**
|
|
21
|
+
* Auto-detect value range from a Float32/Float64 array sample
|
|
22
|
+
* Useful when valueRange is not provided
|
|
23
|
+
* @param data - The raster data array
|
|
24
|
+
* @param sampleSize - Number of samples to analyze (default: 1000)
|
|
25
|
+
* @returns Detected [min, max] range
|
|
26
|
+
*/
|
|
27
|
+
export declare function autoDetectValueRange(data: Float32Array | Float64Array, sampleSize?: number): [number, number];
|
|
28
|
+
/**
|
|
29
|
+
* Check if a TypedArray type represents floating point data
|
|
30
|
+
* @param arrayType - The TypedArray type name
|
|
31
|
+
* @returns True if Float32Array or Float64Array
|
|
32
|
+
*/
|
|
33
|
+
export declare function isFloatType(arrayType: TypedArrayType): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Get the typical value range for a TypedArray type
|
|
36
|
+
* @param arrayType - The TypedArray type name
|
|
37
|
+
* @returns [min, max] range for the type
|
|
38
|
+
*/
|
|
39
|
+
export declare function getTypeRange(arrayType: TypedArrayType): [number, number];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TypedArrayType } from './normalization-utils';
|
|
2
|
+
import { type ColorStop } from './colormap-utils';
|
|
3
|
+
export type TypedArray = Uint8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
|
|
4
|
+
/**
|
|
5
|
+
* Nearest-Neighbor Sampling with window-based reading and multi-band support
|
|
6
|
+
* Returns [R, G, B, A] values (0-255)
|
|
7
|
+
*/
|
|
8
|
+
export declare function sampleNearest(x: number, y: number, rasterBands: TypedArray[], arrayType: TypedArrayType, width: number, height: number, offsetX: number, offsetY: number, colorStops?: ColorStop[]): [number, number, number, number] | null;
|
|
9
|
+
/**
|
|
10
|
+
* Bilinear Interpolation with window-based reading and multi-band support
|
|
11
|
+
* Returns [R, G, B, A] values (0-255)
|
|
12
|
+
*/
|
|
13
|
+
export declare function sampleBilinear(x: number, y: number, rasterBands: TypedArray[], arrayType: TypedArrayType, width: number, height: number, offsetX: number, offsetY: number, colorStops?: ColorStop[]): [number, number, number, number] | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as L from 'leaflet';
|
|
2
|
+
import type { Coords, DoneCallback } from 'leaflet';
|
|
3
|
+
import { getColorStops } from '../geotiff/utils/colormap-utils';
|
|
4
|
+
export interface GeoTIFFGridLayerOptions extends L.GridLayerOptions {
|
|
5
|
+
url: string;
|
|
6
|
+
colorMap?: Parameters<typeof getColorStops>[0];
|
|
7
|
+
valueRange?: [number, number];
|
|
8
|
+
nodata?: number;
|
|
9
|
+
resolution?: number;
|
|
10
|
+
resampleMethod?: 'near' | 'bilinear';
|
|
11
|
+
tileSize?: number;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
viewProjection?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class GeoTIFFGridLayer extends L.GridLayer {
|
|
17
|
+
private readonly geotiffOptions;
|
|
18
|
+
private tileProcessor;
|
|
19
|
+
private colorStops?;
|
|
20
|
+
private loadingPromise?;
|
|
21
|
+
private readonly defaultResolution;
|
|
22
|
+
private readonly defaultResample;
|
|
23
|
+
constructor(options: GeoTIFFGridLayerOptions);
|
|
24
|
+
onAdd(map: L.Map): this;
|
|
25
|
+
createTile(coords: Coords, done: DoneCallback): HTMLCanvasElement;
|
|
26
|
+
private ensureReady;
|
|
27
|
+
updateSource(options: Partial<GeoTIFFGridLayerOptions>): Promise<void>;
|
|
28
|
+
private initializeProcessor;
|
|
29
|
+
/**
|
|
30
|
+
* Set Leaflet bounds from GeoTIFF source bounds
|
|
31
|
+
* Restricts tile loading to the GeoTIFF coverage area
|
|
32
|
+
*/
|
|
33
|
+
private setViewBounds;
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as L from 'leaflet';
|
|
2
|
+
export interface WCSGridLayerOptions extends L.GridLayerOptions {
|
|
3
|
+
url: string;
|
|
4
|
+
coverageName: string;
|
|
5
|
+
version?: string;
|
|
6
|
+
format?: string;
|
|
7
|
+
projection?: string;
|
|
8
|
+
params?: Record<string, string | number | boolean>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Custom Leaflet GridLayer for WCS (Web Coverage Service) support
|
|
12
|
+
*
|
|
13
|
+
* Supports:
|
|
14
|
+
* - WCS 2.0.1 with subset parameters
|
|
15
|
+
* - WCS 1.x.x with BBOX parameters (backward compatibility)
|
|
16
|
+
* - GeoTIFF FLOAT32 format
|
|
17
|
+
* - Dynamic BBOX-based requests
|
|
18
|
+
*/
|
|
19
|
+
export declare class WCSGridLayer extends L.GridLayer {
|
|
20
|
+
private wcsOptions;
|
|
21
|
+
constructor(options: WCSGridLayerOptions);
|
|
22
|
+
/**
|
|
23
|
+
* Build WCS GetCoverage URL for a given tile
|
|
24
|
+
*/
|
|
25
|
+
private buildWCSUrl;
|
|
26
|
+
/**
|
|
27
|
+
* Create tile element (required by GridLayer)
|
|
28
|
+
*/
|
|
29
|
+
createTile(coords: L.Coords, done: L.DoneCallback): HTMLElement;
|
|
30
|
+
/**
|
|
31
|
+
* Update WCS options and redraw
|
|
32
|
+
*/
|
|
33
|
+
updateOptions(newOptions: Partial<WCSGridLayerOptions>): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Factory function to create a WCS GridLayer
|
|
37
|
+
*/
|
|
38
|
+
export declare function createWCSGridLayer(options: WCSGridLayerOptions): WCSGridLayer;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as L from 'leaflet';
|
|
2
|
+
type ScaleFactor = 'scaleFactor1x' | 'scaleFactor2x' | 'scaleFactor4x';
|
|
3
|
+
interface GoogleMapTilesOptions {
|
|
4
|
+
apiKey: string;
|
|
5
|
+
mapType?: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
imageFormat?: string;
|
|
9
|
+
scale?: ScaleFactor;
|
|
10
|
+
highDpi?: boolean;
|
|
11
|
+
layerTypes?: string[];
|
|
12
|
+
overlay?: boolean;
|
|
13
|
+
styles?: Record<string, unknown>[];
|
|
14
|
+
apiOptions?: string[];
|
|
15
|
+
maxZoom?: number;
|
|
16
|
+
minZoom?: number;
|
|
17
|
+
minNativeZoom?: number;
|
|
18
|
+
maxNativeZoom?: number;
|
|
19
|
+
opacity?: number;
|
|
20
|
+
tileSize?: unknown;
|
|
21
|
+
attribution?: unknown;
|
|
22
|
+
bounds?: unknown;
|
|
23
|
+
updateWhenIdle?: boolean;
|
|
24
|
+
updateWhenZooming?: boolean;
|
|
25
|
+
updateInterval?: number;
|
|
26
|
+
className?: string;
|
|
27
|
+
keepBuffer?: number;
|
|
28
|
+
noWrap?: boolean;
|
|
29
|
+
pane?: string;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
zoomOffset?: number;
|
|
32
|
+
errorTileUrl?: string;
|
|
33
|
+
subdomains?: unknown;
|
|
34
|
+
tms?: boolean;
|
|
35
|
+
detectRetina?: boolean;
|
|
36
|
+
reuseTiles?: boolean;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
export declare class GoogleMapTilesLayer extends L.GridLayer {
|
|
40
|
+
private readonly apiKey;
|
|
41
|
+
private readonly highDpi;
|
|
42
|
+
private readonly sessionRequest;
|
|
43
|
+
private readonly scaleFactor;
|
|
44
|
+
private sessionToken?;
|
|
45
|
+
private sessionPromise?;
|
|
46
|
+
private sessionRefreshId?;
|
|
47
|
+
private previousViewport?;
|
|
48
|
+
private currentAttribution?;
|
|
49
|
+
private mapInstance?;
|
|
50
|
+
private readonly onMoveEnd;
|
|
51
|
+
constructor(options: GoogleMapTilesOptions);
|
|
52
|
+
onAdd(map: L.Map): this;
|
|
53
|
+
onRemove(map: L.Map): this;
|
|
54
|
+
createTile(coords: L.Coords, done: L.DoneCallback): HTMLElement;
|
|
55
|
+
private ensureSession;
|
|
56
|
+
private startSessionFetch;
|
|
57
|
+
private fetchAndApplySession;
|
|
58
|
+
private scheduleSessionRefresh;
|
|
59
|
+
private clearSessionRefresh;
|
|
60
|
+
private updateAttribution;
|
|
61
|
+
private applyAttribution;
|
|
62
|
+
private removeCurrentAttribution;
|
|
63
|
+
private applyTileSize;
|
|
64
|
+
private parseExpiry;
|
|
65
|
+
private buildTileUrl;
|
|
66
|
+
private mapScaleToFactor;
|
|
67
|
+
private factorToScale;
|
|
68
|
+
private applyInitialGridOptions;
|
|
69
|
+
private setGridOptions;
|
|
70
|
+
private resolveTileSize;
|
|
71
|
+
private redrawLayer;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CssMode } from '../../types/cssmode';
|
|
2
|
+
import * as L from 'leaflet';
|
|
3
|
+
export declare function removeInjectedCss(shadowRoot: ShadowRoot, injectedStyle: HTMLStyleElement): void;
|
|
4
|
+
export declare function ensureLeafletCss(mode: CssMode, root?: ShadowRoot): HTMLStyleElement | null;
|
|
5
|
+
/** Fügt ein kleines Google-Logo als Leaflet-Control hinzu (Branding-Sicherheit) */
|
|
6
|
+
export declare function ensureGoogleLogo(map: L.Map, markAdded: () => void): void;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { MapProvider, LayerUpdate, LayerErrorCallback } from '../../types/mapprovider';
|
|
2
|
+
import type { ProviderOptions } from '../../types/provideroptions';
|
|
3
|
+
import type { LayerConfig } from '../../types/layerconfig';
|
|
4
|
+
import type { LonLat } from '../../types/lonlat';
|
|
5
|
+
import * as L from 'leaflet';
|
|
6
|
+
export declare class LeafletProvider implements MapProvider {
|
|
7
|
+
private map?;
|
|
8
|
+
private layers;
|
|
9
|
+
private baseLayers;
|
|
10
|
+
private hiddenLayerGroups;
|
|
11
|
+
private googleLogoAdded;
|
|
12
|
+
private unsubscribeResize;
|
|
13
|
+
private shadowRoot;
|
|
14
|
+
private injectedStyle;
|
|
15
|
+
private layerErrorCallbacks;
|
|
16
|
+
private layerErrorCleanups;
|
|
17
|
+
init(options: ProviderOptions): Promise<void>;
|
|
18
|
+
updateLayer(layerId: string, update: LayerUpdate): Promise<void>;
|
|
19
|
+
addLayerToGroup(layerConfig: LayerConfig): Promise<string>;
|
|
20
|
+
addBaseLayer(layerConfig: LayerConfig, basemapid: string, layerElementId: string): Promise<string>;
|
|
21
|
+
setBaseLayer(groupId: string, layerElementId: string): Promise<void>;
|
|
22
|
+
private getLayerId;
|
|
23
|
+
private normalizeAttribution;
|
|
24
|
+
private _getLayerById;
|
|
25
|
+
private createLayer;
|
|
26
|
+
private updateGeoJSONLayer;
|
|
27
|
+
private createGeoJSONLayer;
|
|
28
|
+
private createXYZLayer;
|
|
29
|
+
private updateOSMLayer;
|
|
30
|
+
private createOSMLayer;
|
|
31
|
+
private createWMSLayer;
|
|
32
|
+
private buildArcGISUrl;
|
|
33
|
+
private createArcGISLayer;
|
|
34
|
+
private updateArcGISLayer;
|
|
35
|
+
private createGoogleLayer;
|
|
36
|
+
private tryParseStyles;
|
|
37
|
+
destroy(): Promise<void>;
|
|
38
|
+
setView([lon, lat]: LonLat, zoom: number): Promise<void>;
|
|
39
|
+
onLayerError(layerId: string, callback: LayerErrorCallback): void;
|
|
40
|
+
offLayerError(layerId: string): void;
|
|
41
|
+
removeLayer(layerId: string): Promise<void>;
|
|
42
|
+
setZIndex(layerId: string, zIndex: number): Promise<void>;
|
|
43
|
+
setOpacity(layerId: string, opacity: number): Promise<void>;
|
|
44
|
+
private setOpacityByLayer;
|
|
45
|
+
setVisible(layerId: string, visible: boolean): Promise<void>;
|
|
46
|
+
private setVisibleByLayer;
|
|
47
|
+
private setLayerOpacity;
|
|
48
|
+
ensureGroup(groupId: string, visible: boolean, _opts?: {
|
|
49
|
+
basemapid?: string;
|
|
50
|
+
}): Promise<void>;
|
|
51
|
+
private _ensureGroup;
|
|
52
|
+
private _getLayerGroupById;
|
|
53
|
+
setGroupVisible(groupId: string, visible: boolean): Promise<void>;
|
|
54
|
+
private updateWKTLayer;
|
|
55
|
+
private createWKTLayer;
|
|
56
|
+
private wktToGeoJSON;
|
|
57
|
+
private createGeoTIFFLayer;
|
|
58
|
+
private updateGeoTIFFLayer;
|
|
59
|
+
private createWCSLayer;
|
|
60
|
+
private updateWCSLayer;
|
|
61
|
+
/**
|
|
62
|
+
* Convert a Geostyler style to Leaflet GeoJSON options
|
|
63
|
+
*/
|
|
64
|
+
private createGeostylerLeafletOptions;
|
|
65
|
+
private createLeafletStyle;
|
|
66
|
+
private createLeafletPoint;
|
|
67
|
+
private bindLeafletPopup;
|
|
68
|
+
private createWFSLayer;
|
|
69
|
+
private updateWFSLayer;
|
|
70
|
+
private fetchWFSFromUrl;
|
|
71
|
+
private appendParams;
|
|
72
|
+
getMap(): L.Map;
|
|
73
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Options as GeoTIFFOptions } from 'ol/source/GeoTIFF';
|
|
2
|
+
import GeoTIFF from 'ol/source/GeoTIFF';
|
|
3
|
+
import type { GeoKeys, ProjectionParameters } from 'geotiff-geokeys-to-proj4';
|
|
4
|
+
import type { Projection } from 'ol/proj';
|
|
5
|
+
type GeoKeysLike = Partial<GeoKeys>;
|
|
6
|
+
export interface CustomGeoTiffInstance extends GeoTIFF {
|
|
7
|
+
getGeoKeys(): Promise<GeoKeysLike | null>;
|
|
8
|
+
getProjectionParameters(): Promise<ProjectionParameters | null>;
|
|
9
|
+
getProj4String(): Promise<string | null>;
|
|
10
|
+
registerProjectionIfNeeded(): Promise<Projection | null>;
|
|
11
|
+
}
|
|
12
|
+
export type CustomGeoTiffConstructor = new () => CustomGeoTiffInstance;
|
|
13
|
+
export declare function createCustomGeoTiff(options: GeoTIFFOptions): Promise<CustomGeoTiffConstructor>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import Map from 'ol/Map';
|
|
2
|
+
import type { MapProvider, LayerUpdate, LayerErrorCallback } from '../../types/mapprovider';
|
|
3
|
+
import type { ProviderOptions } from '../../types/provideroptions';
|
|
4
|
+
import type { LayerConfig } from '../../types/layerconfig';
|
|
5
|
+
import type { LonLat } from '../../types/lonlat';
|
|
6
|
+
export declare class OpenLayersProvider implements MapProvider {
|
|
7
|
+
private map;
|
|
8
|
+
private layers;
|
|
9
|
+
private baseLayers;
|
|
10
|
+
private googleLogoAdded;
|
|
11
|
+
private projection;
|
|
12
|
+
private layerErrorCallbacks;
|
|
13
|
+
private layerErrorCleanups;
|
|
14
|
+
init(options: ProviderOptions): Promise<void>;
|
|
15
|
+
destroy(): Promise<void>;
|
|
16
|
+
updateLayer(layerId: string, update: LayerUpdate): Promise<void>;
|
|
17
|
+
ensureGroup(groupId: string, visible: boolean, _opts?: {
|
|
18
|
+
basemapid?: string;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
private _ensureGroup;
|
|
21
|
+
setBaseLayer(groupId: string, layerElementId: string): Promise<void>;
|
|
22
|
+
addBaseLayer(layerConfig: LayerConfig, basemapid: string, layerElementId: string): Promise<string>;
|
|
23
|
+
addLayerToGroup(layerConfig: LayerConfig): Promise<string>;
|
|
24
|
+
private createLayer;
|
|
25
|
+
private updateWMSLayer;
|
|
26
|
+
private updateOSMLayer;
|
|
27
|
+
private updateGeoJSONLayer;
|
|
28
|
+
private updateWFSLayer;
|
|
29
|
+
private updateWCSLayer;
|
|
30
|
+
private updateArcGISLayer;
|
|
31
|
+
private createEnhancedStyleFunction;
|
|
32
|
+
private createGeoJSONLayer;
|
|
33
|
+
private createWFSSpource;
|
|
34
|
+
private createWFSLayer;
|
|
35
|
+
/**
|
|
36
|
+
* Convert a GeoStyler style to an OpenLayers style function.
|
|
37
|
+
*
|
|
38
|
+
* TODO: Replace this hand-rolled conversion (~200 lines) with
|
|
39
|
+
* geostyler-openlayers-parser's writeStyle(). The official parser
|
|
40
|
+
* covers more symbolizer types, handles filters, and stays in sync
|
|
41
|
+
* with the GeoStyler spec. See:
|
|
42
|
+
* https://github.com/geostyler/geostyler-openlayers-parser
|
|
43
|
+
*/
|
|
44
|
+
private createGeostylerStyleFunction;
|
|
45
|
+
private createXYZLayer;
|
|
46
|
+
private createGoogleLayer;
|
|
47
|
+
private createOSMLayer;
|
|
48
|
+
private createWMSLayer;
|
|
49
|
+
onLayerError(layerId: string, callback: LayerErrorCallback): void;
|
|
50
|
+
offLayerError(layerId: string): void;
|
|
51
|
+
private attachSourceErrorListeners;
|
|
52
|
+
setView(center: LonLat, zoom: number): Promise<void>;
|
|
53
|
+
private _forEachLayer;
|
|
54
|
+
private _getLayerById;
|
|
55
|
+
private _getLayerGroupById;
|
|
56
|
+
removeLayer(layerId: string): Promise<void>;
|
|
57
|
+
setOpacity(layerId: string, opacity: number): Promise<void>;
|
|
58
|
+
setZIndex(layerId: string, zIndex: number): Promise<void>;
|
|
59
|
+
setVisible(layerId: string, visible: boolean): Promise<void>;
|
|
60
|
+
setGroupVisible(groupId: string, visible: boolean): Promise<void>;
|
|
61
|
+
private updateWKTLayer;
|
|
62
|
+
private createWKTLayer;
|
|
63
|
+
private createGeoTIFFLayer;
|
|
64
|
+
private createWCSLayer;
|
|
65
|
+
private getWFSGetFeatureUrl;
|
|
66
|
+
/**
|
|
67
|
+
* Erstellt eine WCS GetCoverage URL mit dynamischem BBOX für WCS 2.0.1 und 1.x.x
|
|
68
|
+
*/
|
|
69
|
+
private getWCSGetCoverageUrl;
|
|
70
|
+
private mergeLayerConfig;
|
|
71
|
+
private appendParams;
|
|
72
|
+
/**
|
|
73
|
+
* Erstellt eine WCS Image Source mit dynamischem BBOX-basierten Loading
|
|
74
|
+
* Unterstützt WCS 2.0.1 und 1.x.x mit GeoTIFF FLOAT32
|
|
75
|
+
*/
|
|
76
|
+
private createWcsSource;
|
|
77
|
+
private createArcGISLayer;
|
|
78
|
+
private updateGeoTIFFLayer;
|
|
79
|
+
getMap(): Map;
|
|
80
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MapProvider } from '../types/mapprovider';
|
|
2
|
+
import type { Flavour } from '../types/flavour';
|
|
3
|
+
/**
|
|
4
|
+
* Erzeugt eine konkrete Karten-Provider-Instanz abhängig vom gewählten Flavour.
|
|
5
|
+
*
|
|
6
|
+
* Unterstützt:
|
|
7
|
+
* - "ol" → OpenLayers
|
|
8
|
+
* - "cesium" → CesiumJS
|
|
9
|
+
* - "deck" → Deck.gl
|
|
10
|
+
* - "leaflet" → Leaflet
|
|
11
|
+
*/
|
|
12
|
+
export declare function createProvider(engine: Flavour): Promise<MapProvider>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Local OpenLayers type fixes
|
|
2
|
+
declare module 'ol/webgl/PaletteTexture' {
|
|
3
|
+
export interface PaletteTexture {
|
|
4
|
+
name: string;
|
|
5
|
+
data: Uint8Array; // Fixed: removed generic parameter
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Re-export everything else from the original ol types
|
|
10
|
+
export * from 'ol';
|