@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 @@
|
|
|
1
|
+
import{o as t,q as s,s as o,t as r,v as e,w as n,x as h,V as u,y as m,z as g,A as f,D as P,E as M,F as v,H as w,J as b,K as x,N as y,O as S,Q as z,R as Z,M as R,G as O,u as _,X as A,Y as X,Z as D,_ as V,$ as E,a0 as F,a1 as I,a2 as T,a3 as B,a4 as N,a5 as $,a6 as q,a7 as Y,a8 as G,a9 as J,aa as W,ab as H,ac as K,ad as Q,ae as tt}from"./p-MyTSFnEk.js";export{aj as AmbientLight,ao as Attribute,ap as AttributeManager,C as CompositeLayer,am as Deck,aq as DeckRenderer,L as Layer,an as LayerManager,ai as LightingEffect,au as MapController,at as MapView,ah as OPERATION,av as TRANSITION_EVENTS,ay as Tesselator,U as UNIT,af as VERSION,aH as Widget,aI as _Component,aJ as _ComponentState,ak as _LayersPass,al as _PickLayersPass,aF as _applyStyles,aE as _compareProps,aB as _count,d as _deepEqual,az as _fillArray,aA as _flatten,aC as _memoize,aD as _mergeShaders,aG as _removeStyles,aw as assert,c as color,l as createIterable,ax as fp64LowPart,ag as getShaderAssembler,i as gouraudMaterial,j as log,k as phongMaterial,a as picking,ar as project,p as project32,as as shadow}from"./p-MyTSFnEk.js";export{L as LayerExtension}from"./p-CZqY0yW4.js";import"./p-B-bAcABs.js";import"./p-DhQAXuA7.js";import"./p-DR9McdNX.js";import"./p-E-ZsRS8r.js";import"./p-CMKJzsgL.js";import"./p-Dckgonw8.js";import"@loaders.gl/core";import"@loaders.gl/images";import"@loaders.gl/loader-utils";import"@loaders.gl/terrain";import"@loaders.gl/schema";const st=1e-6;class ot{constructor({phi:t=0,theta:s=0,radius:o=1,bearing:i,pitch:r,altitude:e,radiusScale:n=6371e3}={}){this.phi=t,this.theta=s,this.radius=o||e||1,this.radiusScale=n||1,void 0!==i&&(this.bearing=i),void 0!==r&&(this.pitch=r),this.check()}toString(){return this.formatString(t)}formatString({printTypes:t=!1}){const o=s;return`${t?"Spherical":""}[rho:${o(this.radius)},theta:${o(this.theta)},phi:${o(this.phi)}]`}equals(t){return o(this.radius,t.radius)&&o(this.theta,t.theta)&&o(this.phi,t.phi)}exactEquals(t){return this.radius===t.radius&&this.theta===t.theta&&this.phi===t.phi}get bearing(){return 180-r(this.phi)}set bearing(t){this.phi=Math.PI-e(t)}get pitch(){return r(this.theta)}set pitch(t){this.theta=e(t)}get longitude(){return r(this.phi)}get latitude(){return r(this.theta)}get lng(){return r(this.phi)}get lat(){return r(this.theta)}get z(){return(this.radius-1)*this.radiusScale}set(t,s,o){return this.radius=t,this.phi=s,this.theta=o,this.check()}clone(){return(new ot).copy(this)}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this.check()}fromLngLatZ([t,s,o]){return this.radius=1+o/this.radiusScale,this.phi=e(s),this.theta=e(t),this.check()}fromVector3(t){return this.radius=n(t),this.radius>0&&(this.theta=Math.atan2(t[0],t[1]),this.phi=Math.acos(h(t[2]/this.radius,-1,1))),this.check()}toVector3(){return new u(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}makeSafe(){return this.phi=Math.max(st,Math.min(Math.PI-st,this.phi)),this}check(){if(!(Number.isFinite(this.phi)&&Number.isFinite(this.theta)&&this.radius>0))throw new Error("SphericalCoordinates: some fields set to invalid numbers");return this}}const it=["longitude","latitude","zoom"],rt={curve:1.414,speed:1.2};function et(t,s,o){const i=(o=Object.assign({},rt,o)).curve,r=t.zoom,e=[t.longitude,t.latitude],n=x(r),a=[s.longitude,s.latitude],h=x(s.zoom-r),c=M(e),u=M(a),l=v([],u,c),p=Math.max(t.width,t.height),d=p/h,m=b(l)*n,g=Math.max(m,.01),f=i*i,P=(d*d-p*p+f*f*g*g)/(2*p*f*g),w=(d*d-p*p-f*f*g*g)/(2*d*f*g),y=Math.log(Math.sqrt(P*P+1)-P),S=Math.log(Math.sqrt(w*w+1)-w);return{startZoom:r,startCenterXY:c,uDelta:l,w0:p,u1:m,S:(S-y)/i,rho:i,rho2:f,r0:y,r1:S}}const nt=[255,255,255],ht=1,ct=[1,0,0],ut=[0,0,1];let lt=0;class pt{constructor(t={}){this.type="point";const{color:s=nt}=t,{intensity:o=ht}=t,{position:i=ut}=t;this.id=t.id||"point-"+lt++,this.color=s,this.intensity=o,this.type="point",this.position=i,this.attenuation=function(t){return t.attenuation?t.attenuation:ct}(t),this.projectedLight={...this}}getProjectedLight({layer:t}){const{projectedLight:s}=this,o=t.context.viewport,{coordinateSystem:i,coordinateOrigin:r}=t.props,e=y(this.position,{viewport:o,coordinateSystem:i,coordinateOrigin:r,fromCoordinateSystem:o.isGeospatial?S.LNGLAT:S.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return s.color=this.color,s.intensity=this.intensity,s.position=e,s}}class dt extends pt{getProjectedLight({layer:t}){const{projectedLight:s}=this,o=t.context.viewport,{coordinateSystem:i,coordinateOrigin:r,modelMatrix:e}=t.props,{cameraPosition:n}=z({viewport:o,modelMatrix:e,coordinateSystem:i,coordinateOrigin:r});return s.color=this.color,s.intensity=this.intensity,s.position=n,s}}const mt=Math.PI/180,gt=23.4397*mt;function ft(t,s,o){const{azimuth:i,altitude:r}=function(t,s,o){const i=mt*-o,r=mt*s,e=function(t){return function(t){return("number"==typeof t?t:t.getTime())/864e5-.5+2440588}(t)-2451545}(t),n=function(t){const s=function(t){const s=t;return s+mt*(1.9148*Math.sin(s)+.02*Math.sin(2*s)+3e-4*Math.sin(3*s))+102.9372*mt+Math.PI}(mt*(357.5291+.98560028*t));return{declination:Mt(s,0),rightAscension:Pt(s,0)}}(e),a=function(t,s){return mt*(280.147+360.9856235*t)-s}(e,i)-n.rightAscension;return{azimuth:vt(a,r,n.declination),altitude:wt(a,r,n.declination)}}(t,s,o);return[Math.sin(i)*Math.cos(r),Math.cos(i)*Math.cos(r),-Math.sin(r)]}function Pt(t,s){const o=t;return Math.atan2(Math.sin(o)*Math.cos(gt)-Math.tan(s)*Math.sin(gt),Math.cos(o))}function Mt(t,s){const o=t;return Math.asin(Math.sin(s)*Math.cos(gt)+Math.cos(s)*Math.sin(gt)*Math.sin(o))}function vt(t,s,o){const i=t,r=s,e=o;return Math.atan2(Math.sin(i),Math.cos(i)*Math.sin(r)-Math.tan(e)*Math.cos(r))}function wt(t,s,o){const i=t,r=s,e=o;return Math.asin(Math.sin(r)*Math.sin(e)+Math.cos(r)*Math.cos(e)*Math.cos(i))}class bt extends Z{constructor(t){super(t),this.timestamp=t.timestamp}getProjectedLight({layer:t}){const{viewport:s}=t.context;if(s.resolution&&s.resolution>0){const[t,s,o]=ft(this.timestamp,0,0);this.direction=[t,-o,s]}else{const{latitude:t,longitude:o}=s;this.direction=ft(this.timestamp,t,o)}return this}}const xt=[-1,-1,1,-1,-1,1,1,1];class yt extends R{constructor(t,s){const o=xt.map((t=>-1===t?0:t));s.source&&(s={...s,source:`struct VertexInputs {\n @location(0) clipSpacePosition: vec2<f32>,\n @location(1) texCoord: vec2<f32>,\n @location(2) coordinate: vec2<f32> \n}\n\nstruct FragmentInputs {\n @builtin(position) Position : vec4<f32>,\n @location(0) position : vec2<f32>,\n @location(1) coordinate : vec2<f32>,\n @location(2) uv : vec2<f32>\n};\n\n@vertex\nfn vertexMain(inputs: VertexInputs) -> FragmentInputs {\n var outputs: FragmentInputs;\n outputs.Position = vec4(inputs.clipSpacePosition, 0., 1.);\n outputs.position = inputs.clipSpacePosition;\n outputs.coordinate = inputs.coordinate;\n outputs.uv = inputs.texCoord;\n return outputs;\n}\n\n${s.source}`}),super(t,{id:s.id||_("clip-space"),...s,vs:"#version 300 es\nin vec2 clipSpacePositions;\nin vec2 texCoords;\nin vec2 coordinates;\n\nout vec2 position;\nout vec2 coordinate;\nout vec2 uv;\n\nvoid main(void) {\n gl_Position = vec4(clipSpacePositions, 0., 1.);\n position = clipSpacePositions;\n coordinate = coordinates;\n uv = texCoords;\n}\n",vertexCount:4,geometry:new O({topology:"triangle-strip",vertexCount:4,attributes:{clipSpacePositions:{size:2,value:new Float32Array(xt)},texCoords:{size:2,value:new Float32Array(o)},coordinates:{size:2,value:new Float32Array(o)}}})})}}const St={name:"screen",fs:"uniform screenUniforms {\n vec2 texSize;\n} screen;\n",uniformTypes:{texSize:"vec2<f32>"}};class zt extends A{constructor(t,s){super(t,s);const{module:o,fs:i,id:r}=s;this.model=new yt(t,{id:r,fs:i,modules:[o,St],parameters:{depthWriteEnabled:!1,depthCompare:"always",depthBias:0,blend:!0,blendColorSrcFactor:"one",blendColorDstFactor:"one-minus-src-alpha",blendAlphaSrcFactor:"one",blendAlphaDstFactor:"one-minus-src-alpha",blendColorOperation:"add",blendAlphaOperation:"add"}})}render(t){this._renderPass(this.device,t)}delete(){this.model.destroy(),this.model=null}_renderPass(t,s){const{clearCanvas:o,inputBuffer:i,outputBuffer:r}=s,e=[i.width,i.height];this.model.shaderInputs.setProps({screen:{texSrc:i.colorAttachments[0],texSize:e},...s.moduleProps});const n=this.device.beginRenderPass({framebuffer:r,parameters:{viewport:[0,0,...e]},clearColor:!!o&&[0,0,0,0],clearDepth:1,clearStencil:!1});this.model.draw(n),n.end()}}class Ct{constructor(t,s){this.id=`${t.name}-pass`,this.props=s,X(t),this.module=t}setup({device:t}){this.passes=function(t,s,o){return s.passes.map(((i,r)=>{const e=function(t,s){return s.filter?Rt("string"==typeof s.filter?s.filter:`${t.name}_filterColor_ext`):s.sampler?Ot("string"==typeof s.sampler?s.sampler:`${t.name}_sampleColor`):""}(s,i);return new zt(t,{id:`${o}-${r}`,module:s,fs:e})}))}(t,this.module,this.id)}setProps(t){this.props=t}preRender(){}postRender(t){const s=this.passes,{target:o}=t;let i=t.inputBuffer,r=t.swapBuffer;for(let e=0;e<s.length;e++){const n=void 0!==o&&e===s.length-1;n&&(r=o);const a=!n||Boolean(t.clearCanvas),h={};h[this.module.name]={...this.props,...this.module.passes[e].uniforms},s[e].render({clearCanvas:a,inputBuffer:i,outputBuffer:r,moduleProps:h});const c=r;r=i,i=c}return i}cleanup(){if(this.passes){for(const t of this.passes)t.delete();this.passes=void 0}}}const Zt="#version 300 es\nuniform sampler2D texSrc;\n\nin vec2 position;\nin vec2 coordinate;\nin vec2 uv;\n\nout vec4 fragColor;\n",Rt=t=>`${Zt}\nvoid main() {\n fragColor = texture(texSrc, coordinate);\n fragColor = ${t}(fragColor, screen.texSize, coordinate);\n}\n`,Ot=t=>`${Zt}\nvoid main() {\n fragColor = ${t}(texSrc, screen.texSize, coordinate);\n}\n`,_t=Math.PI/180;function At({height:t,focalDistance:s,orbitAxis:o,rotationX:i,rotationOrbit:r,zoom:e}){const n="Z"===o?[0,0,1]:[0,1,0],a="Z"===o?[0,-s,0]:[0,0,s],h=(new F).lookAt({eye:a,up:n});h.rotateX(i*_t),"Z"===o?h.rotateZ(r*_t):h.rotateY(r*_t);const c=Math.pow(2,e)/t;return h.scale(c),h}class Lt extends D{constructor(t){const{height:s,projectionMatrix:o,fovy:i=50,orbitAxis:r="Z",target:e=[0,0,0],rotationX:n=0,rotationOrbit:a=0,zoom:h=0}=t,c=o?o[5]/2:V(i);super({...t,longitude:void 0,viewMatrix:At({height:s||1,focalDistance:c,orbitAxis:r,rotationX:n,rotationOrbit:a,zoom:h}),fovy:i,focalDistance:c,position:e,zoom:h}),this.target=e,this.orbitAxis=r,this.rotationX=n,this.rotationOrbit=a,this.fovy=i,this.projectedCenter=this.project(this.center)}unproject(t,{topLeft:s=!0}={}){const[o,i,r=this.projectedCenter[2]]=t,e=s?i:this.height-i,[n,a,h]=E([o,e,r],this.pixelUnprojectionMatrix);return[n,a,h]}panByPosition(t,s,o){const i=this.project(t);return{target:this.unproject([this.width/2+i[0]-s[0],this.height/2+i[1]-s[1],this.projectedCenter[2]])}}}Lt.displayName="OrbitViewport";const Xt=(new F).lookAt({eye:[0,0,1]});function Dt({width:t,height:s,near:o,far:i,padding:r}){let e=-t/2,n=t/2,a=-s/2,c=s/2;if(r){const{left:o=0,right:i=0,top:u=0,bottom:l=0}=r,p=h((o+t-i)/2,0,t)-t/2,d=h((u+s-l)/2,0,s)-s/2;e-=p,n-=p,a+=d,c+=d}return(new F).ortho({left:e,right:n,bottom:a,top:c,near:o,far:i})}class jt extends D{constructor(t){const{width:s,height:o,near:i=.1,far:r=1e3,zoom:e=0,target:n=[0,0,0],padding:a=null,flipY:h=!0}=t,c=t.zoomX??(Array.isArray(e)?e[0]:e),u=t.zoomY??(Array.isArray(e)?e[1]:e),l=Math.min(c,u),p=Math.pow(2,l);let d;if(c!==u){const t=Math.pow(2,c),s=Math.pow(2,u);d={unitsPerMeter:[t/p,s/p,1],metersPerUnit:[p/t,p/s,1]}}super({...t,longitude:void 0,position:n,viewMatrix:Xt.clone().scale([p,p*(h?-1:1),p]),projectionMatrix:Dt({width:s||1,height:o||1,padding:a,near:i,far:r}),zoom:l,distanceScales:d}),this.target=n,this.zoomX=c,this.zoomY=u,this.flipY=h}projectFlat([t,s]){const{unitsPerMeter:o}=this.distanceScales;return[t*o[0],s*o[1]]}unprojectFlat([t,s]){const{metersPerUnit:o}=this.distanceScales;return[t*o[0],s*o[1]]}panByPosition(t,s,o){const i=E(s,this.pixelUnprojectionMatrix),r=this.projectFlat(t),e=f([],r,I([],i)),n=f([],this.center,e);return{target:this.unprojectFlat(n)}}}jt.displayName="OrthographicViewport";class Vt extends D{constructor(t){const{longitude:s,latitude:o,modelMatrix:i,bearing:r=0,pitch:e=0,up:n=[0,0,1]}=t,a=new ot({bearing:r,pitch:-90===e?1e-4:90+e}).toVector3().normalize(),h=i?new F(i).transformAsVector(a):a,c=Number.isFinite(o)?T({latitude:o}):0,u=Math.pow(2,c),l=(new F).lookAt({eye:[0,0,0],center:h,up:n}).scale(u);super({...t,zoom:c,viewMatrix:l}),this.latitude=o,this.longitude=s,this.pitch=e,this.bearing=r,this.up=n}}Vt.displayName="FirstPersonViewport";class Et extends ${constructor(t){const{width:s,height:o,position:i=[0,0,0],bearing:r=0,pitch:e=0,longitude:n=null,latitude:a=null,maxPitch:h=90,minPitch:c=-90,startRotatePos:u,startBearing:l,startPitch:p,startZoomPosition:d,startPanPos:m,startPanPosition:g}=t;super({width:s,height:o,position:i,bearing:r,pitch:e,longitude:n,latitude:a,maxPitch:h,minPitch:c},{startRotatePos:u,startBearing:l,startPitch:p,startZoomPosition:d,startPanPos:m,startPanPosition:g}),this.makeViewport=t.makeViewport}panStart({pos:t}){const{position:s}=this.getViewportProps();return this._getUpdatedState({startPanPos:t,startPanPosition:s})}pan({pos:t}){if(!t)return this;const{startPanPos:s=[0,0],startPanPosition:o=[0,0]}=this.getState(),{width:i,height:r,bearing:e,pitch:n}=this.getViewportProps(),a=500*(t[0]-s[0])/i,h=500*(t[1]-s[1])/r,c=new ot({bearing:e,pitch:n}),l=new ot({bearing:e,pitch:-90}),p=c.toVector3().normalize(),d=l.toVector3().cross(p).normalize();return this._getUpdatedState({position:new u(o).add(d.scale(a)).add(p.scale(h))})}panEnd(){return this._getUpdatedState({startPanPos:null,startPanPosition:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startBearing:this.getViewportProps().bearing,startPitch:this.getViewportProps().pitch})}rotate({pos:t,deltaAngleX:s=0,deltaAngleY:o=0}){const{startRotatePos:i,startBearing:r,startPitch:e}=this.getState(),{width:n,height:a}=this.getViewportProps();if(!i||void 0===r||void 0===e)return this;let h;return h=t?{bearing:r-(t[0]-i[0])/n*180,pitch:e-(t[1]-i[1])/a*90}:{bearing:r-s,pitch:e-o},this._getUpdatedState(h)}rotateEnd(){return this._getUpdatedState({startRotatePos:null,startBearing:null,startPitch:null})}zoomStart(){return this._getUpdatedState({startZoomPosition:this.getViewportProps().position})}zoom({pos:t,scale:s}){const o=this.getViewportProps(),i=this.getState().startZoomPosition||o.position,r=this.makeViewport(o),{projectionMatrix:e,width:n}=r,a=2*Math.atan(1/e[0])*(t[0]/n-.5),h=this.getDirection(!0);return this._move(h.rotateZ({radians:-a}),20*Math.log2(s),i)}zoomEnd(){return this._getUpdatedState({startZoomPosition:null})}moveLeft(t=20){const s=this.getDirection(!0);return this._move(s.rotateZ({radians:Math.PI/2}),t)}moveRight(t=20){const s=this.getDirection(!0);return this._move(s.rotateZ({radians:-Math.PI/2}),t)}moveUp(t=20){const s=this.getDirection(!0);return this._move(s,t)}moveDown(t=20){const s=this.getDirection(!0);return this._move(s.negate(),t)}rotateLeft(t=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing-t})}rotateRight(t=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing+t})}rotateUp(t=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch+t})}rotateDown(t=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch-t})}zoomIn(t=20){return this._move(new u(0,0,1),t)}zoomOut(t=20){return this._move(new u(0,0,-1),t)}shortestPathFrom(t){const s=t.getViewportProps(),o={...this.getViewportProps()},{bearing:i,longitude:r}=o;return Math.abs(i-s.bearing)>180&&(o.bearing=i<0?i+360:i-360),null!==r&&null!==s.longitude&&Math.abs(r-s.longitude)>180&&(o.longitude=r<0?r+360:r-360),o}_move(t,s,o=this.getViewportProps().position){const i=t.scale(s);return this._getUpdatedState({position:new u(o).add(i)})}getDirection(t=!1){return new ot({bearing:this.getViewportProps().bearing,pitch:t?90:90+this.getViewportProps().pitch}).toVector3().normalize()}_getUpdatedState(t){return new Et({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...t})}applyConstraints(t){const{pitch:s,maxPitch:o,minPitch:i,longitude:r,bearing:e}=t;return t.pitch=h(s,i,o),null!==r&&(r<-180||r>180)&&(t.longitude=q(r+180,360)-180),(e<-180||e>180)&&(t.bearing=q(e+180,360)-180),t}}class Ft extends B{constructor(){super(...arguments),this.ControllerState=Et,this.transition={transitionDuration:300,transitionInterpolator:new N(["position","pitch","bearing"])}}}class It extends Y{constructor(t={}){super(t)}getViewportType(){return Vt}get ControllerType(){return Ft}}It.displayName="FirstPersonView";class Tt extends ${constructor(t){const{width:s,height:o,rotationX:i=0,rotationOrbit:r=0,target:e=[0,0,0],zoom:n=0,minRotationX:a=-90,maxRotationX:h=90,minZoom:c=-1/0,maxZoom:u=1/0,startPanPosition:l,startRotatePos:p,startRotationX:d,startRotationOrbit:m,startZoomPosition:g,startZoom:f}=t;super({width:s,height:o,rotationX:i,rotationOrbit:r,target:e,zoom:n,minRotationX:a,maxRotationX:h,minZoom:c,maxZoom:u},{startPanPosition:l,startRotatePos:p,startRotationX:d,startRotationOrbit:m,startZoomPosition:g,startZoom:f}),this.makeViewport=t.makeViewport}panStart({pos:t}){return this._getUpdatedState({startPanPosition:this._unproject(t)})}pan({pos:t,startPosition:s}){const o=this.getState().startPanPosition||s;if(!o)return this;const i=this.makeViewport(this.getViewportProps()).panByPosition(o,t);return this._getUpdatedState(i)}panEnd(){return this._getUpdatedState({startPanPosition:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startRotationX:this.getViewportProps().rotationX,startRotationOrbit:this.getViewportProps().rotationOrbit})}rotate({pos:t,deltaAngleX:s=0,deltaAngleY:o=0}){const{startRotatePos:i,startRotationX:r,startRotationOrbit:e}=this.getState(),{width:n,height:a}=this.getViewportProps();if(!i||void 0===r||void 0===e)return this;let h;if(t){let s=(t[0]-i[0])/n;(r<-90||r>90)&&(s*=-1),h={rotationX:r+(t[1]-i[1])/a*180,rotationOrbit:e+180*s}}else h={rotationX:r+o,rotationOrbit:e+s};return this._getUpdatedState(h)}rotateEnd(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}shortestPathFrom(t){const s=t.getViewportProps(),o={...this.getViewportProps()},{rotationOrbit:i}=o;return Math.abs(i-s.rotationOrbit)>180&&(o.rotationOrbit=i<0?i+360:i-360),o}zoomStart({pos:t}){return this._getUpdatedState({startZoomPosition:this._unproject(t),startZoom:this.getViewportProps().zoom})}zoom({pos:t,startPos:s,scale:o}){let{startZoom:i,startZoomPosition:r}=this.getState();if(r||(i=this.getViewportProps().zoom,r=this._unproject(s||t)),!r)return this;const e=this._calculateNewZoom({scale:o,startZoom:i}),n=this.makeViewport({...this.getViewportProps(),zoom:e});return this._getUpdatedState({zoom:e,...n.panByPosition(r,t)})}zoomEnd(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}zoomIn(t=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:t})})}zoomOut(t=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:1/t})})}moveLeft(t=50){return this._panFromCenter([-t,0])}moveRight(t=50){return this._panFromCenter([t,0])}moveUp(t=50){return this._panFromCenter([0,-t])}moveDown(t=50){return this._panFromCenter([0,t])}rotateLeft(t=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit-t})}rotateRight(t=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit+t})}rotateUp(t=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX-t})}rotateDown(t=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX+t})}_project(t){return this.makeViewport(this.getViewportProps()).project(t)}_unproject(t){return this.makeViewport(this.getViewportProps()).unproject(t)}_calculateNewZoom({scale:t,startZoom:s}){const{maxZoom:o,minZoom:i}=this.getViewportProps();void 0===s&&(s=this.getViewportProps().zoom);const r=s+Math.log2(t);return h(r,i,o)}_panFromCenter(t){const{target:s}=this.getViewportProps(),o=this._project(s);return this.pan({startPosition:s,pos:[o[0]+t[0],o[1]+t[1]]})}_getUpdatedState(t){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...t})}applyConstraints(t){const{maxZoom:s,minZoom:o,zoom:i,maxRotationX:r,minRotationX:e,rotationOrbit:n}=t;return t.zoom=Array.isArray(i)?[h(i[0],o,s),h(i[1],o,s)]:h(i,o,s),t.rotationX=h(t.rotationX,e,r),(n<-180||n>180)&&(t.rotationOrbit=q(n+180,360)-180),t}}class Bt extends B{constructor(){super(...arguments),this.ControllerState=Tt,this.transition={transitionDuration:300,transitionInterpolator:new N({transitionProps:{compare:["target","zoom","rotationX","rotationOrbit"],required:["target","zoom"]}})}}}class kt extends Y{constructor(t={}){super(t),this.props.orbitAxis=t.orbitAxis||"Z"}getViewportType(){return Lt}get ControllerType(){return Bt}}kt.displayName="OrbitView";class Nt extends Tt{constructor(t){super(t),this.zoomAxis=t.zoomAxis||"all"}_calculateNewZoom({scale:t,startZoom:s}){const{maxZoom:o,minZoom:i}=this.getViewportProps();void 0===s&&(s=this.getViewportProps().zoom);let r=Math.log2(t);if(Array.isArray(s)){let[t,e]=s;switch(this.zoomAxis){case"X":t=h(t+r,i,o);break;case"Y":e=h(e+r,i,o);break;default:let s=Math.min(t+r,e+r);s<i&&(r+=i-s),s=Math.max(t+r,e+r),s>o&&(r+=o-s),t+=r,e+=r}return[t,e]}return h(s+r,i,o)}}class $t extends B{constructor(){super(...arguments),this.ControllerState=Nt,this.transition={transitionDuration:300,transitionInterpolator:new N(["target","zoom"])},this.dragMode="pan"}_onPanRotate(){return!1}}class Ut extends Y{constructor(t={}){super(t)}getViewportType(){return jt}get ControllerType(){return $t}}Ut.displayName="OrthographicView";class qt extends G{constructor(t){const{startPanPos:s,...o}=t;super(o),void 0!==s&&(this._state.startPanPos=s)}panStart({pos:t}){const{latitude:s,longitude:o,zoom:i}=this.getViewportProps();return this._getUpdatedState({startPanLngLat:[o,s],startPanPos:t,startZoom:i})}pan({pos:t,startPos:s}){const o=this.getState(),i=o.startPanLngLat||this._unproject(s);if(!i)return this;const r=o.startZoom??this.getViewportProps().zoom,e=o.startPanPos||s,n=[i[0],i[1],r],a=this.makeViewport(this.getViewportProps()).panByPosition(n,t,e);return this._getUpdatedState(a)}panEnd(){return this._getUpdatedState({startPanLngLat:null,startPanPos:null,startZoom:null})}zoom({scale:t}){const s=(this.getState().startZoom||this.getViewportProps().zoom)+Math.log2(t);return this._getUpdatedState({zoom:s})}applyConstraints(t){const{longitude:s,latitude:o,maxZoom:i,minZoom:r,zoom:e}=t,n=W(0),a=W(o)-n;return t.zoom=h(e,r+a,i+a),(s<-180||s>180)&&(t.longitude=q(s+180,360)-180),t.latitude=h(o,-J,J),t}}class Yt extends B{constructor(){super(...arguments),this.ControllerState=qt,this.transition={transitionDuration:300,transitionInterpolator:new N(["longitude","latitude","zoom"])},this.dragMode="pan"}setProps(t){super.setProps(t),this.dragRotate=!1,this.touchRotate=!1}}class Gt extends Y{constructor(t={}){super(t)}getViewportType(t){return t.zoom>12?H:K}get ControllerType(){return Yt}}Gt.displayName="GlobeView";const Jt={bearing:0,pitch:0,position:[0,0,0]},Wt={speed:1.2,curve:1.414};class Ht extends Q{constructor(t={}){super({compare:["longitude","latitude","zoom","bearing","pitch","position"],extract:["width","height","longitude","latitude","zoom","bearing","pitch","position"],required:["width","height","latitude","longitude","zoom"]}),this.opts={...Wt,...t}}interpolateProps(t,s,o){const i=function(t,s,o,i){const{startZoom:r,startCenterXY:e,uDelta:n,w0:a,u1:h,S:c,rho:u,rho2:l,r0:p}=et(t,s,i);if(h<.01){const i={};for(const r of it)i[r]=m(t[r],s[r],o);return i}const d=o*c,M=Math.cosh(p)/Math.cosh(p+u*d),v=a*((Math.cosh(p)*Math.tanh(p+u*d)-Math.sinh(p))/l)/h,b=r+w(1/M),x=g([],n,v);f(x,x,e);const y=P(x);return{longitude:y[0],latitude:y[1],zoom:b}}(t,s,o,this.opts);for(const r in Jt)i[r]=tt(t[r]||Jt[r],s[r]||Jt[r],o);return i}getDuration(t,s){let{transitionDuration:o}=s;return"auto"===o&&(o=function(t,s,o){const i={...rt,...o},{screenSpeed:r,speed:e,maxDuration:n}=i,{S:a,rho:h}=et(t,s,i),c=1e3*a;let u;return u=Number.isFinite(r)?c/(r/h):c/e,Number.isFinite(n)&&u>n?0:u}(t,s,this.opts)),o}}export{S as COORDINATE_SYSTEM,B as Controller,Z as DirectionalLight,Ft as FirstPersonController,It as FirstPersonView,Vt as FirstPersonViewport,Ht as FlyToInterpolator,N as LinearInterpolator,Bt as OrbitController,kt as OrbitView,Lt as OrbitViewport,$t as OrthographicController,Ut as OrthographicView,jt as OrthographicViewport,pt as PointLight,Ct as PostProcessEffect,Q as TransitionInterpolator,Y as View,D as Viewport,H as WebMercatorViewport,dt as _CameraLight,Yt as _GlobeController,Gt as _GlobeView,K as _GlobeViewport,bt as _SunLight}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,b as o}from"./p-jzneDarq.js";export{s as setNonce}from"./p-jzneDarq.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-aa410e64",[[769,"v-map-builder",{mapconfig:[1040]},null,{mapconfig:[{onMapConfigChanged:0}]}]]],["p-6b102336",[[769,"v-map-layer-terrain-geotiff",{loadState:[1537,"load-state"],url:[1],projection:[1],forceProjection:[4,"force-projection"],visible:[4],opacity:[2],zIndex:[2,"z-index"],nodata:[2],meshMaxError:[2,"mesh-max-error"],wireframe:[4],texture:[1],color:[16],colorMap:[1,"color-map"],valueRange:[16],elevationScale:[2,"elevation-scale"],renderMode:[1,"render-mode"],minZoom:[2,"min-zoom"],maxZoom:[2,"max-zoom"],tileSize:[2,"tile-size"],getError:[64],getLayerId:[64]},null,{url:[{onUrlChanged:0}],visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],projection:[{onPropertyChanged:0}],forceProjection:[{onPropertyChanged:0}],nodata:[{onPropertyChanged:0}],meshMaxError:[{onPropertyChanged:0}],wireframe:[{onPropertyChanged:0}],texture:[{onPropertyChanged:0}],color:[{onPropertyChanged:0}],colorMap:[{onPropertyChanged:0}],valueRange:[{onPropertyChanged:0}],elevationScale:[{onPropertyChanged:0}],renderMode:[{onPropertyChanged:0}],minZoom:[{onPropertyChanged:0}],maxZoom:[{onPropertyChanged:0}],tileSize:[{onPropertyChanged:0}]}]]],["p-c21c93fe",[[513,"v-map-layercontrol",{for:[1],layerGroups:[32]}]]],["p-09d10db0",[[769,"v-map",{flavour:[513],center:[1],zoom:[2],useDefaultImportMap:[4,"use-default-import-map"],cssMode:[1,"css-mode"],isMapProviderReady:[64],setView:[64]},null,{flavour:[{onFlavourChanged:0}]}],[513,"v-map-layer-osm",{loadState:[1537,"load-state"],visible:[516],opacity:[514],zIndex:[514,"z-index"],url:[513],getError:[64],getLayerId:[64]},null,{visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],url:[{onUrlChanged:0}]}],[769,"v-map-layergroup",{visible:[516],opacity:[514],basemapid:[513],getGroupId:[64]},null,{visible:[{onVisibleChanged:0}],basemapid:[{onBaseMapIdChanged:0}]}]]],["p-5eba6058",[[769,"v-map-layer-geojson",{loadState:[1537,"load-state"],geojson:[1025],url:[513],visible:[516],zIndex:[514,"z-index"],opacity:[514],fillColor:[513,"fill-color"],fillOpacity:[514,"fill-opacity"],strokeColor:[513,"stroke-color"],strokeWidth:[514,"stroke-width"],strokeOpacity:[514,"stroke-opacity"],pointRadius:[514,"point-radius"],pointColor:[513,"point-color"],iconUrl:[513,"icon-url"],iconSize:[513,"icon-size"],textProperty:[513,"text-property"],textColor:[513,"text-color"],textSize:[514,"text-size"],getLayerId:[64],getError:[64]},[[4,"styleReady","onStyleReady"]],{geojson:[{onGeoJsonChanged:0}],url:[{onUrlChanged:0}],visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],fillColor:[{onStyleChanged:0}],fillOpacity:[{onStyleChanged:0}],strokeColor:[{onStyleChanged:0}],strokeWidth:[{onStyleChanged:0}],strokeOpacity:[{onStyleChanged:0}],pointRadius:[{onStyleChanged:0}],pointColor:[{onStyleChanged:0}],iconUrl:[{onStyleChanged:0}],iconSize:[{onStyleChanged:0}],textProperty:[{onStyleChanged:0}],textColor:[{onStyleChanged:0}],textSize:[{onStyleChanged:0}]}],[513,"v-map-layer-geotiff",{loadState:[1537,"load-state"],url:[1],visible:[4],opacity:[2],zIndex:[2,"z-index"],nodata:[2],colorMap:[1,"color-map"],valueRange:[16],getError:[64],getLayerId:[64]},null,{url:[{onUrlChanged:0}],visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],nodata:[{onNodataChanged:0}],colorMap:[{onColorMapChanged:0}],valueRange:[{onValueRangeChanged:0}]}],[513,"v-map-layer-google",{loadState:[1537,"load-state"],mapType:[513,"map-type"],apiKey:[513,"api-key"],language:[513],region:[513],visible:[516],opacity:[514],scale:[513],maxZoom:[514,"max-zoom"],styles:[1025],libraries:[513],getError:[64]},null,{styles:[{parseStyles:0}]}],[513,"v-map-layer-scatterplot",{loadState:[1537,"load-state"],data:[513],url:[513],getFillColor:[513,"get-fill-color"],getRadius:[514,"get-radius"],opacity:[514],visible:[516],getError:[64]}],[769,"v-map-layer-terrain",{loadState:[1537,"load-state"],elevationData:[513,"elevation-data"],texture:[513],elevationDecoder:[513,"elevation-decoder"],wireframe:[516],color:[513],minZoom:[514,"min-zoom"],maxZoom:[514,"max-zoom"],meshMaxError:[514,"mesh-max-error"],visible:[516],opacity:[514],zIndex:[514,"z-index"],didLoad:[32],getError:[64],isReady:[64]},null,{visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],elevationData:[{onTerrainConfigChanged:0}],texture:[{onTerrainConfigChanged:0}],elevationDecoder:[{onTerrainConfigChanged:0}],wireframe:[{onTerrainConfigChanged:0}],color:[{onTerrainConfigChanged:0}],minZoom:[{onTerrainConfigChanged:0}],maxZoom:[{onTerrainConfigChanged:0}],meshMaxError:[{onTerrainConfigChanged:0}]}],[769,"v-map-layer-tile3d",{loadState:[1537,"load-state"],url:[513],tilesetOptions:[1,"tileset-options"],visible:[516],opacity:[514],zIndex:[514,"z-index"],didLoad:[32],isReady:[64],getError:[64]},[[4,"styleReady","onStyleReady"]],{url:[{onUrlChanged:0}],tilesetOptions:[{onTilesetOptionsChanged:0}],visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}]}],[769,"v-map-layer-wcs",{loadState:[1537,"load-state"],url:[513],coverageName:[513,"coverage-name"],format:[513],version:[513],projection:[513],resolutions:[513],params:[513],visible:[516],opacity:[514],zIndex:[514,"z-index"],didLoad:[32],getError:[64],isReady:[64]},null,{visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],url:[{onSourceChanged:0}],coverageName:[{onSourceChanged:0}],format:[{onSourceChanged:0}],version:[{onSourceChanged:0}],projection:[{onSourceChanged:0}],resolutions:[{onSourceChanged:0}],params:[{onSourceChanged:0}]}],[769,"v-map-layer-wfs",{loadState:[1537,"load-state"],url:[513],typeName:[513,"type-name"],version:[513],outputFormat:[513,"output-format"],srsName:[513,"srs-name"],params:[513],visible:[516],opacity:[514],zIndex:[514,"z-index"],didLoad:[32],getError:[64],isReady:[64]},[[4,"styleReady","onStyleReady"]],{visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],url:[{onSourceChanged:0}],typeName:[{onSourceChanged:0}],version:[{onSourceChanged:0}],outputFormat:[{onSourceChanged:0}],srsName:[{onSourceChanged:0}],params:[{onSourceChanged:0}]}],[513,"v-map-layer-wkt",{loadState:[1537,"load-state"],wkt:[513],url:[513],visible:[516],opacity:[514],zIndex:[514,"z-index"],fillColor:[513,"fill-color"],fillOpacity:[514,"fill-opacity"],strokeColor:[513,"stroke-color"],strokeWidth:[514,"stroke-width"],strokeOpacity:[514,"stroke-opacity"],pointRadius:[514,"point-radius"],pointColor:[513,"point-color"],iconUrl:[513,"icon-url"],iconSize:[513,"icon-size"],textProperty:[513,"text-property"],textColor:[513,"text-color"],textSize:[514,"text-size"],getError:[64],getLayerId:[64]},[[4,"styleReady","onStyleReady"]],{wkt:[{onWktChanged:0}],url:[{onUrlChanged:0}],visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],fillColor:[{onStyleChanged:0}],fillOpacity:[{onStyleChanged:0}],strokeColor:[{onStyleChanged:0}],strokeWidth:[{onStyleChanged:0}],strokeOpacity:[{onStyleChanged:0}],pointRadius:[{onStyleChanged:0}],pointColor:[{onStyleChanged:0}],iconUrl:[{onStyleChanged:0}],iconSize:[{onStyleChanged:0}],textProperty:[{onStyleChanged:0}],textColor:[{onStyleChanged:0}],textSize:[{onStyleChanged:0}]}],[513,"v-map-layer-wms",{loadState:[1537,"load-state"],url:[513],layers:[513],styles:[513],format:[513],transparent:[516],tiled:[516],visible:[516],opacity:[514],zIndex:[514,"z-index"],getError:[64]},null,{visible:[{onVisibleChanged:0}],opacity:[{onOpacityChanged:0}],zIndex:[{onZIndexChanged:0}],url:[{onUrlChanged:0}],layers:[{onLayersChanged:0}],styles:[{onStylesChanged:0}]}],[513,"v-map-layer-xyz",{loadState:[1537,"load-state"],url:[513],attributions:[513],maxZoom:[514,"max-zoom"],tileSize:[514,"tile-size"],subdomains:[513],visible:[516],opacity:[514],getError:[64]}],[769,"v-map-style",{format:[513],src:[513],content:[513],layerTargets:[513,"layer-targets"],autoApply:[516,"auto-apply"],parsedStyle:[32],isLoading:[32],error:[32],getStyle:[64],getLayerTargetIds:[64]},null,{src:[{onStyleSourceChanged:0}],content:[{onStyleSourceChanged:0}],format:[{onStyleSourceChanged:0}]}]]]],e))));
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/esm/loader.js';
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@npm9912/v-map",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "VMap Components",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
+
"collection:main": "dist/collection/index.js",
|
|
10
|
+
"unpkg": "dist/v-map/v-map.esm.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/v-map/v-map.esm.js",
|
|
14
|
+
"require": "./dist/v-map/v-map.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"./v-map-component": {
|
|
17
|
+
"types": "./dist/components/v-map-component.d.ts",
|
|
18
|
+
"import": "./dist/components/v-map-component.js"
|
|
19
|
+
},
|
|
20
|
+
"./loader": {
|
|
21
|
+
"types": "./loader/index.d.ts",
|
|
22
|
+
"import": "./loader/index.js",
|
|
23
|
+
"require": "./loader/index.cjs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"branches": [
|
|
27
|
+
"main"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/pt9912/v-map.git"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/",
|
|
38
|
+
"dist/v-map",
|
|
39
|
+
"dist/components",
|
|
40
|
+
"loader/"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"prebuild": "node scripts/gen-versions.mjs",
|
|
44
|
+
"build": "pnpm run typecheck && pnpm run lint && stencil build",
|
|
45
|
+
"build:dev": "cross-env NODE_ENV=development stencil build --dev",
|
|
46
|
+
"lint": "eslint src",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"docs:stencil": "stencil build --docs",
|
|
49
|
+
"docs:ts": "typedoc",
|
|
50
|
+
"docs:api": "node scripts/generate-api-docs.mjs",
|
|
51
|
+
"docs:build": "pnpm docs:stencil && pnpm docs:ts && pnpm docs:api && vitepress build docs",
|
|
52
|
+
"docs:dev": "vitepress dev docs",
|
|
53
|
+
"docs:preview": "vitepress preview docs",
|
|
54
|
+
"docs:pdf": "press-export-pdf export docs",
|
|
55
|
+
"start": "stencil build --dev --watch --serve",
|
|
56
|
+
"test": "pnpm run test:vitest && pnpm run test:vitest:browser",
|
|
57
|
+
"test:vitest": "stencil build --dev && vitest run --project spec",
|
|
58
|
+
"test:vitest:all": "stencil build --dev && node scripts/run-vitest-browser-retry.mjs run --browser.api.port=42153",
|
|
59
|
+
"test:vitest:unit": "vitest run --project unit --passWithNoTests",
|
|
60
|
+
"test:vitest:spec": "stencil build --dev && vitest run --project spec",
|
|
61
|
+
"test:vitest:browser": "stencil build --dev && node scripts/run-vitest-browser-retry.mjs run --project browser --browser.api.port=42153",
|
|
62
|
+
"test:vitest:coverage:browser": "stencil build --dev && node scripts/run-vitest-browser-retry.mjs run --project browser --coverage --browser.api.port=42153",
|
|
63
|
+
"test:vitest:coverage": "stencil build --dev && vitest run --project spec --project unit --coverage",
|
|
64
|
+
"test:vitest:unit:coverage": "stencil build --dev && vitest run --project unit --coverage",
|
|
65
|
+
"test:vitest:spec:coverage": "stencil build --dev && vitest run --project spec --coverage",
|
|
66
|
+
"test:vitest:coverage:all": "stencil build --dev && node scripts/run-vitest-browser-retry.mjs run --coverage --browser.api.port=42153",
|
|
67
|
+
"test:coverage": "pnpm run test:vitest:coverage",
|
|
68
|
+
"test:vitest:browser:watch": "stencil build --dev && vitest --project browser --watch --browser.api.port=42153",
|
|
69
|
+
"test.watch": "stencil build --dev && vitest --watch",
|
|
70
|
+
"generate": "stencil generate",
|
|
71
|
+
"storybook-reset": "node scripts/clean-storybook-cache.mjs && storybook dev -p 6006 --no-open",
|
|
72
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
73
|
+
"storybook:with-build": "pnpm run build && pnpm run storybook",
|
|
74
|
+
"build-storybook": "storybook build"
|
|
75
|
+
},
|
|
76
|
+
"pnpm": {
|
|
77
|
+
"overrides": {
|
|
78
|
+
"@docsearch/react": "4.0.0-beta.8",
|
|
79
|
+
"@docsearch/js": "4.0.0-beta.8",
|
|
80
|
+
"@docsearch/css": "4.0.0-beta.8"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@deck.gl/core": "^9.2.0",
|
|
85
|
+
"@deck.gl/extensions": "^9.2.0",
|
|
86
|
+
"@deck.gl/geo-layers": "^9.2.0",
|
|
87
|
+
"@deck.gl/json": "^9.2.0",
|
|
88
|
+
"@deck.gl/layers": "^9.2.0",
|
|
89
|
+
"@deck.gl/mesh-layers": "^9.2.0",
|
|
90
|
+
"cesium": "^1.133",
|
|
91
|
+
"leaflet": "^1.9",
|
|
92
|
+
"ol": "^10.6"
|
|
93
|
+
},
|
|
94
|
+
"peerDependenciesMeta": {
|
|
95
|
+
"ol": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"leaflet": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"cesium": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@mapbox/martini": "^0.2.0",
|
|
107
|
+
"@types/leaflet": "^1.9.21"
|
|
108
|
+
},
|
|
109
|
+
"devDependencies": {
|
|
110
|
+
"@deck.gl/core": "^9.2.11",
|
|
111
|
+
"@deck.gl/extensions": "^9.2.11",
|
|
112
|
+
"@deck.gl/geo-layers": "^9.2.11",
|
|
113
|
+
"@deck.gl/json": "^9.2.11",
|
|
114
|
+
"@deck.gl/layers": "^9.2.11",
|
|
115
|
+
"@deck.gl/mesh-layers": "^9.2.11",
|
|
116
|
+
"@docsearch/js": "4.0.0-beta.8",
|
|
117
|
+
"@docsearch/react": "4.0.0-beta.8",
|
|
118
|
+
"@gisatcz/deckgl-geolib": "^2.3.0",
|
|
119
|
+
"@loaders.gl/3d-tiles": "^4.3.4",
|
|
120
|
+
"@loaders.gl/core": "^4.3.4",
|
|
121
|
+
"@loaders.gl/gis": "^4.3.4",
|
|
122
|
+
"@loaders.gl/gltf": "^4.3.4",
|
|
123
|
+
"@loaders.gl/images": "^4.3.4",
|
|
124
|
+
"@loaders.gl/loader-utils": "4.3.4",
|
|
125
|
+
"@loaders.gl/mvt": "^4.3.4",
|
|
126
|
+
"@loaders.gl/schema": "^4.3.4",
|
|
127
|
+
"@loaders.gl/terrain": "^4.3.4",
|
|
128
|
+
"@loaders.gl/textures": "4.3.4",
|
|
129
|
+
"@loaders.gl/tiles": "^4.3.4",
|
|
130
|
+
"@loaders.gl/wms": "^4.3.4",
|
|
131
|
+
"@luma.gl/core": "^9.2.6",
|
|
132
|
+
"@math.gl/core": "^4.1.0",
|
|
133
|
+
"@npm9912/s-gml": "^1.7.1",
|
|
134
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
135
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
136
|
+
"@semantic-release/git": "^10.0.1",
|
|
137
|
+
"@semantic-release/github": "^10.0.5",
|
|
138
|
+
"@semantic-release/npm": "^12.0.1",
|
|
139
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
140
|
+
"@stencil/core": "^4.43.3",
|
|
141
|
+
"@stencil/storybook-plugin": "^0.6.1",
|
|
142
|
+
"@stencil/vitest": "^1.9.3",
|
|
143
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
144
|
+
"@storybook/addon-links": "^10.3.3",
|
|
145
|
+
"@storybook/addon-onboarding": "^10.3.3",
|
|
146
|
+
"@testing-library/dom": "^10.4.1",
|
|
147
|
+
"@types/geojson": "^7946.0.16",
|
|
148
|
+
"@types/js-yaml": "^4.0.9",
|
|
149
|
+
"@types/node": "^22.13.5",
|
|
150
|
+
"@ungap/global-this": "^0.4.4",
|
|
151
|
+
"@vitest/browser-playwright": "^4.1.2",
|
|
152
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
153
|
+
"@vitest/ui": "^4.1.2",
|
|
154
|
+
"caniuse-lite": "^1.0.30001741",
|
|
155
|
+
"cesium": "^1.139.1",
|
|
156
|
+
"cross-env": "^10.0.0",
|
|
157
|
+
"eslint": "^10.1.0",
|
|
158
|
+
"fast-xml-parser": "5.5.9",
|
|
159
|
+
"georaster": "1.6.0",
|
|
160
|
+
"georaster-layer-for-leaflet": "4.1.2",
|
|
161
|
+
"geostyler-lyrx-parser": "^1.4.0",
|
|
162
|
+
"geostyler-mapbox-parser": "^6.2.0",
|
|
163
|
+
"geostyler-qgis-parser": "^4.1.0",
|
|
164
|
+
"geostyler-sld-parser": "^8.4.1",
|
|
165
|
+
"geostyler-style": "^11.0.2",
|
|
166
|
+
"geotiff": "3.0.5",
|
|
167
|
+
"geotiff-geokeys-to-proj4": "^2024.4.13",
|
|
168
|
+
"js-yaml": "^4.1.0",
|
|
169
|
+
"jsdom": "^24.0.0",
|
|
170
|
+
"leaflet": "^1.9.4",
|
|
171
|
+
"memfs": "^4.57.1",
|
|
172
|
+
"ol": "^10.8.0",
|
|
173
|
+
"playwright": "^1.58.2",
|
|
174
|
+
"proj4": "^2.20.4",
|
|
175
|
+
"react": "^19.1.1",
|
|
176
|
+
"react-dom": "^19.1.1",
|
|
177
|
+
"semantic-release": "^24.0.0",
|
|
178
|
+
"snap-bbox": "^0.5.0",
|
|
179
|
+
"storybook": "^10.3.3",
|
|
180
|
+
"tiff-imagery-provider": "^2.17.1",
|
|
181
|
+
"typedoc": "^0.28.12",
|
|
182
|
+
"typedoc-plugin-markdown": "^4.8.1",
|
|
183
|
+
"typescript": "5.9.2",
|
|
184
|
+
"typescript-eslint": "^8.57.2",
|
|
185
|
+
"uuid": "^13.0.0",
|
|
186
|
+
"vite": "^8.0.3",
|
|
187
|
+
"vitepress": "^1.6.4",
|
|
188
|
+
"vitepress-export-pdf": "^1.0.0",
|
|
189
|
+
"vitest": "^4.1.2",
|
|
190
|
+
"wellknown": "^0.5.0"
|
|
191
|
+
},
|
|
192
|
+
"license": "MIT"
|
|
193
|
+
}
|