@eox/feedback 1.0.1 → 1.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/dist/eox-feedback.js +2451 -2402
- package/dist/eox-feedback.umd.cjs +49 -56
- package/package.json +10 -3
- package/src/feedback-button.js +22 -1
- package/src/main.js +153 -24
- package/types/drawtools/src/components/controller.d.ts +108 -0
- package/types/drawtools/src/components/controller.d.ts.map +1 -0
- package/types/drawtools/src/components/list.d.ts +144 -0
- package/types/drawtools/src/components/list.d.ts.map +1 -0
- package/types/drawtools/src/enums/draw.d.ts +9 -0
- package/types/drawtools/src/enums/draw.d.ts.map +1 -0
- package/types/drawtools/src/enums/index.d.ts +4 -0
- package/types/drawtools/src/enums/index.d.ts.map +1 -0
- package/types/drawtools/src/enums/stories.d.ts +26 -0
- package/types/drawtools/src/enums/stories.d.ts.map +1 -0
- package/types/drawtools/src/enums/test.d.ts +11 -0
- package/types/drawtools/src/enums/test.d.ts.map +1 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts +7 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts.map +1 -0
- package/types/drawtools/src/helpers/features-to-geojson.d.ts +12 -0
- package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +1 -0
- package/types/drawtools/src/helpers/features-to-wkt.d.ts +9 -0
- package/types/drawtools/src/helpers/features-to-wkt.d.ts.map +1 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +19 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -0
- package/types/drawtools/src/helpers/index.d.ts +4 -0
- package/types/drawtools/src/helpers/index.d.ts.map +1 -0
- package/types/drawtools/src/main.d.ts +270 -0
- package/types/drawtools/src/main.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/index.d.ts +2 -0
- package/types/drawtools/src/methods/controller/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts +12 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts +6 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts +20 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +12 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/index.d.ts +9 -0
- package/types/drawtools/src/methods/draw/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts +13 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts +10 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts +9 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts +11 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/first-update.d.ts +8 -0
- package/types/drawtools/src/methods/list/first-update.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts +10 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/index.d.ts +5 -0
- package/types/drawtools/src/methods/list/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts +9 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +1 -0
- package/types/drawtools/src/style.eox.d.ts.map +1 -0
- package/types/{enums → feedback/src/enums}/index.d.ts.map +1 -1
- package/types/{enums → feedback/src/enums}/test.d.ts.map +1 -1
- package/types/{feedback-button.d.ts → feedback/src/feedback-button.d.ts} +7 -1
- package/types/feedback/src/feedback-button.d.ts.map +1 -0
- package/types/{main.d.ts → feedback/src/main.d.ts} +15 -1
- package/types/feedback/src/main.d.ts.map +1 -0
- package/types/{style.d.ts.map → feedback/src/style.d.ts.map} +1 -1
- package/types/feedback/src/style.eox.d.ts +2 -0
- package/types/{style.eox.d.ts.map → feedback/src/style.eox.d.ts.map} +1 -1
- package/types/jsonform/src/custom-inputs/buttons.d.ts +20 -0
- package/types/jsonform/src/custom-inputs/buttons.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/index.d.ts +5 -0
- package/types/jsonform/src/custom-inputs/index.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/minmax.d.ts +16 -0
- package/types/jsonform/src/custom-inputs/minmax.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/spatial/editor.d.ts +19 -0
- package/types/jsonform/src/custom-inputs/spatial/editor.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/spatial/index.d.ts +3 -0
- package/types/jsonform/src/custom-inputs/spatial/index.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/spatial/utils.d.ts +22 -0
- package/types/jsonform/src/custom-inputs/spatial/utils.d.ts.map +1 -0
- package/types/jsonform/src/custom-inputs/spatial/validator.d.ts +16 -0
- package/types/jsonform/src/custom-inputs/spatial/validator.d.ts.map +1 -0
- package/types/jsonform/src/enums/editor.d.ts +11 -0
- package/types/jsonform/src/enums/editor.d.ts.map +1 -0
- package/types/jsonform/src/enums/index.d.ts +4 -0
- package/types/jsonform/src/enums/index.d.ts.map +1 -0
- package/types/jsonform/src/enums/stories.d.ts +38 -0
- package/types/jsonform/src/enums/stories.d.ts.map +1 -0
- package/types/jsonform/src/enums/test.d.ts +4 -0
- package/types/jsonform/src/enums/test.d.ts.map +1 -0
- package/types/jsonform/src/helpers/editor.d.ts +18 -0
- package/types/jsonform/src/helpers/editor.d.ts.map +1 -0
- package/types/jsonform/src/helpers/index.d.ts +2 -0
- package/types/jsonform/src/helpers/index.d.ts.map +1 -0
- package/types/jsonform/src/main.d.ts +157 -0
- package/types/jsonform/src/main.d.ts.map +1 -0
- package/types/jsonform/src/style.d.ts +2 -0
- package/types/jsonform/src/style.d.ts.map +1 -0
- package/types/jsonform/src/style.eox.d.ts +2 -0
- package/types/jsonform/src/style.eox.d.ts.map +1 -0
- package/types/map/src/components/compare.d.ts +31 -0
- package/types/map/src/components/compare.d.ts.map +1 -0
- package/types/map/src/components/tooltip.d.ts +41 -0
- package/types/map/src/components/tooltip.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts +21 -0
- package/types/map/src/controls/controls.d.ts.map +1 -0
- package/types/map/src/controls/geo-location.d.ts +41 -0
- package/types/map/src/controls/geo-location.d.ts.map +1 -0
- package/types/map/src/controls/loading-indicator.d.ts +20 -0
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -0
- package/types/map/src/custom/layers/MapboxStyle.d.ts +13 -0
- package/types/map/src/custom/layers/MapboxStyle.d.ts.map +1 -0
- package/types/map/src/custom/sources/Cluster.d.ts +20 -0
- package/types/map/src/custom/sources/Cluster.d.ts.map +1 -0
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts +28 -0
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -0
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts +35 -0
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -0
- package/types/map/src/enums/index.d.ts +2 -0
- package/types/map/src/enums/index.d.ts.map +1 -0
- package/types/map/src/enums/map.d.ts +5 -0
- package/types/map/src/enums/map.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts +15 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -0
- package/types/map/src/helpers/cancel-animation.d.ts +7 -0
- package/types/map/src/helpers/cancel-animation.d.ts.map +1 -0
- package/types/map/src/helpers/center.d.ts +12 -0
- package/types/map/src/helpers/center.d.ts.map +1 -0
- package/types/map/src/helpers/cluster-explode.d.ts +38 -0
- package/types/map/src/helpers/cluster-explode.d.ts.map +1 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts +12 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -0
- package/types/map/src/helpers/draw.d.ts +22 -0
- package/types/map/src/helpers/draw.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts +32 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -0
- package/types/map/src/helpers/index.d.ts +17 -0
- package/types/map/src/helpers/index.d.ts.map +1 -0
- package/types/map/src/helpers/interactions.d.ts +16 -0
- package/types/map/src/helpers/interactions.d.ts.map +1 -0
- package/types/map/src/helpers/layer.d.ts +24 -0
- package/types/map/src/helpers/layer.d.ts.map +1 -0
- package/types/map/src/helpers/parse-feature.d.ts +8 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -0
- package/types/map/src/helpers/parse-text.d.ts +45 -0
- package/types/map/src/helpers/parse-text.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts +8 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection.d.ts +11 -0
- package/types/map/src/helpers/register-projection.d.ts.map +1 -0
- package/types/map/src/helpers/select.d.ts +95 -0
- package/types/map/src/helpers/select.d.ts.map +1 -0
- package/types/map/src/helpers/tile-grid.d.ts +10 -0
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -0
- package/types/map/src/helpers/transform.d.ts +19 -0
- package/types/map/src/helpers/transform.d.ts.map +1 -0
- package/types/map/src/layers.d.ts +125 -0
- package/types/map/src/layers.d.ts.map +1 -0
- package/types/map/src/main.d.ts +459 -0
- package/types/map/src/main.d.ts.map +1 -0
- package/types/map/src/methods/map/add-update-layer.d.ts +13 -0
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -0
- package/types/map/src/methods/map/animate-to-state.d.ts +7 -0
- package/types/map/src/methods/map/animate-to-state.d.ts.map +1 -0
- package/types/map/src/methods/map/first-updated.d.ts +9 -0
- package/types/map/src/methods/map/first-updated.d.ts.map +1 -0
- package/types/map/src/methods/map/getters.d.ts +22 -0
- package/types/map/src/methods/map/getters.d.ts.map +1 -0
- package/types/map/src/methods/map/index.d.ts +7 -0
- package/types/map/src/methods/map/index.d.ts.map +1 -0
- package/types/map/src/methods/map/remove.d.ts +22 -0
- package/types/map/src/methods/map/remove.d.ts.map +1 -0
- package/types/map/src/methods/map/setters.d.ts +82 -0
- package/types/map/src/methods/map/setters.d.ts.map +1 -0
- package/types/map/src/plugins/globe/index.d.ts +6 -0
- package/types/map/src/plugins/globe/index.d.ts.map +1 -0
- package/types/map/src/plugins/globe/methods.d.ts +8 -0
- package/types/map/src/plugins/globe/methods.d.ts.map +1 -0
- package/types/map/src/plugins/globe/openglobus.d.ts +16 -0
- package/types/map/src/plugins/globe/openglobus.d.ts.map +1 -0
- package/types/map/src/types.d.ts +178 -0
- package/types/map/src/types.d.ts.map +1 -0
- package/types/feedback-button.d.ts.map +0 -1
- package/types/main.d.ts.map +0 -1
- /package/types/{style.eox.d.ts → drawtools/src/style.eox.d.ts} +0 -0
- /package/types/{enums → feedback/src/enums}/index.d.ts +0 -0
- /package/types/{enums → feedback/src/enums}/test.d.ts +0 -0
- /package/types/{style.d.ts → feedback/src/style.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,yCAHW,OAAO,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,GAChC,OAAO,kBAAkB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,SAAS,CA+CnG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms coordinates to a given projection.
|
|
3
|
+
* If no `destination` is defined, the coordinate is transformed to EPSG:4326
|
|
4
|
+
* @param {import('ol/coordinate').Coordinate} coordinate
|
|
5
|
+
* @param {import('ol/proj').ProjectionLike} source
|
|
6
|
+
* @param {import('ol/proj').ProjectionLike} destination
|
|
7
|
+
* @returns {import('ol/coordinate').Coordinate}
|
|
8
|
+
*/
|
|
9
|
+
export function transform(coordinate: import("ol/coordinate").Coordinate, source: import("ol/proj").ProjectionLike, destination?: import("ol/proj").ProjectionLike): import("ol/coordinate").Coordinate;
|
|
10
|
+
/**
|
|
11
|
+
* Transforms an extent to a given projection.
|
|
12
|
+
* Uf no `destination` is defined, the extent is transformed to EPSG:4326.
|
|
13
|
+
* @param {import('ol/extent').Extent} extent
|
|
14
|
+
* @param {import('ol/proj').ProjectionLike} source
|
|
15
|
+
* @param {import('ol/proj').ProjectionLike=} destination
|
|
16
|
+
* @returns {import('ol/extent').Extent}
|
|
17
|
+
*/
|
|
18
|
+
export function transformExtent(extent: import("ol/extent").Extent, source: import("ol/proj").ProjectionLike, destination?: import("ol/proj").ProjectionLike | undefined): import("ol/extent").Extent;
|
|
19
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/transform.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,sCALW,OAAO,eAAe,EAAE,UAAU,UAClC,OAAO,SAAS,EAAE,cAAc,gBAChC,OAAO,SAAS,EAAE,cAAc,GAC9B,OAAO,eAAe,EAAE,UAAU,CAO9C;AAED;;;;;;;GAOG;AACH,wCALW,OAAO,WAAW,EAAE,MAAM,UAC1B,OAAO,SAAS,EAAE,cAAc,gBAChC,OAAO,SAAS,EAAE,cAAc,YAAC,GAC/B,OAAO,WAAW,EAAE,MAAM,CAOtC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
export type OLBasicFormats = {
|
|
2
|
+
GeoJSON: typeof import("ol/format/GeoJSON").default;
|
|
3
|
+
MVT: typeof import("ol/format/MVT").default;
|
|
4
|
+
};
|
|
5
|
+
export type OLAdvancedFormats = {
|
|
6
|
+
EsriJSON: typeof import("ol/format/EsriJSON").default;
|
|
7
|
+
GML: typeof import("ol/format/GML").default;
|
|
8
|
+
GPX: typeof import("ol/format/GPX").default;
|
|
9
|
+
IGC: typeof import("ol/format/IGC").default;
|
|
10
|
+
IIIFInfo: typeof import("ol/format/IIIFInfo").default;
|
|
11
|
+
KML: typeof import("ol/format/KML").default;
|
|
12
|
+
OWS: typeof import("ol/format/OWS").default;
|
|
13
|
+
Polyline: typeof import("ol/format/Polyline").default;
|
|
14
|
+
TopoJSON: typeof import("ol/format/TopoJSON").default;
|
|
15
|
+
WFS: typeof import("ol/format/WFS").default;
|
|
16
|
+
WKB: typeof import("ol/format/WKB").default;
|
|
17
|
+
WKT: typeof import("ol/format/WKT").default;
|
|
18
|
+
WMSCapabilities: typeof import("ol/format/WMSCapabilities").default;
|
|
19
|
+
WMSGetFeatureInfo: typeof import("ol/format/WMSGetFeatureInfo").default;
|
|
20
|
+
WMTSCapabilities: typeof import("ol/format/WMTSCapabilities").default;
|
|
21
|
+
};
|
|
22
|
+
export type OLBasicLayers = {
|
|
23
|
+
Group: typeof import("ol/layer/Group").default;
|
|
24
|
+
Image: typeof import("ol/layer/Image").default;
|
|
25
|
+
Tile: typeof import("ol/layer/Tile").default;
|
|
26
|
+
Vector: typeof import("ol/layer/Vector").default;
|
|
27
|
+
VectorTile: typeof import("ol/layer/VectorTile").default;
|
|
28
|
+
};
|
|
29
|
+
export type OLAdvancedLayers = {
|
|
30
|
+
Graticule: typeof import("ol/layer/Graticule").default;
|
|
31
|
+
Heatmap: typeof import("ol/layer/Heatmap").default;
|
|
32
|
+
Layer: typeof import("ol/layer/Layer").default;
|
|
33
|
+
VectorImage: typeof import("ol/layer/VectorImage").default;
|
|
34
|
+
WebGLPoints: typeof import("ol/layer/WebGLPoints").default;
|
|
35
|
+
WebGLTile: typeof import("ol/layer/WebGLTile").default;
|
|
36
|
+
WebGLVector: typeof import("ol/layer/WebGLVector").default;
|
|
37
|
+
STAC: typeof import("ol-stac").default;
|
|
38
|
+
MapboxStyle: typeof import("./custom/layers/MapboxStyle.js").default;
|
|
39
|
+
};
|
|
40
|
+
export type OLBasicSources = {
|
|
41
|
+
ImageWMS: typeof import("ol/source/ImageWMS").default;
|
|
42
|
+
OSM: typeof import("ol/source/OSM").default;
|
|
43
|
+
Tile: typeof import("ol/source/Tile").default;
|
|
44
|
+
TileWMS: typeof import("ol/source/TileWMS").default;
|
|
45
|
+
Vector: typeof import("ol/source/Vector").default;
|
|
46
|
+
VectorTile: typeof import("ol/source/VectorTile").default;
|
|
47
|
+
WMTS: typeof import("ol/source/WMTS").default;
|
|
48
|
+
XYZ: typeof import("ol/source/XYZ").default;
|
|
49
|
+
};
|
|
50
|
+
export type OLAdvancedSources = {
|
|
51
|
+
BingMaps: typeof import("ol/source/BingMaps").default;
|
|
52
|
+
CartoDB: typeof import("ol/source/CartoDB").default;
|
|
53
|
+
DataTile: typeof import("ol/source/DataTile").default;
|
|
54
|
+
GeoTIFF: typeof import("ol/source/GeoTIFF").default;
|
|
55
|
+
Google: typeof import("ol/source/Google").default;
|
|
56
|
+
IIIF: typeof import("ol/source/IIIF").default;
|
|
57
|
+
Image: typeof import("ol/source/Image").default;
|
|
58
|
+
ImageArcGISRest: typeof import("ol/source/ImageArcGISRest").default;
|
|
59
|
+
ImageCanvas: typeof import("ol/source/ImageCanvas").default;
|
|
60
|
+
ImageMapGuide: typeof import("ol/source/ImageMapGuide").default;
|
|
61
|
+
ImageStatic: typeof import("ol/source/ImageStatic").default;
|
|
62
|
+
ImageTile: typeof import("ol/source/ImageTile").default;
|
|
63
|
+
OGCMapTile: typeof import("ol/source/OGCMapTile").default;
|
|
64
|
+
OGCVectorTile: typeof import("ol/source/OGCVectorTile").default;
|
|
65
|
+
Raster: typeof import("ol/source/Raster").default;
|
|
66
|
+
Source: typeof import("ol/source/Source").default;
|
|
67
|
+
StadiaMaps: typeof import("ol/source/StadiaMaps").default;
|
|
68
|
+
TileArcGISRest: typeof import("ol/source/TileArcGISRest").default;
|
|
69
|
+
TileDebug: typeof import("ol/source/TileDebug").default;
|
|
70
|
+
TileImage: typeof import("ol/source/TileImage").default;
|
|
71
|
+
TileJSON: typeof import("ol/source/TileJSON").default;
|
|
72
|
+
UrlTile: typeof import("ol/source/UrlTile").default;
|
|
73
|
+
UTFGrid: typeof import("ol/source/UTFGrid").default;
|
|
74
|
+
Zoomify: typeof import("ol/source/Zoomify").default;
|
|
75
|
+
WMTSCapabilities: typeof import("./custom/sources/WMTSCapabilities").default;
|
|
76
|
+
FlatGeoBuf: typeof import("./custom/sources/FlatGeoBuf").default;
|
|
77
|
+
Cluster: typeof import("./custom/sources/Cluster").default;
|
|
78
|
+
};
|
|
79
|
+
export type OLSources = OLBasicSources & OLAdvancedSources;
|
|
80
|
+
export type OLLayers = OLBasicLayers & OLAdvancedLayers;
|
|
81
|
+
export type OLFormats = OLBasicFormats & OLAdvancedFormats;
|
|
82
|
+
export type EOxFormatType<F extends keyof OLFormats> = F | ({
|
|
83
|
+
type: F;
|
|
84
|
+
} & ConstructorParameters<OLFormats[F]>[0]);
|
|
85
|
+
export type EOxFormat = EOxFormatType<"EsriJSON"> | EOxFormatType<"GeoJSON"> | EOxFormatType<"GML"> | EOxFormatType<"GPX"> | EOxFormatType<"IGC"> | EOxFormatType<"KML"> | EOxFormatType<"MVT"> | EOxFormatType<"OWS"> | EOxFormatType<"TopoJSON"> | EOxFormatType<"WFS"> | EOxFormatType<"WKT"> | EOxFormatType<"WMSCapabilities"> | EOxFormatType<"WMSGetFeatureInfo"> | EOxFormatType<"WMTSCapabilities"> | EOxFormatType<"Polyline"> | EOxFormatType<"IIIFInfo"> | EOxFormatType<"WKB">;
|
|
86
|
+
type OlSourceOption<S extends keyof OLSources> = Omit<ConstructorParameters<OLSources[S]>[0], "map" | "layer">;
|
|
87
|
+
type OlLayerOption<T extends keyof OLLayers> = Omit<Omit<ConstructorParameters<OLLayers[T]>[0], "properties">, "source" | "layers" | "map">;
|
|
88
|
+
export type EoxSource<S extends keyof OLSources> = (S extends "WMTS" ? OlSourceOption<S> : OlSourceOption<S> extends {
|
|
89
|
+
format?: any;
|
|
90
|
+
} ? Omit<OlSourceOption<S>, "format"> & {
|
|
91
|
+
format?: EOxFormat;
|
|
92
|
+
} : OlSourceOption<S> extends {
|
|
93
|
+
source?: any;
|
|
94
|
+
} ? Omit<OlSourceOption<S>, "source"> & {
|
|
95
|
+
source?: EoxSource<keyof OLSources>;
|
|
96
|
+
} : OlSourceOption<S>) & {
|
|
97
|
+
type: S;
|
|
98
|
+
projection?: import("ol/proj").ProjectionLike;
|
|
99
|
+
};
|
|
100
|
+
type SourceProperties<S extends keyof OLSources> = {
|
|
101
|
+
source?: EoxSource<S>;
|
|
102
|
+
sources?: EoxSource<S>[];
|
|
103
|
+
};
|
|
104
|
+
export type EOxLayerType<T extends keyof OLLayers, S extends keyof OLSources = never> = (OlLayerOption<T> extends {
|
|
105
|
+
sources?: any;
|
|
106
|
+
} ? Omit<OlLayerOption<T>, "sources"> & {
|
|
107
|
+
sources?: EoxSource<S>[];
|
|
108
|
+
} : OlLayerOption<T>) & {
|
|
109
|
+
type: T;
|
|
110
|
+
zIndex?: number;
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
opacity?: number;
|
|
113
|
+
properties?: {
|
|
114
|
+
id: string;
|
|
115
|
+
[key: string]: any;
|
|
116
|
+
};
|
|
117
|
+
interactions?: T extends "Vector" | "VectorTile" ? Array<import("./types").EOxInteraction> : never;
|
|
118
|
+
} & (S extends keyof OLSources ? SourceProperties<S> : {});
|
|
119
|
+
export type EOxLayerTypeGroup = Omit<EOxLayerType<"Group", keyof OLSources>, "layers"> & {
|
|
120
|
+
layers: EoxLayer[];
|
|
121
|
+
};
|
|
122
|
+
export type EOxLayerTypeMapboxStyle = Omit<EOxLayerType<"MapboxStyle", keyof OLSources>, "source" | "sources">;
|
|
123
|
+
export type EoxLayer = EOxLayerType<"Vector", "Vector"> | EOxLayerType<"Vector", "FlatGeoBuf"> | EOxLayerType<"Vector", "Cluster"> | EOxLayerType<"VectorTile", "VectorTile"> | EOxLayerType<"WebGLTile", "GeoTIFF"> | EOxLayerType<"Tile", "OSM"> | EOxLayerType<"Tile", "WMTSCapabilities"> | EOxLayerType<"Tile", "StadiaMaps"> | EOxLayerType<"Tile", "WMTS"> | EOxLayerType<"Tile", "XYZ"> | EOxLayerType<"Tile", "TileJSON"> | EOxLayerType<"Tile", "TileArcGISRest"> | EOxLayerType<"Tile", "TileDebug"> | EOxLayerType<"Tile", "TileImage"> | EOxLayerType<"Tile", "TileWMS"> | EOxLayerType<"Tile", "UrlTile"> | EOxLayerType<"Tile", "BingMaps"> | EOxLayerType<"Image", "Image"> | EOxLayerType<"Image", "ImageCanvas"> | EOxLayerType<"Image", "ImageStatic"> | EOxLayerType<"Image", "ImageWMS"> | EOxLayerType<"Image", "Raster"> | EOxLayerType<"Image", "IIIF"> | EOxLayerType<"STAC"> | EOxLayerTypeMapboxStyle | EOxLayerTypeGroup;
|
|
124
|
+
export {};
|
|
125
|
+
//# sourceMappingURL=layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../../map/src/layers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,cAAc,mBAAmB,EAAE,OAAO,CAAC;IACpD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,cAAc,oBAAoB,EAAE,OAAO,CAAC;IACtD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CA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YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,GACpC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,GACjC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,GAC7B,YAAY,CAAC,MAAM,CAAC,GACpB,uBAAuB,GACvB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("./layers").EoxLayer} EoxLayer
|
|
3
|
+
* @typedef {import("./types").EOxAnimationOptions} EOxAnimationOptions
|
|
4
|
+
* @typedef {import("./types").ControlDictionary} ControlDictionary
|
|
5
|
+
* @typedef {import("./types").ConfigObject} ConfigObject
|
|
6
|
+
* @typedef {import("./types").ProjectionLike} ProjectionLike
|
|
7
|
+
* @typedef {import("./types").AnyLayerWithSource} AnyLayerWithSource
|
|
8
|
+
* */
|
|
9
|
+
/**
|
|
10
|
+
* The `eox-map` element is a powerful wrapper around [OpenLayers](https://openlayers.org/) that provides a declarative, highly configurable map element for web applications. It supports a wide range of layer types, sources, controls, and advanced features, making it suitable for interactive mapping, data visualization, and geospatial analysis.
|
|
11
|
+
*
|
|
12
|
+
* ## Basic usage:
|
|
13
|
+
*
|
|
14
|
+
* ```
|
|
15
|
+
* import "@eox/map"
|
|
16
|
+
*
|
|
17
|
+
* <eox-map [...]></eox-map>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Some basic layers, sources and formats are included in the default bundle, for advanced usage it is
|
|
21
|
+
* required to import the `advancedLayersAndSources` plugin.
|
|
22
|
+
*
|
|
23
|
+
* Included in the base bundle:
|
|
24
|
+
* - Formats: `GeoJSON`, `MVT`
|
|
25
|
+
* - Layers: `Group`, `Image`, `Tile`, `Vector`, `VectorTile`
|
|
26
|
+
* - Sources: `ImageWMS`, `OSM`, `Tile`, `TileWMS`, `Vector`, `VectorTile`, `WMTS`, `XYZ`
|
|
27
|
+
*
|
|
28
|
+
* In order to use the rest of the layers and sources provided by OpenLayers, import the plugin as well:
|
|
29
|
+
*
|
|
30
|
+
* ```
|
|
31
|
+
* import "@eox/map/src/plugins/advancedLayersAndSources"
|
|
32
|
+
* import "@eox/map"
|
|
33
|
+
*
|
|
34
|
+
* <eox-map [...]></eox-map>
|
|
35
|
+
* ```
|
|
36
|
+
* Included in the advanced plugin bundle:
|
|
37
|
+
* - Layers:
|
|
38
|
+
* - All OpenLayers layer types
|
|
39
|
+
* - [`STAC`](https://github.com/m-mohr/ol-stac)
|
|
40
|
+
* - Sources:
|
|
41
|
+
* - All OpenLayers source types
|
|
42
|
+
* - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)
|
|
43
|
+
* - Reprojection through [proj4](https://github.com/proj4js/proj4js)
|
|
44
|
+
*
|
|
45
|
+
* For usage and story examples, see the Storybook stories in `/elements/map/stories`.
|
|
46
|
+
*
|
|
47
|
+
* ## Features
|
|
48
|
+
*
|
|
49
|
+
* - **Layer Support:** Easily add and configure layers such as Tile, Vector, VectorTile, Image, Group, and advanced types like STAC, GeoTIFF, MapboxStyle, and FlatGeoBuf. Layers are passed via the `layers` property as an array of configuration objects.
|
|
50
|
+
* - **Source Formats:** Supports GeoJSON, MVT, OSM, TileWMS, WMTS, XYZ, ImageWMS, and more. Advanced sources (e.g., WMTSCapabilities) are available via plugin import.
|
|
51
|
+
* - **Controls:** Add built-in or custom controls (Zoom, Geolocation, LoadingIndicator, etc.) using the `controls` property. Controls can be configured and styled for various use cases.
|
|
52
|
+
* - **Interactions:** Enable feature selection, hover, click, cluster-explode, and highlight interactions. Interactions are configured per layer and can trigger custom events.
|
|
53
|
+
* - **Tooltips:** Built-in tooltip support via `<eox-map-tooltip></eox-map-tooltip>`, with options for property transformation, custom tooltips, and pixel/band value display for raster layers.
|
|
54
|
+
* - **Layer Groups:** Organize layers into groups for complex compositions and hierarchical management.
|
|
55
|
+
* - **Animations:** Animate view changes (zoom, center, extent) using the `animationOptions` property.
|
|
56
|
+
* - **Projection & Transformation:** Change map projection, register custom projections, and transform coordinates/extents using helper methods.
|
|
57
|
+
* - **Sync & Compare:** Synchronize multiple maps using the `sync` property, and compare maps side-by-side with `<eox-map-compare>`.
|
|
58
|
+
* - **Config Object:** Pass a configuration object for advanced map setup and dynamic updates.
|
|
59
|
+
* - **Scroll Prevention:** Prevent scroll/drag interactions for embedded maps using the `preventScroll` property.
|
|
60
|
+
* - **Globe View:** Interactive 3D globe by using "globe" projection property.
|
|
61
|
+
*
|
|
62
|
+
* ## Events
|
|
63
|
+
*
|
|
64
|
+
* - `clusterSelect`: Fired when a cluster is selected.
|
|
65
|
+
* - `loadend`: Fired when the map has finished loading.
|
|
66
|
+
* - `mapmounted`: Fired when the map is successfully mounted.
|
|
67
|
+
* - `select`: Fired when a feature is selected.
|
|
68
|
+
* - `layerschanged`: Fired when the layers have been changed.
|
|
69
|
+
*
|
|
70
|
+
* ## Methods
|
|
71
|
+
*
|
|
72
|
+
* - `registerProjection`, `registerProjectionFromCode`: Register custom or EPSG projections.
|
|
73
|
+
* - `getLayerById`, `getFlatLayersArray`: Retrieve layers by ID or as a flat array.
|
|
74
|
+
* - `addOrUpdateLayer`, `removeInteraction`, `removeSelect`, `removeControl`: Manage layers and interactions programmatically.
|
|
75
|
+
* - `parseFeature`: Parses a feature from the input data.
|
|
76
|
+
* - `parseTextToFeature`: Parses text into a feature.
|
|
77
|
+
*
|
|
78
|
+
* Usage: `document.querySelector("eox-map").registerProjection([...]);`
|
|
79
|
+
*
|
|
80
|
+
* ## Additional Helper Methods
|
|
81
|
+
*
|
|
82
|
+
* - `buffer`: Applies a buffer around an extent
|
|
83
|
+
* - `transform`, `transformExtent`: Transform coordinates and extents between projections.
|
|
84
|
+
*
|
|
85
|
+
* Usage: `import { buffer, transform, transformExtent } from "@eox/map";`
|
|
86
|
+
*
|
|
87
|
+
* @element eox-map
|
|
88
|
+
* @fires {CustomEvent} clusterSelect - A cluster is selected
|
|
89
|
+
* @fires {CustomEvent} loadend - The map has finished loading
|
|
90
|
+
* @fires {CustomEvent} mapmounted - The map has been successfully mounted
|
|
91
|
+
* @fires {CustomEvent} select - A feature is selected
|
|
92
|
+
* @fires {CustomEvent} layerschanged - The layers have been changed
|
|
93
|
+
*/
|
|
94
|
+
export class EOxMap extends LitElement {
|
|
95
|
+
static get properties(): {
|
|
96
|
+
map: {
|
|
97
|
+
attribute: boolean;
|
|
98
|
+
state: boolean;
|
|
99
|
+
};
|
|
100
|
+
config: {
|
|
101
|
+
attribute: boolean;
|
|
102
|
+
type: ObjectConstructor;
|
|
103
|
+
};
|
|
104
|
+
center: {
|
|
105
|
+
attribute: boolean;
|
|
106
|
+
type: ArrayConstructor;
|
|
107
|
+
};
|
|
108
|
+
layers: {
|
|
109
|
+
attribute: boolean;
|
|
110
|
+
type: ArrayConstructor;
|
|
111
|
+
};
|
|
112
|
+
zoom: {
|
|
113
|
+
attribute: boolean;
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
};
|
|
116
|
+
animationOptions: {
|
|
117
|
+
attribute: boolean;
|
|
118
|
+
type: ObjectConstructor;
|
|
119
|
+
};
|
|
120
|
+
controls: {
|
|
121
|
+
attribute: boolean;
|
|
122
|
+
type: ObjectConstructor;
|
|
123
|
+
};
|
|
124
|
+
interactions: {
|
|
125
|
+
attribute: boolean;
|
|
126
|
+
type: ObjectConstructor;
|
|
127
|
+
};
|
|
128
|
+
lonLatCenter: {
|
|
129
|
+
attribute: boolean;
|
|
130
|
+
type: ArrayConstructor;
|
|
131
|
+
};
|
|
132
|
+
lonLatExtent: {
|
|
133
|
+
attribute: boolean;
|
|
134
|
+
type: ArrayConstructor;
|
|
135
|
+
};
|
|
136
|
+
mapControls: {
|
|
137
|
+
attribute: boolean;
|
|
138
|
+
state: boolean;
|
|
139
|
+
type: ObjectConstructor;
|
|
140
|
+
};
|
|
141
|
+
preventScroll: {
|
|
142
|
+
attribute: string;
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
};
|
|
145
|
+
projection: {
|
|
146
|
+
attribute: string;
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
};
|
|
149
|
+
selectInteractions: {
|
|
150
|
+
attribute: boolean;
|
|
151
|
+
state: boolean;
|
|
152
|
+
type: ObjectConstructor;
|
|
153
|
+
};
|
|
154
|
+
sync: {
|
|
155
|
+
attribute: string;
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
};
|
|
158
|
+
zoomExtent: {
|
|
159
|
+
attribute: boolean;
|
|
160
|
+
type: ArrayConstructor;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* The OpenLayers map instance.
|
|
165
|
+
*
|
|
166
|
+
* @type {import("ol/Map").default}
|
|
167
|
+
*/
|
|
168
|
+
map: import("ol/Map").default;
|
|
169
|
+
/**
|
|
170
|
+
* Object to store various map interactions (e.g., drag, zoom).
|
|
171
|
+
*
|
|
172
|
+
* @type {Object.<string, import("ol/interaction/Interaction").default>}
|
|
173
|
+
*/
|
|
174
|
+
interactions: {
|
|
175
|
+
[x: string]: import("ol/interaction").Interaction;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Object to store selection interactions for the map.
|
|
179
|
+
*
|
|
180
|
+
* @type {Object.<string, import("./helpers/select").EOxSelectInteraction>}
|
|
181
|
+
*/
|
|
182
|
+
selectInteractions: {
|
|
183
|
+
[x: string]: import("./helpers").EOxSelectInteraction;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Object to store map controls (e.g., custom buttons, geolocation).
|
|
187
|
+
*
|
|
188
|
+
* @type {Object.<string, import("ol/control/Control").default>}
|
|
189
|
+
*/
|
|
190
|
+
mapControls: {
|
|
191
|
+
[x: string]: import("ol/control/Control").default;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The globe instance when using globe projection.
|
|
195
|
+
* todo: define proper type
|
|
196
|
+
* @type {any|null}
|
|
197
|
+
*/
|
|
198
|
+
globe: any | null;
|
|
199
|
+
/**
|
|
200
|
+
* Sets the center of the map. If the new center is valid, updates the map's view.
|
|
201
|
+
*
|
|
202
|
+
* @param {Array<number>} center - The new center coordinates [x, y].
|
|
203
|
+
*/
|
|
204
|
+
set center(center: Array<number>);
|
|
205
|
+
/**
|
|
206
|
+
* Gets the current center coordinates of the map.
|
|
207
|
+
*
|
|
208
|
+
* @type {Array<number>}
|
|
209
|
+
* @returns {Array<number>} The current center of the map.
|
|
210
|
+
*/
|
|
211
|
+
get center(): Array<number>;
|
|
212
|
+
/**
|
|
213
|
+
* Sets the configuration for the map.
|
|
214
|
+
*
|
|
215
|
+
* @param {ConfigObject} config - The configuration object.
|
|
216
|
+
*/
|
|
217
|
+
set config(config: ConfigObject);
|
|
218
|
+
/**
|
|
219
|
+
* Gets the current configuration of the map.
|
|
220
|
+
*
|
|
221
|
+
* @type {ConfigObject}
|
|
222
|
+
* @returns {ConfigObject} The map's configuration object.
|
|
223
|
+
*/
|
|
224
|
+
get config(): ConfigObject;
|
|
225
|
+
/**
|
|
226
|
+
* Gets the current center of the map in longitude and latitude.
|
|
227
|
+
*
|
|
228
|
+
* @type {Array<number>}
|
|
229
|
+
* @returns {Array<number>} The geographic center [longitude, latitude].
|
|
230
|
+
*/
|
|
231
|
+
get lonLatCenter(): Array<number>;
|
|
232
|
+
/**
|
|
233
|
+
* Gets the current extent of the map in longitude and latitude.
|
|
234
|
+
*
|
|
235
|
+
* @type {Array<number>}
|
|
236
|
+
* @returns {Array<number>} The geographic extent [minLon, minLat, maxLon, maxLat].
|
|
237
|
+
*/
|
|
238
|
+
get lonLatExtent(): Array<number>;
|
|
239
|
+
/**
|
|
240
|
+
* Sets the zoom level of the map and animates the change.
|
|
241
|
+
*
|
|
242
|
+
* @param {number} zoom - The new zoom level.
|
|
243
|
+
*/
|
|
244
|
+
set zoom(zoom: number);
|
|
245
|
+
/**
|
|
246
|
+
* Gets the current zoom level of the map.
|
|
247
|
+
*
|
|
248
|
+
* @type {number}
|
|
249
|
+
* @returns {number} The current zoom level.
|
|
250
|
+
*/
|
|
251
|
+
get zoom(): number;
|
|
252
|
+
/**
|
|
253
|
+
* Sets the zoom extent of the map.
|
|
254
|
+
*
|
|
255
|
+
* @param {import("ol/extent").Extent} extent - The new zoom extent.
|
|
256
|
+
*/
|
|
257
|
+
set zoomExtent(extent: import("ol/extent").Extent);
|
|
258
|
+
/**
|
|
259
|
+
* Gets the current extent of the map.
|
|
260
|
+
*
|
|
261
|
+
* @type {Array<number>}
|
|
262
|
+
* @returns {Array<number>} The extent in current map projection.
|
|
263
|
+
*/
|
|
264
|
+
get zoomExtent(): Array<number>;
|
|
265
|
+
/**
|
|
266
|
+
* Sets the controls for the map.
|
|
267
|
+
*
|
|
268
|
+
* @param {ControlDictionary} controls - An array of control configurations.
|
|
269
|
+
*/
|
|
270
|
+
set controls(controls: ControlDictionary);
|
|
271
|
+
/**
|
|
272
|
+
* Gets the current map controls.
|
|
273
|
+
*
|
|
274
|
+
* @type {ControlDictionary}
|
|
275
|
+
* @returns {ControlDictionary} The current controls applied to the map.
|
|
276
|
+
*/
|
|
277
|
+
get controls(): ControlDictionary;
|
|
278
|
+
/**
|
|
279
|
+
* Sets the layers for the map.
|
|
280
|
+
*
|
|
281
|
+
* @param {Array<EoxLayer>} layers - An array of layer configurations.
|
|
282
|
+
*/
|
|
283
|
+
set layers(layers: Array<EoxLayer>);
|
|
284
|
+
/**
|
|
285
|
+
* Gets the current layers of the map
|
|
286
|
+
*
|
|
287
|
+
* @returns {Array<EoxLayer>} The current layers applied to the map.
|
|
288
|
+
*/
|
|
289
|
+
get layers(): Array<EoxLayer>;
|
|
290
|
+
/**
|
|
291
|
+
* Enables or disables scroll interactions on the map.
|
|
292
|
+
*
|
|
293
|
+
* @param {boolean} preventScroll - Whether to prevent scroll interactions.
|
|
294
|
+
*/
|
|
295
|
+
set preventScroll(preventScroll: boolean);
|
|
296
|
+
/**
|
|
297
|
+
* Gets the current scroll interaction state.
|
|
298
|
+
*
|
|
299
|
+
* @type {boolean}
|
|
300
|
+
* @returns {boolean} `true` if scroll interactions are prevented, `false` otherwise.
|
|
301
|
+
*/
|
|
302
|
+
get preventScroll(): boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Sets animation options for map view changes.
|
|
305
|
+
*
|
|
306
|
+
* @param {EOxAnimationOptions} animationOptions - The animation options.
|
|
307
|
+
*/
|
|
308
|
+
set animationOptions(animationOptions: EOxAnimationOptions);
|
|
309
|
+
/**
|
|
310
|
+
* Gets the current animation options.
|
|
311
|
+
*
|
|
312
|
+
* @type {EOxAnimationOptions}
|
|
313
|
+
* @returns {EOxAnimationOptions} The current animation options for the map.
|
|
314
|
+
*/
|
|
315
|
+
get animationOptions(): EOxAnimationOptions;
|
|
316
|
+
/**
|
|
317
|
+
* Sets the map's projection.
|
|
318
|
+
*
|
|
319
|
+
* @param {ProjectionLike} projection - The projection code (e.g., "EPSG:3857") or "globe".
|
|
320
|
+
*/
|
|
321
|
+
set projection(projection: ProjectionLike);
|
|
322
|
+
/**
|
|
323
|
+
* Gets the current map projection.
|
|
324
|
+
*
|
|
325
|
+
* @type {ProjectionLike}
|
|
326
|
+
* @returns {ProjectionLike} The map's projection code or "globe" if globe is enabled.
|
|
327
|
+
*/
|
|
328
|
+
get projection(): ProjectionLike;
|
|
329
|
+
/**
|
|
330
|
+
* Gets the openlayer map projection.
|
|
331
|
+
*
|
|
332
|
+
* @type {ProjectionLike}
|
|
333
|
+
* @returns {ProjectionLike} The map's openlayer code
|
|
334
|
+
*/
|
|
335
|
+
get OLprojection(): ProjectionLike;
|
|
336
|
+
/**
|
|
337
|
+
* Sets the Whether the globe is enabled.
|
|
338
|
+
*
|
|
339
|
+
* @type {boolean}
|
|
340
|
+
* @returns {boolean} Whether the globe is enabled.
|
|
341
|
+
*/
|
|
342
|
+
set globeEnabled(globeEnabled: boolean);
|
|
343
|
+
/**
|
|
344
|
+
* Gets the Whether the globe is enabled.
|
|
345
|
+
*
|
|
346
|
+
* @type {boolean}
|
|
347
|
+
* @returns {boolean} Whether the globe is enabled.
|
|
348
|
+
*/
|
|
349
|
+
get globeEnabled(): boolean;
|
|
350
|
+
/**
|
|
351
|
+
* Sets the sync state for the map.
|
|
352
|
+
*
|
|
353
|
+
* @param {string} sync - The ID of the map to sync with.
|
|
354
|
+
*/
|
|
355
|
+
set sync(sync: string);
|
|
356
|
+
/**
|
|
357
|
+
* Gets the current sync state of the map.
|
|
358
|
+
*
|
|
359
|
+
* @type {string}
|
|
360
|
+
* @returns {string} The ID of the map that this map is synced with.
|
|
361
|
+
*/
|
|
362
|
+
get sync(): string;
|
|
363
|
+
/**
|
|
364
|
+
* Adds or updates a layer on the map.
|
|
365
|
+
*
|
|
366
|
+
* @param {EoxLayer} json - The layer configuration in JSON format.
|
|
367
|
+
* @returns {Object} The added or updated layer.
|
|
368
|
+
*/
|
|
369
|
+
addOrUpdateLayer(json: EoxLayer): any;
|
|
370
|
+
/**
|
|
371
|
+
* Removes an interaction from the map by its ID.
|
|
372
|
+
*
|
|
373
|
+
* @param {string | number} id - The ID of the interaction to remove.
|
|
374
|
+
*/
|
|
375
|
+
removeInteraction(id: string | number): void;
|
|
376
|
+
/**
|
|
377
|
+
* Removes a select interaction from the map by its ID.
|
|
378
|
+
*
|
|
379
|
+
* @param {string | number} id - The ID of the select interaction to remove.
|
|
380
|
+
*/
|
|
381
|
+
removeSelect(id: string | number): void;
|
|
382
|
+
/**
|
|
383
|
+
* Removes a control from the map by its ID.
|
|
384
|
+
*
|
|
385
|
+
* @param {string} id - The ID of the control to remove.
|
|
386
|
+
*/
|
|
387
|
+
removeControl(id: string): void;
|
|
388
|
+
/**
|
|
389
|
+
* Retrieves a layer from the map by its ID.
|
|
390
|
+
*
|
|
391
|
+
* @param {string} layerId - The ID of the layer to retrieve.
|
|
392
|
+
* @returns {import("./types").AnyLayerWithSource} The layer object.
|
|
393
|
+
*/
|
|
394
|
+
getLayerById(layerId: string): import("./types").AnyLayerWithSource;
|
|
395
|
+
/**
|
|
396
|
+
* Lifecycle method called after the component's first update.
|
|
397
|
+
* Sets up initial configurations like zoom extent.
|
|
398
|
+
*/
|
|
399
|
+
firstUpdated(): void;
|
|
400
|
+
/**
|
|
401
|
+
* Converts an array of OpenLayers features into a GeoJSON object.
|
|
402
|
+
*
|
|
403
|
+
* @param {Array<import("ol/Feature").default>} features - An array of OpenLayers features to be converted.
|
|
404
|
+
* @returns {Object} - A GeoJSON object representing the provided features.
|
|
405
|
+
*/
|
|
406
|
+
parseFeature(features: Array<import("ol/Feature").default>): any;
|
|
407
|
+
/**
|
|
408
|
+
* This function reads text and attempts to parse it as GeoJSON, KML, or TopoJSON.
|
|
409
|
+
* If successful, it adds the parsed features to the map.
|
|
410
|
+
*
|
|
411
|
+
* @param {string} text - The string containing the geographic data to be parsed.
|
|
412
|
+
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added.
|
|
413
|
+
* @param {EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching.
|
|
414
|
+
* @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones.
|
|
415
|
+
* @param {boolean} animate - Optional boolean flag indicating whether to animate the map on feature change.
|
|
416
|
+
* @return {void}
|
|
417
|
+
*/
|
|
418
|
+
parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: EOxMap, replaceFeatures: boolean, animate: boolean): void;
|
|
419
|
+
/**
|
|
420
|
+
* Fetches the projection definition for a given EPSG code from epsg.io and registers the projection using proj4.
|
|
421
|
+
*
|
|
422
|
+
* @param {string | number} code - The EPSG code (e.g., 4326 or 'EPSG:4326').
|
|
423
|
+
* @returns {Promise<import("ol/proj/Projection").default>} - A promise that resolves to the registered projection.
|
|
424
|
+
*/
|
|
425
|
+
registerProjectionFromCode(code: string | number): Promise<import("ol/proj/Projection").default>;
|
|
426
|
+
/**
|
|
427
|
+
* Registers a projection under a given name using a proj4 definition.
|
|
428
|
+
* This allows OpenLayers to recognize and work with custom or predefined projections.
|
|
429
|
+
*
|
|
430
|
+
* @param {string} name - The name of the projection (e.g., "EPSG:4326").
|
|
431
|
+
* @param {string | proj4.ProjectionDefinition} projection - The proj4 projection definition string or object.
|
|
432
|
+
* @param {import("ol/extent").Extent} [extent=undefined] - Optional extent for the projection. Defines the coordinate system's valid area.
|
|
433
|
+
*/
|
|
434
|
+
registerProjection(name: string, projection: string | proj4.ProjectionDefinition, extent?: import("ol/extent").Extent): void;
|
|
435
|
+
/**
|
|
436
|
+
* Returns a flat array of all map layers, including nested layers within groups.
|
|
437
|
+
*
|
|
438
|
+
* Note: If you want to get all layers without groups, use the native OpenLayers `getAllLayers` method:
|
|
439
|
+
* https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html#getAllLayers
|
|
440
|
+
*
|
|
441
|
+
* @param {Array<import("./types").AnyLayer>} layers - Array of OpenLayers layers, possibly containing groups.
|
|
442
|
+
* @returns {Array<import("./types").AnyLayer>} layers - Flattened array of input layers
|
|
443
|
+
*/
|
|
444
|
+
getFlatLayersArray(layers: Array<import("./types").AnyLayer>): Array<import("./types").AnyLayer>;
|
|
445
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
446
|
+
#private;
|
|
447
|
+
}
|
|
448
|
+
export type EoxLayer = import("./layers").EoxLayer;
|
|
449
|
+
export type EOxAnimationOptions = import("./types").EOxAnimationOptions;
|
|
450
|
+
export type ControlDictionary = import("./types").ControlDictionary;
|
|
451
|
+
export type ConfigObject = import("./types").ConfigObject;
|
|
452
|
+
export type ProjectionLike = import("./types").ProjectionLike;
|
|
453
|
+
export type AnyLayerWithSource = import("./types").AnyLayerWithSource;
|
|
454
|
+
import { LitElement } from "lit";
|
|
455
|
+
import { buffer } from "ol/extent";
|
|
456
|
+
import { transform } from "./helpers";
|
|
457
|
+
import { transformExtent } from "./helpers";
|
|
458
|
+
export { buffer, transform, transformExtent };
|
|
459
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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,QAAQ,CAAC,CAI7C;IAGD,+CAiBC;;CACF;uBA5oBY,OAAO,UAAU,EAAE,QAAQ;kCAC3B,OAAO,SAAS,EAAE,mBAAmB;gCACrC,OAAO,SAAS,EAAE,iBAAiB;2BACnC,OAAO,SAAS,EAAE,YAAY;6BAC9B,OAAO,SAAS,EAAE,cAAc;iCAChC,OAAO,SAAS,EAAE,kBAAkB;2BAjDhB,KAAK;uBAMf,WAAW;0BAW3B,WAAW;gCAAX,WAAW"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("../../layers").EoxLayer} EoxLayer
|
|
3
|
+
* */
|
|
4
|
+
/**
|
|
5
|
+
* Adds a new layer to the map or updates an existing layer based on the provided JSON data.
|
|
6
|
+
*
|
|
7
|
+
* @param {EoxLayer} json - The JSON data containing layer properties and interactions.
|
|
8
|
+
* @param {import("../../main").EOxMap} EOxMap - The map object where the layer will be added or updated.
|
|
9
|
+
* @returns {Object} - The newly created or updated layer object.
|
|
10
|
+
*/
|
|
11
|
+
export default function addOrUpdateLayerMethod(json: EoxLayer, EOxMap: import("../../main").EOxMap): any;
|
|
12
|
+
export type EoxLayer = import("../../layers").EoxLayer;
|
|
13
|
+
//# sourceMappingURL=add-update-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-update-layer.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/add-update-layer.js"],"names":[],"mappings":"AAEA;;KAEK;AAEL;;;;;;GAMG;AACH,qDAJW,QAAQ,UACR,OAAO,YAAY,EAAE,MAAM,OA0BrC;uBAjCY,OAAO,cAAc,EAAE,QAAQ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animates the map view to a specified state using the provided animation options.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../main").EOxMap} EOxMap - The map object containing the current map view, center, zoom, and animation options.
|
|
5
|
+
*/
|
|
6
|
+
export default function animateToStateMethod(EOxMap: import("../../main").EOxMap): void;
|
|
7
|
+
//# sourceMappingURL=animate-to-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animate-to-state.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/animate-to-state.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qDAFW,OAAO,YAAY,EAAE,MAAM,QAuBrC"}
|