@eox/drawtools 1.1.5 → 1.2.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-drawtools.js +1064 -917
- package/dist/eox-drawtools.umd.cjs +16 -16
- package/package.json +1 -1
- package/src/main.js +13 -2
- package/src/methods/draw/index.js +1 -0
- package/src/methods/draw/init-layer.js +32 -1
- package/src/methods/draw/init-measuring.js +69 -0
- package/types/drawtools/src/main.d.ts +10 -0
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/index.d.ts +1 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-measuring.d.ts +10 -0
- package/types/drawtools/src/methods/draw/init-measuring.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/custom/layers/MapboxStyle.d.ts +2 -2
- package/types/map/src/custom/layers/MapboxStyle.d.ts.map +1 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts +1 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -1
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -1
- package/types/map/src/helpers/cluster-explode.d.ts +1 -1
- package/types/map/src/helpers/cluster-explode.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/parse-text.d.ts +11 -0
- package/types/map/src/helpers/parse-text.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/main.d.ts +82 -34
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/first-updated.d.ts.map +1 -1
- package/types/map/src/methods/map/getters.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- 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 +4 -0
- package/types/map/src/types.d.ts.map +1 -1
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -54,6 +54,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
54
54
|
featureStyles: { attribute: false },
|
|
55
55
|
modify: { attribute: false, state: true },
|
|
56
56
|
multipleFeatures: { attribute: "multiple-features", type: Boolean },
|
|
57
|
+
measure: { type: Boolean },
|
|
57
58
|
importFeatures: { attribute: "import-features", type: Boolean },
|
|
58
59
|
showEditor: { attribute: "show-editor", type: Boolean },
|
|
59
60
|
showList: { attribute: "show-list", type: Boolean },
|
|
@@ -165,6 +166,14 @@ export class EOxDrawTools extends LitElement {
|
|
|
165
166
|
*/
|
|
166
167
|
this.multipleFeatures = false;
|
|
167
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Display area/line measurement for the drawn features.
|
|
171
|
+
* When enabled, a "measure" property is added to each drawn feature's properties,
|
|
172
|
+
* containing the calculated area (for Polygons and Circles) or length (for LineStrings).
|
|
173
|
+
* This measurement is also displayed as a text label on the map using OpenLayers flat styles.
|
|
174
|
+
*/
|
|
175
|
+
this.measure = false;
|
|
176
|
+
|
|
168
177
|
/**
|
|
169
178
|
* Allow import features using drag-drop and upload button
|
|
170
179
|
*/
|
|
@@ -351,8 +360,10 @@ export class EOxDrawTools extends LitElement {
|
|
|
351
360
|
this.#olMap = OlMap;
|
|
352
361
|
}
|
|
353
362
|
if (
|
|
354
|
-
changedProperties.get("type") &&
|
|
355
|
-
|
|
363
|
+
(changedProperties.get("type") &&
|
|
364
|
+
changedProperties.get("type") !== this.type) ||
|
|
365
|
+
(changedProperties.has("measure") &&
|
|
366
|
+
changedProperties.get("measure") !== this.measure)
|
|
356
367
|
) {
|
|
357
368
|
this.resetLayer(this);
|
|
358
369
|
this.firstUpdated();
|
|
@@ -8,3 +8,4 @@ export { default as emitDrawnFeaturesMethod } from "./emit-drawn-features"; // E
|
|
|
8
8
|
export { default as createSelectHandler } from "./create-select-handler"; // Factory function to create select event handler
|
|
9
9
|
export { default as initSelection } from "./init-selection"; // Initializes selection interactions
|
|
10
10
|
export { default as handleLayerId } from "./handle-layer-id"; // handle switching between selection and drawing
|
|
11
|
+
export { default as initMeasuring, updateMeasure } from "./init-measuring"; // Initializes measuring logic
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import onDrawEndMethod from "./on-draw-end";
|
|
2
|
+
import initSelection from "./init-selection";
|
|
3
|
+
import initMeasuring, { updateMeasure } from "./init-measuring";
|
|
2
4
|
|
|
3
5
|
import { getElement } from "@eox/elements-utils";
|
|
4
6
|
|
|
@@ -35,6 +37,14 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
35
37
|
"stroke-width": 2,
|
|
36
38
|
"circle-radius": 5,
|
|
37
39
|
"circle-fill-color": `rgba(${primaryColor}, 1)`,
|
|
40
|
+
...(EoxDrawTool.measure && {
|
|
41
|
+
"text-value": ["coalesce", ["get", "measure"], ""],
|
|
42
|
+
"text-fill-color": `rgba(${primaryColor}, 1)`,
|
|
43
|
+
"text-stroke-color": "white",
|
|
44
|
+
"text-stroke-width": 3,
|
|
45
|
+
"text-font": "bold 14px sans-serif",
|
|
46
|
+
"text-overflow": true,
|
|
47
|
+
}),
|
|
38
48
|
},
|
|
39
49
|
interactions: [
|
|
40
50
|
{
|
|
@@ -52,6 +62,14 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
52
62
|
"stroke-line-dash": [7, 3],
|
|
53
63
|
"circle-radius": 5,
|
|
54
64
|
"circle-fill-color": `rgba(${primaryColor}, 1)`,
|
|
65
|
+
...(EoxDrawTool.measure && {
|
|
66
|
+
"text-value": ["coalesce", ["get", "measure"], ""],
|
|
67
|
+
"text-fill-color": `rgba(${primaryColor}, 1)`,
|
|
68
|
+
"text-stroke-color": "white",
|
|
69
|
+
"text-stroke-width": 3,
|
|
70
|
+
"text-font": "bold 14px sans-serif",
|
|
71
|
+
"text-overflow": true,
|
|
72
|
+
}),
|
|
55
73
|
},
|
|
56
74
|
},
|
|
57
75
|
},
|
|
@@ -94,11 +112,24 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
94
112
|
|
|
95
113
|
// Initialize selection interactions
|
|
96
114
|
initSelection(EoxDrawTool, EoxMap, EoxDrawTool.layerId);
|
|
115
|
+
|
|
116
|
+
if (EoxDrawTool.measure) {
|
|
117
|
+
initMeasuring(EoxDrawTool);
|
|
118
|
+
}
|
|
119
|
+
|
|
97
120
|
const onModifyEnd = () => EoxDrawTool.onModifyEnd();
|
|
98
121
|
const onAddFeatures = () => onDrawEndMethod(EoxDrawTool);
|
|
99
122
|
|
|
100
123
|
EoxDrawTool.modify?.on("modifyend", onModifyEnd);
|
|
101
124
|
|
|
125
|
+
if (EoxDrawTool.measure) {
|
|
126
|
+
EoxDrawTool.draw?.on("drawstart", (evt) => {
|
|
127
|
+
const feature = evt.feature;
|
|
128
|
+
updateMeasure(feature);
|
|
129
|
+
feature.getGeometry().on("change", () => updateMeasure(feature));
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
102
133
|
EoxMap.addEventListener("addfeatures", onAddFeatures);
|
|
103
134
|
|
|
104
135
|
if (EoxDrawTool.drawnFeatures) {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { getArea, getLength } from "ol/sphere";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {import("ol").Feature} feature
|
|
5
|
+
*/
|
|
6
|
+
export const updateMeasure = (feature) => {
|
|
7
|
+
const geom = feature.getGeometry();
|
|
8
|
+
if (!geom) return;
|
|
9
|
+
let measure = "";
|
|
10
|
+
if (geom.getType() === "Polygon" || geom.getType() === "MultiPolygon") {
|
|
11
|
+
const area = getArea(geom);
|
|
12
|
+
if (area > 1000000) {
|
|
13
|
+
measure = (area / 1000000).toFixed(2) + " km²";
|
|
14
|
+
} else {
|
|
15
|
+
measure = area.toFixed(2) + " m²";
|
|
16
|
+
}
|
|
17
|
+
} else if (
|
|
18
|
+
geom.getType() === "LineString" ||
|
|
19
|
+
geom.getType() === "MultiLineString"
|
|
20
|
+
) {
|
|
21
|
+
const length = getLength(geom);
|
|
22
|
+
if (length > 1000) {
|
|
23
|
+
measure = (length / 1000).toFixed(2) + " km";
|
|
24
|
+
} else {
|
|
25
|
+
measure = length.toFixed(2) + " m";
|
|
26
|
+
}
|
|
27
|
+
} else if (geom.getType() === "Circle") {
|
|
28
|
+
// @ts-expect-error getRadius
|
|
29
|
+
const radius = geom.getRadius();
|
|
30
|
+
const area = Math.PI * Math.pow(radius, 2);
|
|
31
|
+
if (area > 1000000) {
|
|
32
|
+
measure = (area / 1000000).toFixed(2) + " km²";
|
|
33
|
+
} else {
|
|
34
|
+
measure = area.toFixed(2) + " m²";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (measure && feature.get("measure") !== measure) {
|
|
38
|
+
feature.set("measure", measure);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes measuring on the draw layer.
|
|
44
|
+
* Updates the feature property "measure" on geometry change.
|
|
45
|
+
*
|
|
46
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
47
|
+
*/
|
|
48
|
+
const initMeasuring = (EoxDrawTool) => {
|
|
49
|
+
const source = EoxDrawTool.drawLayer.getSource();
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {import("ol/source/Vector").VectorSourceEvent} evt
|
|
53
|
+
*/
|
|
54
|
+
const handleFeature = (evt) => {
|
|
55
|
+
const feature = evt.feature;
|
|
56
|
+
if (feature) {
|
|
57
|
+
updateMeasure(feature);
|
|
58
|
+
feature.getGeometry().on("change", () => updateMeasure(feature));
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
source.on("addfeature", handleFeature);
|
|
63
|
+
source.getFeatures().forEach((feature) => {
|
|
64
|
+
updateMeasure(feature);
|
|
65
|
+
feature.getGeometry().on("change", () => updateMeasure(feature));
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default initMeasuring;
|
|
@@ -72,6 +72,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
72
72
|
attribute: string;
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
};
|
|
75
|
+
measure: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
};
|
|
75
78
|
importFeatures: {
|
|
76
79
|
attribute: string;
|
|
77
80
|
type: BooleanConstructor;
|
|
@@ -167,6 +170,13 @@ export class EOxDrawTools extends LitElement {
|
|
|
167
170
|
* Allow adding more than one feature at a time
|
|
168
171
|
*/
|
|
169
172
|
multipleFeatures: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Display area/line measurement for the drawn features.
|
|
175
|
+
* When enabled, a "measure" property is added to each drawn feature's properties,
|
|
176
|
+
* containing the calculated area (for Polygons and Circles) or length (for LineStrings).
|
|
177
|
+
* This measurement is also displayed as a text label on the map using OpenLayers flat styles.
|
|
178
|
+
*/
|
|
179
|
+
measure: boolean;
|
|
170
180
|
/**
|
|
171
181
|
* Allow import features using drag-drop and upload button
|
|
172
182
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAEE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBC;IA6BC;;OAEG;IACH,qBAAwB;IAExB;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;OAEG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,MAFS,OAAO,gBAAgB,EAAE,IAAI,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhF;IAEhB;;;OAGG;IAEH,WAHS,OAAO,iBAAiB,EAAE,OAAO,CAGrB;IAqHvB;;;OAGG;IACH,2BAGC;IAED,sBAEC;IAzHC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;;;;;OAOG;IACH,eANU;QACP,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;KAC5C,GAAG,IAAI,CAEc;IAEzB;;;OAGG;IACH,QAFS,OAAO,gBAAgB,EAAE,MAAM,CAEtB;IAElB;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,iBAAoB;IAEpB;;OAEG;IACH,wBAA2B;IAE3B;;OAEG;IACH,oBAAuB;IAEvB;;OAEG;IACH,kBAAqB;IACrB;;OAEG;IACH,mBAA6B;IAE7B;;;OAGG;IACH,MAFU,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAE1C;IAErB;;OAEG;IACH,iBAFU,UAAU,CAAC,cAAc,sCAAsC,EAAE,OAAO,CAAC,CAExD;IAE3B;;;;;OAKG;IACH,QAFU,SAAS,GAAE,SAAS,GAAG,KAAK,CAEf;IAEvB;;OAEG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,+BAGC;IAED,0BAEC;IAeD;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,0BAJW,MAAM,oBACN,OAAO,YACP,OAAO,QAUjB;IAED;;OAEG;IACH,uBAFW,SAAS,IAAG,UAAU,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE,CAAA,QAI/D;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;;OAIG;IACH,qBAcC;IATC,iEAAuB;IAqCzB,kBANU,OAAO,UAAU,EAAE,MAAM,EAUlC;IAZD;;;OAGG;IACH,cAFU,OAAO,UAAU,EAAE,MAAM,CAIlC;IAxBD,sCAgBC;IA6BD,+CAqDC;;CACF;2BAtcyC,KAAK"}
|
|
@@ -6,4 +6,5 @@ export { default as emitDrawnFeaturesMethod } from "./emit-drawn-features";
|
|
|
6
6
|
export { default as createSelectHandler } from "./create-select-handler";
|
|
7
7
|
export { default as initSelection } from "./init-selection";
|
|
8
8
|
export { default as handleLayerId } from "./handle-layer-id";
|
|
9
|
+
export { default as initMeasuring, updateMeasure } from "./init-measuring";
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,YAAY;;;yBAoI/B,OAAO,YAAY,EAAE,YAAY;EAqB7C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function updateMeasure(feature: import("ol").Feature): void;
|
|
2
|
+
export default initMeasuring;
|
|
3
|
+
/**
|
|
4
|
+
* Initializes measuring on the draw layer.
|
|
5
|
+
* Updates the feature property "measure" on geometry change.
|
|
6
|
+
*
|
|
7
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
8
|
+
*/
|
|
9
|
+
declare function initMeasuring(EoxDrawTool: import("../../main").EOxDrawTools): void;
|
|
10
|
+
//# sourceMappingURL=init-measuring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-measuring.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-measuring.js"],"names":[],"mappings":"AAKO,uCAFI,OAAO,IAAI,EAAE,OAAO,QAoC9B;;AAED;;;;;GAKG;AACH,4CAFW,OAAO,YAAY,EAAE,YAAY,QAqB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,2CALW,OAAO,SAAS,EAAE,MAAM,oBACxB,iBAAiB,QACjB,WAAW,WACX,MAAM,QAiBhB;AAED;;;;;;GAMG;AACH,mCAJW,OAAO,SAAS,EAAE,MAAM,QACxB,WAAW,WACX,MAAM,QAiBhB;gCApEY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
|
|
@@ -4,10 +4,10 @@ declare class MapboxStyle extends LayerGroup {
|
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* @param {*} mapboxStyle mapbox style definition
|
|
7
|
-
* @param {import("ol-mapbox-style
|
|
7
|
+
* @param {Parameters<typeof import("ol-mapbox-style").apply>[2]} applyOptions ol-mapbox-style apply options
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
applyMapboxStyle(mapboxStyle: any, applyOptions: import("ol-mapbox-style
|
|
10
|
+
applyMapboxStyle(mapboxStyle: any, applyOptions: Parameters<typeof import("ol-mapbox-style").apply>[2]): Promise<import("ol").Map | LayerGroup>;
|
|
11
11
|
}
|
|
12
12
|
import LayerGroup from "ol/layer/Group";
|
|
13
13
|
//# sourceMappingURL=MapboxStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapboxStyle.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/layers/MapboxStyle.js"],"names":[],"mappings":";AAGA;IACE,0BAQC;IAED;;;;;OAKG;IACH,8BAJW,GAAC,gBACD,
|
|
1
|
+
{"version":3,"file":"MapboxStyle.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/layers/MapboxStyle.js"],"names":[],"mappings":";AAGA;IACE,0BAQC;IAED;;;;;OAKG;IACH,8BAJW,GAAC,gBACD,UAAU,CAAC,cAAc,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,0CAK/D;CACF;uBAvBsB,gBAAgB"}
|
|
@@ -3,7 +3,7 @@ export type FlatGeoBufOptions = import("../../types").FlatGeoBufOptions;
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef {import("../../types").FlatGeoBufOptions} FlatGeoBufOptions
|
|
5
5
|
*/
|
|
6
|
-
declare class FlatGeoBuf extends Vector<import("ol
|
|
6
|
+
declare class FlatGeoBuf extends Vector<import("ol").Feature<import("ol/geom").Geometry>> {
|
|
7
7
|
/**
|
|
8
8
|
* @param {FlatGeoBufOptions} options
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAQa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAY3B;IAJC,iDAC4D;IAC5D,oBAA8B;IAIhC;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;
|
|
1
|
+
{"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAQa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAY3B;IAJC,iDAC4D;IAC5D,oBAA8B;IAIhC;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;;CAmCF;mBA9EkB,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WMTSCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/WMTSCapabilities.js"],"names":[],"mappings":";sCAOa,OAAO,aAAa,EAAE,uBAAuB;AAD1D;;GAEG;AAEH;IACE;;;;OAIG;IACH,qBAFW,uBAAuB,EA+BjC;IAdC,iBAAyE;IACzE,oBAC4D;IAC5D,eAA2B;IAa7B;;;;;OAKG;IACH,gCAHW,QAAQ,WACR,uBAAuB,
|
|
1
|
+
{"version":3,"file":"WMTSCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/WMTSCapabilities.js"],"names":[],"mappings":";sCAOa,OAAO,aAAa,EAAE,uBAAuB;AAD1D;;GAEG;AAEH;IACE;;;;OAIG;IACH,qBAFW,uBAAuB,EA+BjC;IAdC,iBAAyE;IACzE,oBAC4D;IAC5D,eAA2B;IAa7B;;;;;OAKG;IACH,gCAHW,QAAQ,WACR,uBAAuB,QAmCjC;IAlBC,2DAA2D;IAC3D,mBAA+C;IAC/C,eAAuC;IACvC,gBAAyC;IAiB3C;;;;OAIG;IACH,2CAsCc,WAHC,KAAK,CAAC,MAAM,CAGJ,KAFP,MAAM,GAAC,SAAS,CA2B/B;CACF;sBA7JqB,wBAAwB"}
|
|
@@ -19,7 +19,7 @@ export class EOxClusterExplodeInteraction extends Interaction {
|
|
|
19
19
|
* @param {ClusterExplodeOptions} options - Options for the selection interaction.
|
|
20
20
|
*/
|
|
21
21
|
constructor(eoxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions);
|
|
22
|
-
clusterLayer: VectorLayer<import("ol/source
|
|
22
|
+
clusterLayer: VectorLayer<import("ol/source").Cluster<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
|
|
23
23
|
eoxMap: import("../main").EOxMap;
|
|
24
24
|
active: boolean;
|
|
25
25
|
handleEvent(evt: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC,
|
|
1
|
+
{"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC,iIAAgC;IAChC,iCAAoB;IAsBpB,gBAAyD;IA6B3D,+BA4EC;IAcD,uBAMC;IAiID;;OAEG;IACH,eAEC;;CACF;qBA/SY,OAAO,SAAS,EAAE,MAAM;oCACxB,OAAO,UAAU,EAAE,qBAAqB;wBAR7B,4BAA4B;oBAFhC,YAAY;wBAMR,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAiEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,CA+DpB;AA0FD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CA0N3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAM3B;qBAxbY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;6BAC9B,OAAO,UAAU,EAAE,cAAc;0BACjC,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;iCAChC,OAAO,UAAU,EAAE,kBAAkB;sCACrC,OAAO,UAAU,EAAE,uBAAuB"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function determines the projection of the features based on the provided text.
|
|
3
|
+
*
|
|
4
|
+
* @param {GeoJSON | KML | TopoJSON | null} formatReader
|
|
5
|
+
* @param {string} text
|
|
6
|
+
* @returns {string | undefined} - Returns the projection string if determined, otherwise undefined.
|
|
7
|
+
*/
|
|
8
|
+
export function getProj(formatReader: GeoJSON | KML | TopoJSON | null, text: string): string | undefined;
|
|
1
9
|
/**
|
|
2
10
|
* This function reads text and attempts to parse it as GeoJSON, KML, or TopoJSON.
|
|
3
11
|
* If successful, it adds the parsed features to the map.
|
|
@@ -31,4 +39,7 @@ export function isKML(text: string): boolean;
|
|
|
31
39
|
* @returns {boolean} - `true` if the string is a valid TopoJSON object, `false` otherwise.
|
|
32
40
|
*/
|
|
33
41
|
export function isTopoJSON(text: string): boolean;
|
|
42
|
+
import GeoJSON from "ol/format/GeoJSON";
|
|
43
|
+
import KML from "ol/format/KML";
|
|
44
|
+
import TopoJSON from "ol/format/TopoJSON";
|
|
34
45
|
//# sourceMappingURL=parse-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,sCAJW,OAAO,GAAG,GAAG,GAAG,QAAQ,GAAG,IAAI,QAC/B,MAAM,GACJ,MAAM,GAAG,SAAS,CAoB9B;AAkBD;;;;;;;;;;GAUG;AACH,iDAPW,MAAM,eACN,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,oBACxB,OAAO,YACP,OAAO,GACN,IAAI,CAqCf;AAmBD;;;;;GAKG;AACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;;GAKG;AACH,4BAHW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAWnB;oBA5JmB,mBAAmB;gBACvB,eAAe;qBAFV,oBAAoB"}
|
|
@@ -31,7 +31,7 @@ export class EOxSelectInteraction {
|
|
|
31
31
|
*/
|
|
32
32
|
constructor(eoxMap: EOxMap, anyLayer: import("../types").SelectLayer, options: SelectOptions);
|
|
33
33
|
eoxMap: import("../main").EOxMap;
|
|
34
|
-
selectLayer: VectorLayer<import("ol/source").Vector<any>, any> | import("ol/layer").WebGLTile |
|
|
34
|
+
selectLayer: VectorLayer<import("ol/source").Vector<any>, any> | import("ol/layer").WebGLTile | import("ol/layer").Tile<import("ol/source").Tile<import("ol").Tile>> | VectorTile<import("ol/source").VectorTile<any>, any>;
|
|
35
35
|
options: import("../types").SelectOptions;
|
|
36
36
|
active: boolean;
|
|
37
37
|
panIn: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AA6hBA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AApiBD;;;;;;;;GAQG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,YACN,OAAO,UAAU,EAAE,WAAW,WAC9B,aAAa,EAmZvB;IAhZC,iCAAoB;IACpB,4NAA2B;IAC3B,0CAAsB;IACtB,gBAAqD;IACrD,eAAmC;IACnC,iBAAuD;IAUnD,wBAAkD;IAgFpD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAuBtB,+MAGG;IAuBH;;;UAGM;IACN,kBAsMW,OAAO,oBAAoB,EAAE,OAAO,UAjJ9C;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAgBC;IA2IL;;;OAGG;IACH,kBAFW,OAAO,QAIjB;IAED;;;;OAIG;IACH,iBAAkB,iBAHP,OAAO,GAAG,aAAa,GAAG,OAAO,WAAW,EAAE,MAGxB,EAAE,aAAO,UAOxC;IAEF;;;;OAIG;IACH,mBAHW,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,0BAkChC;IAED;;OAEG;IACH,eAWC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBA3gBY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;uBAC9B,OAAO,UAAU,EAAE,QAAQ;sCAC3B,OAAO,UAAU,EAAE,uBAAuB;4BAC1C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;wBAjBnB,iBAAiB;uBAGlB,qBAAqB;oBALxB,YAAY;0BACN,mBAAmB"}
|
package/types/map/src/main.d.ts
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
* - **Sync & Compare:** Synchronize multiple maps using the `sync` property, and compare maps side-by-side with `<eox-map-compare>`.
|
|
58
58
|
* - **Config Object:** Pass a configuration object for advanced map setup and dynamic updates.
|
|
59
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.
|
|
60
61
|
*
|
|
61
62
|
* ## Events
|
|
62
63
|
*
|
|
@@ -64,19 +65,31 @@
|
|
|
64
65
|
* - `loadend`: Fired when the map has finished loading.
|
|
65
66
|
* - `mapmounted`: Fired when the map is successfully mounted.
|
|
66
67
|
* - `select`: Fired when a feature is selected.
|
|
68
|
+
* - `layerschanged`: Fired when the layers have been changed.
|
|
67
69
|
*
|
|
68
|
-
* ##
|
|
70
|
+
* ## Methods
|
|
69
71
|
*
|
|
70
|
-
* - `transform`, `transformExtent`: Transform coordinates and extents between projections.
|
|
71
72
|
* - `registerProjection`, `registerProjectionFromCode`: Register custom or EPSG projections.
|
|
72
73
|
* - `getLayerById`, `getFlatLayersArray`: Retrieve layers by ID or as a flat array.
|
|
73
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";`
|
|
74
86
|
*
|
|
75
87
|
* @element eox-map
|
|
76
88
|
* @fires {CustomEvent} clusterSelect - A cluster is selected
|
|
77
89
|
* @fires {CustomEvent} loadend - The map has finished loading
|
|
78
90
|
* @fires {CustomEvent} mapmounted - The map has been successfully mounted
|
|
79
91
|
* @fires {CustomEvent} select - A feature is selected
|
|
92
|
+
* @fires {CustomEvent} layerschanged - The layers have been changed
|
|
80
93
|
*/
|
|
81
94
|
export class EOxMap extends LitElement {
|
|
82
95
|
static get properties(): {
|
|
@@ -177,6 +190,12 @@ export class EOxMap extends LitElement {
|
|
|
177
190
|
mapControls: {
|
|
178
191
|
[x: string]: import("ol/control/Control").default;
|
|
179
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* The globe instance when using globe projection.
|
|
195
|
+
* todo: define proper type
|
|
196
|
+
* @type {any|null}
|
|
197
|
+
*/
|
|
198
|
+
globe: any | null;
|
|
180
199
|
/**
|
|
181
200
|
* Sets the center of the map. If the new center is valid, updates the map's view.
|
|
182
201
|
*
|
|
@@ -297,16 +316,37 @@ export class EOxMap extends LitElement {
|
|
|
297
316
|
/**
|
|
298
317
|
* Sets the map's projection.
|
|
299
318
|
*
|
|
300
|
-
* @param {ProjectionLike} projection - The projection code (e.g., "EPSG:3857").
|
|
319
|
+
* @param {ProjectionLike} projection - The projection code (e.g., "EPSG:3857") or "globe".
|
|
301
320
|
*/
|
|
302
321
|
set projection(projection: ProjectionLike);
|
|
303
322
|
/**
|
|
304
323
|
* Gets the current map projection.
|
|
305
324
|
*
|
|
306
325
|
* @type {ProjectionLike}
|
|
307
|
-
* @returns {ProjectionLike} The map's projection code.
|
|
326
|
+
* @returns {ProjectionLike} The map's projection code or "globe" if globe is enabled.
|
|
308
327
|
*/
|
|
309
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;
|
|
310
350
|
/**
|
|
311
351
|
* Sets the sync state for the map.
|
|
312
352
|
*
|
|
@@ -349,48 +389,59 @@ export class EOxMap extends LitElement {
|
|
|
349
389
|
* Retrieves a layer from the map by its ID.
|
|
350
390
|
*
|
|
351
391
|
* @param {string} layerId - The ID of the layer to retrieve.
|
|
352
|
-
* @returns {AnyLayerWithSource} The layer object.
|
|
392
|
+
* @returns {import("./types").AnyLayerWithSource} The layer object.
|
|
353
393
|
*/
|
|
354
|
-
getLayerById(layerId: string): AnyLayerWithSource;
|
|
394
|
+
getLayerById(layerId: string): import("./types").AnyLayerWithSource;
|
|
355
395
|
/**
|
|
356
396
|
* Lifecycle method called after the component's first update.
|
|
357
397
|
* Sets up initial configurations like zoom extent.
|
|
358
398
|
*/
|
|
359
399
|
firstUpdated(): void;
|
|
360
400
|
/**
|
|
361
|
-
*
|
|
401
|
+
* Converts an array of OpenLayers features into a GeoJSON object.
|
|
362
402
|
*
|
|
363
|
-
* @
|
|
364
|
-
|
|
365
|
-
parseFeature: Function;
|
|
366
|
-
/**
|
|
367
|
-
* Parses text into a feature.
|
|
368
|
-
*/
|
|
369
|
-
parseTextToFeature: typeof parseTextToFeature;
|
|
370
|
-
/**
|
|
371
|
-
* Registers a projection from an EPSG code.
|
|
372
|
-
*/
|
|
373
|
-
registerProjectionFromCode: typeof registerProjectionFromCode;
|
|
374
|
-
/**
|
|
375
|
-
* Registers a custom projection.
|
|
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.
|
|
376
405
|
*/
|
|
377
|
-
|
|
406
|
+
parseFeature(features: Array<import("ol/Feature").default>): any;
|
|
378
407
|
/**
|
|
379
|
-
*
|
|
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}
|
|
380
417
|
*/
|
|
381
|
-
|
|
418
|
+
parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: EOxMap, replaceFeatures: boolean, animate: boolean): void;
|
|
382
419
|
/**
|
|
383
|
-
*
|
|
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.
|
|
384
424
|
*/
|
|
385
|
-
|
|
425
|
+
registerProjectionFromCode(code: string | number): Promise<import("ol/proj/Projection").default>;
|
|
386
426
|
/**
|
|
387
|
-
*
|
|
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.
|
|
388
433
|
*/
|
|
389
|
-
|
|
434
|
+
registerProjection(name: string, projection: string | proj4.ProjectionDefinition, extent?: import("ol/extent").Extent): void;
|
|
390
435
|
/**
|
|
391
|
-
*
|
|
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
|
|
392
443
|
*/
|
|
393
|
-
|
|
444
|
+
getFlatLayersArray(layers: Array<import("./types").AnyLayer>): Array<import("./types").AnyLayer>;
|
|
394
445
|
render(): import("lit-html").TemplateResult<1>;
|
|
395
446
|
#private;
|
|
396
447
|
}
|
|
@@ -401,11 +452,8 @@ export type ConfigObject = import("./types").ConfigObject;
|
|
|
401
452
|
export type ProjectionLike = import("./types").ProjectionLike;
|
|
402
453
|
export type AnyLayerWithSource = import("./types").AnyLayerWithSource;
|
|
403
454
|
import { LitElement } from "lit";
|
|
404
|
-
import {
|
|
405
|
-
import { registerProjectionFromCode } from "./helpers";
|
|
406
|
-
import { registerProjection } from "./helpers";
|
|
407
|
-
import { getFlatLayersArray } from "./helpers";
|
|
455
|
+
import { buffer } from "ol/extent";
|
|
408
456
|
import { transform } from "./helpers";
|
|
409
457
|
import { transformExtent } from "./helpers";
|
|
410
|
-
|
|
458
|
+
export { buffer, transform, transformExtent };
|
|
411
459
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../map/src/main.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../map/src/main.js"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-updated.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/first-updated.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,uDAHW,OAAO,WAAW,EAAE,MAAM,UAC1B,OAAO,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"first-updated.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/first-updated.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,uDAHW,OAAO,WAAW,EAAE,MAAM,UAC1B,OAAO,YAAY,EAAE,MAAM,QAwBrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/getters.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/getters.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CAazB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CAgCzB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,WAAW,EAAE,MAAM,CAMtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/setters.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/setters.js"],"names":[],"mappings":"AAmBA;;;;;;;KAOK;AAEL;;;;;;GAMG;AACH,wCAJW,KAAK,CAAC,MAAM,CAAC,UACb,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,GAAC,SAAS,CAmBnC;AAED;;;;;;GAMG;AACH,4CAJW,OAAO,WAAW,EAAE,MAAM,UAC1B,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,WAAW,EAAE,MAAM,CAgBtC;AAED;;;;;;;GAOG;AACH,4CALW,iBAAiB,eACjB,iBAAiB,UACjB,OAAO,YAAY,EAAE,MAAM,GACzB,iBAAiB,CAkC7B;AAED;;;;;;;GAOG;AACH,wCALW,KAAK,CAAC,QAAQ,CAAC,aACf,KAAK,CAAC,QAAQ,CAAC,UACf,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,QAAQ,CAAC,CAkI3B;AAED;;;;;;GAMG;AACH,sDAJW,OAAO,UACP,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,CAanB;AAED;;;;;;GAMG;AACH,wCAJW,YAAY,UACZ,OAAO,YAAY,EAAE,MAAM,GACzB,YAAY,CAmCxB;AAED;;;;;;;GAOG;AACH,gDALW,cAAc,iBACd,cAAc,UACd,OAAO,YAAY,EAAE,MAAM,GACzB,cAAc,CAoF1B;AAED;;;;;;GAMG;AACH,oCAJW,MAAM,UACN,OAAO,YAAY,EAAE,MAAM,GACzB,MAAM,CA0BlB;uBAtaY,OAAO,cAAc,EAAE,QAAQ;0BAC/B,OAAO,aAAa,EAAE,WAAW;gCACjC,OAAO,aAAa,EAAE,iBAAiB;4BACvC,OAAO,aAAa,EAAE,aAAa;2BACnC,OAAO,aAAa,EAAE,YAAY;6BAClC,OAAO,aAAa,EAAE,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../map/src/plugins/globe/index.js"],"names":[],"mappings":"AAKO;;;mCAYN;8BAda,OAAO,SAAS,EAAE,eAAe"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function distributeTileToIdealMap(mapPool: any, layerId: any, tile: any, callback: any): any;
|
|
2
|
+
export function createMapPool(maxMaps: any, EOxMap: any, target: any): {
|
|
3
|
+
tileMap: import("../../main").EOxMap;
|
|
4
|
+
tileQueue: any[];
|
|
5
|
+
loadNextTile(): void;
|
|
6
|
+
}[];
|
|
7
|
+
export type ExtendedOLLayer = import("./types").ExtendedOLLayer;
|
|
8
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../../../map/src/plugins/globe/methods.js"],"names":[],"mappings":"AAgIA,oGA6BC;AAxJM;;;;IAoCN;8BAtCa,OAAO,SAAS,EAAE,eAAe"}
|