@eox/drawtools 1.1.5 → 1.3.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 +1507 -1309
- package/dist/eox-drawtools.umd.cjs +50 -50
- package/dist/material-symbols-outlined.woff2 +0 -0
- package/dist/material-symbols-rounded.woff2 +0 -0
- package/dist/material-symbols-sharp.woff2 +0 -0
- package/dist/material-symbols-subset.woff2 +0 -0
- package/package.json +2 -2
- package/src/components/controller.js +7 -7
- package/src/main.js +92 -18
- package/src/methods/draw/emit-drawn-features.js +7 -1
- package/src/methods/draw/index.js +1 -0
- package/src/methods/draw/init-layer.js +65 -32
- package/src/methods/draw/init-measuring.js +69 -0
- package/types/drawtools/src/main.d.ts +33 -7
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/emit-drawn-features.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/GlobeSwitcher.d.ts +19 -0
- package/types/map/src/controls/GlobeSwitcher.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts +1 -2
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/controls/geo-location.d.ts +14 -4
- package/types/map/src/controls/geo-location.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/Cluster.d.ts +6 -2
- package/types/map/src/custom/sources/Cluster.d.ts.map +1 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts +4 -2
- 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 +5 -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/layer.d.ts +3 -1
- package/types/map/src/helpers/layer.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 +6 -2
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/layers.d.ts +2 -1
- package/types/map/src/layers.d.ts.map +1 -1
- package/types/map/src/main.d.ts +105 -35
- 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/index.d.ts +1 -1
- package/types/map/src/methods/map/setters.d.ts +1 -0
- 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 +25 -0
- package/types/map/src/plugins/globe/openglobus.d.ts.map +1 -0
- package/types/map/src/types.d.ts +20 -1
- package/types/map/src/types.d.ts.map +1 -1
|
@@ -10,10 +10,20 @@ export default class GeolocationControl extends Control {
|
|
|
10
10
|
_highAccuracy: boolean;
|
|
11
11
|
_trackAccuracy: boolean;
|
|
12
12
|
_trackHeading: boolean;
|
|
13
|
-
_positionFeature: Feature<Point
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
_positionFeature: Feature<Point, {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
_source: VectorSource<Feature<Point, {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
}>>;
|
|
19
|
+
_accuracyFeature: Feature<import("ol/geom").Geometry, {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}>;
|
|
22
|
+
_layer: VectorLayer<VectorSource<Feature<Point, {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>>, Feature<Point, {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
}>>;
|
|
17
27
|
/**
|
|
18
28
|
* Initializes the geolocation control.
|
|
19
29
|
* This will prompt the user for geolocation permissions in the browser.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA8D5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC
|
|
1
|
+
{"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA8D5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC;;OAGE;IAGF;;QAEE;IAIA;;OAAqC;IAYvC;;;;QAAuD;IA6BzD;;;OAGG;IACH,gCA4CC;IAxCK,0BAIE;IAsCR;;;;OAIG;IACH,cAFa,WAAW,CAIvB;IAED;;OAEG;IACH,kCAUC;CACF;iCAhKY,OAAO,UAAU,EAAE,kBAAkB;oBAX9B,uBAAuB;kBAGzB,eAAe;oBAFb,YAAY;yBAGP,qBAAqB;wBACtB,oBAAoB;wBAHpB,gBAAgB"}
|
|
@@ -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,8 +3,12 @@ export type ClusterOptions = import("../../types").EOxClusterOptions;
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef {import("../../types").EOxClusterOptions} ClusterOptions
|
|
5
5
|
*/
|
|
6
|
-
declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry
|
|
7
|
-
|
|
6
|
+
declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry, {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>> {
|
|
9
|
+
static defaultCreateCluster(point: any, features: any): Feature<any, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>;
|
|
8
12
|
/**
|
|
9
13
|
* @param {import("ol/Feature").FeatureLike} feature
|
|
10
14
|
* @returns {import("ol/geom/Point").default}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH;;;IAYE;;OAqBC;IAED;;;OAGG;IACH,wCAHW,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,eAAe,EAAE,OAAO,CAW3C;IA/CD;;OAEG;IACH,sBAFW,cAAc,EAQxB;CAuCF;wBAzDuB,IAAI;wBAEJ,WAAW"}
|
|
@@ -3,13 +3,15 @@ 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
|
+
[x: string]: any;
|
|
8
|
+
}>> {
|
|
7
9
|
/**
|
|
8
10
|
* @param {FlatGeoBufOptions} options
|
|
9
11
|
*/
|
|
10
12
|
constructor(options: FlatGeoBufOptions);
|
|
11
13
|
dataProjection: import("ol/proj").ProjectionLike;
|
|
12
|
-
|
|
14
|
+
resourceURLs: string[];
|
|
13
15
|
/**
|
|
14
16
|
* transform an ol extent into FlatGeoBuf-format
|
|
15
17
|
* @param {import("ol/extent").Extent} extent
|
|
@@ -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
|
|
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,EAa3B;IALC,iDAC4D;IAC5D,uBAC+D;IAIjE;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;;CAmDF;mBA/FkB,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,QAuCjC;IAtBC,2DAA2D;IAC3D,mBAA+C;IAC/C,eAAuC;IACvC,gBAAyC;IAqB3C;;;;OAIG;IACH,2CAsCc,WAHC,KAAK,CAAC,MAAM,CAGJ,KAFP,MAAM,GAAC,SAAS,CA2B/B;CACF;sBAjKqB,wBAAwB"}
|
|
@@ -19,7 +19,11 @@ 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, {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
}>>;
|
|
23
27
|
eoxMap: import("../main").EOxMap;
|
|
24
28
|
active: boolean;
|
|
25
29
|
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;;;;QAAgC;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,CA+N3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAM3B;qBA7bY,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"}
|
|
@@ -18,7 +18,9 @@ export function getLayerById(EOxMap: import("../main").EOxMap, layerId: string):
|
|
|
18
18
|
*
|
|
19
19
|
* @param {Array<AnyLayer>} layers - Array of OpenLayers layers, possibly containing groups.
|
|
20
20
|
*/
|
|
21
|
-
export function getFlatLayersArray(layers: Array<AnyLayer>): import("ol/layer/Base").default
|
|
21
|
+
export function getFlatLayersArray(layers: Array<AnyLayer>): import("ol/layer/Base").default<{
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>[];
|
|
22
24
|
export type AnyLayerWithSource = import("../types").AnyLayerWithSource;
|
|
23
25
|
export type AnyLayer = import("../types").AnyLayer;
|
|
24
26
|
//# sourceMappingURL=layer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/layer.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;GAMG;AACH,qCAJW,OAAO,SAAS,EAAE,MAAM,WACxB,MAAM,GACJ,kBAAkB,CAQ9B;AAED;;;;;;;GAOG;AACH,2CAFW,KAAK,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/layer.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;GAMG;AACH,qCAJW,OAAO,SAAS,EAAE,MAAM,WACxB,MAAM,GACJ,kBAAkB,CAQ9B;AAED;;;;;;;GAOG;AACH,2CAFW,KAAK,CAAC,QAAQ,CAAC;;KAqCzB;iCA9DY,OAAO,UAAU,EAAE,kBAAkB;uBACrC,OAAO,UAAU,EAAE,QAAQ"}
|
|
@@ -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;
|
|
@@ -39,7 +39,11 @@ export class EOxSelectInteraction {
|
|
|
39
39
|
tooltipElement: Element;
|
|
40
40
|
/** @type {Array<string|number>} **/
|
|
41
41
|
selectedFids: Array<string | number>;
|
|
42
|
-
selectStyleLayer: VectorLayer<import("ol/source").Vector<Feature<import("ol/geom").Geometry
|
|
42
|
+
selectStyleLayer: VectorLayer<import("ol/source").Vector<Feature<import("ol/geom").Geometry, {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
}>>, Feature<import("ol/geom").Geometry, {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
}>> | VectorTile<import("ol/source").VectorTile<RenderFeature>, RenderFeature>;
|
|
43
47
|
/**
|
|
44
48
|
* Listener to handle selection events
|
|
45
49
|
* @param {import("ol/MapBrowserEvent").default} event
|
|
@@ -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;;;;mFAGG;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"}
|
|
@@ -52,6 +52,7 @@ export type OLAdvancedSources = {
|
|
|
52
52
|
CartoDB: typeof import("ol/source/CartoDB").default;
|
|
53
53
|
DataTile: typeof import("ol/source/DataTile").default;
|
|
54
54
|
GeoTIFF: typeof import("ol/source/GeoTIFF").default;
|
|
55
|
+
GeoZarr: typeof import("ol/source/GeoZarr").default;
|
|
55
56
|
Google: typeof import("ol/source/Google").default;
|
|
56
57
|
IIIF: typeof import("ol/source/IIIF").default;
|
|
57
58
|
Image: typeof import("ol/source/Image").default;
|
|
@@ -120,6 +121,6 @@ export type EOxLayerTypeGroup = Omit<EOxLayerType<"Group", keyof OLSources>, "la
|
|
|
120
121
|
layers: EoxLayer[];
|
|
121
122
|
};
|
|
122
123
|
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 type EoxLayer = EOxLayerType<"Vector", "Vector"> | EOxLayerType<"Vector", "FlatGeoBuf"> | EOxLayerType<"Vector", "Cluster"> | EOxLayerType<"VectorTile", "VectorTile"> | EOxLayerType<"WebGLTile", "GeoTIFF"> | EOxLayerType<"WebGLTile", "GeoZarr"> | 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
125
|
export {};
|
|
125
126
|
//# sourceMappingURL=layers.d.ts.map
|
|
@@ -1 +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,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,QAAQ,EAAE,cAAc,oBAAoB,EAAE,OAAO,CAAC;IACtD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,QAAQ,EAAE,cAAc,oBAAoB,EAAE,OAAO,CAAC;IACtD,QAAQ,EAAE,cAAc,oBAAoB,EAAE,OAAO,CAAC;IACtD,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,GAAG,EAAE,cAAc,eAAe,EAAE,OAAO,CAAC;IAC5C,eAAe,EAAE,cAAc,2BAA2B,EAAE,OAAO,CAAC;IACpE,iBAAiB,EAAE,cAAc,6BAA6B,EAAE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AAC,GAC/B,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,GAC9B,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,GACpC,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"}
|
package/types/map/src/main.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @typedef {import("./types").ConfigObject} ConfigObject
|
|
6
6
|
* @typedef {import("./types").ProjectionLike} ProjectionLike
|
|
7
7
|
* @typedef {import("./types").AnyLayerWithSource} AnyLayerWithSource
|
|
8
|
+
* @typedef {import("./types").GlobeConfig} GlobeConfig
|
|
8
9
|
* */
|
|
9
10
|
/**
|
|
10
11
|
* 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.
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
* - **Sync & Compare:** Synchronize multiple maps using the `sync` property, and compare maps side-by-side with `<eox-map-compare>`.
|
|
58
59
|
* - **Config Object:** Pass a configuration object for advanced map setup and dynamic updates.
|
|
59
60
|
* - **Scroll Prevention:** Prevent scroll/drag interactions for embedded maps using the `preventScroll` property.
|
|
61
|
+
* - **Globe View:** Interactive 3D globe by using "globe" projection property. Configure via the `globeConfig` object.
|
|
60
62
|
*
|
|
61
63
|
* ## Events
|
|
62
64
|
*
|
|
@@ -64,19 +66,31 @@
|
|
|
64
66
|
* - `loadend`: Fired when the map has finished loading.
|
|
65
67
|
* - `mapmounted`: Fired when the map is successfully mounted.
|
|
66
68
|
* - `select`: Fired when a feature is selected.
|
|
69
|
+
* - `layerschanged`: Fired when the layers have been changed.
|
|
67
70
|
*
|
|
68
|
-
* ##
|
|
71
|
+
* ## Methods
|
|
69
72
|
*
|
|
70
|
-
* - `transform`, `transformExtent`: Transform coordinates and extents between projections.
|
|
71
73
|
* - `registerProjection`, `registerProjectionFromCode`: Register custom or EPSG projections.
|
|
72
74
|
* - `getLayerById`, `getFlatLayersArray`: Retrieve layers by ID or as a flat array.
|
|
73
75
|
* - `addOrUpdateLayer`, `removeInteraction`, `removeSelect`, `removeControl`: Manage layers and interactions programmatically.
|
|
76
|
+
* - `parseFeature`: Parses a feature from the input data.
|
|
77
|
+
* - `parseTextToFeature`: Parses text into a feature.
|
|
78
|
+
*
|
|
79
|
+
* Usage: `document.querySelector("eox-map").registerProjection([...]);`
|
|
80
|
+
*
|
|
81
|
+
* ## Additional Helper Methods
|
|
82
|
+
*
|
|
83
|
+
* - `buffer`: Applies a buffer around an extent
|
|
84
|
+
* - `transform`, `transformExtent`: Transform coordinates and extents between projections.
|
|
85
|
+
*
|
|
86
|
+
* Usage: `import { buffer, transform, transformExtent } from "@eox/map";`
|
|
74
87
|
*
|
|
75
88
|
* @element eox-map
|
|
76
89
|
* @fires {CustomEvent} clusterSelect - A cluster is selected
|
|
77
90
|
* @fires {CustomEvent} loadend - The map has finished loading
|
|
78
91
|
* @fires {CustomEvent} mapmounted - The map has been successfully mounted
|
|
79
92
|
* @fires {CustomEvent} select - A feature is selected
|
|
93
|
+
* @fires {CustomEvent} layerschanged - The layers have been changed
|
|
80
94
|
*/
|
|
81
95
|
export class EOxMap extends LitElement {
|
|
82
96
|
static get properties(): {
|
|
@@ -146,7 +160,16 @@ export class EOxMap extends LitElement {
|
|
|
146
160
|
attribute: boolean;
|
|
147
161
|
type: ArrayConstructor;
|
|
148
162
|
};
|
|
163
|
+
globeConfig: {
|
|
164
|
+
attribute: boolean;
|
|
165
|
+
type: ObjectConstructor;
|
|
166
|
+
};
|
|
149
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Stores the last 2D projection to switch back from globe view.
|
|
170
|
+
* @type {ProjectionLike}
|
|
171
|
+
*/
|
|
172
|
+
last2dProjection: ProjectionLike;
|
|
150
173
|
/**
|
|
151
174
|
* The OpenLayers map instance.
|
|
152
175
|
*
|
|
@@ -175,8 +198,14 @@ export class EOxMap extends LitElement {
|
|
|
175
198
|
* @type {Object.<string, import("ol/control/Control").default>}
|
|
176
199
|
*/
|
|
177
200
|
mapControls: {
|
|
178
|
-
[x: string]: import("ol/control
|
|
201
|
+
[x: string]: import("ol/control").Control;
|
|
179
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* The globe instance when using globe projection.
|
|
205
|
+
* todo: define proper type
|
|
206
|
+
* @type {any|null}
|
|
207
|
+
*/
|
|
208
|
+
globe: any | null;
|
|
180
209
|
/**
|
|
181
210
|
* Sets the center of the map. If the new center is valid, updates the map's view.
|
|
182
211
|
*
|
|
@@ -297,16 +326,37 @@ export class EOxMap extends LitElement {
|
|
|
297
326
|
/**
|
|
298
327
|
* Sets the map's projection.
|
|
299
328
|
*
|
|
300
|
-
* @param {ProjectionLike} projection - The projection code (e.g., "EPSG:3857").
|
|
329
|
+
* @param {ProjectionLike} projection - The projection code (e.g., "EPSG:3857") or "globe".
|
|
301
330
|
*/
|
|
302
331
|
set projection(projection: ProjectionLike);
|
|
303
332
|
/**
|
|
304
333
|
* Gets the current map projection.
|
|
305
334
|
*
|
|
306
335
|
* @type {ProjectionLike}
|
|
307
|
-
* @returns {ProjectionLike} The map's projection code.
|
|
336
|
+
* @returns {ProjectionLike} The map's projection code or "globe" if globe is enabled.
|
|
308
337
|
*/
|
|
309
338
|
get projection(): ProjectionLike;
|
|
339
|
+
/**
|
|
340
|
+
* Gets the openlayer map projection.
|
|
341
|
+
*
|
|
342
|
+
* @type {ProjectionLike}
|
|
343
|
+
* @returns {ProjectionLike} The map's openlayer code
|
|
344
|
+
*/
|
|
345
|
+
get OLprojection(): ProjectionLike;
|
|
346
|
+
/**
|
|
347
|
+
* Sets the Whether the globe is enabled.
|
|
348
|
+
*
|
|
349
|
+
* @type {boolean}
|
|
350
|
+
* @returns {boolean} Whether the globe is enabled.
|
|
351
|
+
*/
|
|
352
|
+
set globeEnabled(globeEnabled: boolean);
|
|
353
|
+
/**
|
|
354
|
+
* Gets the Whether the globe is enabled.
|
|
355
|
+
*
|
|
356
|
+
* @type {boolean}
|
|
357
|
+
* @returns {boolean} Whether the globe is enabled.
|
|
358
|
+
*/
|
|
359
|
+
get globeEnabled(): boolean;
|
|
310
360
|
/**
|
|
311
361
|
* Sets the sync state for the map.
|
|
312
362
|
*
|
|
@@ -320,6 +370,17 @@ export class EOxMap extends LitElement {
|
|
|
320
370
|
* @returns {string} The ID of the map that this map is synced with.
|
|
321
371
|
*/
|
|
322
372
|
get sync(): string;
|
|
373
|
+
/**
|
|
374
|
+
* Sets the properties of the globe such as the terrain.
|
|
375
|
+
*
|
|
376
|
+
* @param {GlobeConfig} globeConfig - The globe configuration which contains the terrain boolean.
|
|
377
|
+
*/
|
|
378
|
+
set globeConfig(globeConfig: GlobeConfig);
|
|
379
|
+
/**
|
|
380
|
+
* Gets the current globe configuration properties.
|
|
381
|
+
* @returns {GlobeConfig}
|
|
382
|
+
*/
|
|
383
|
+
get globeConfig(): GlobeConfig;
|
|
323
384
|
/**
|
|
324
385
|
* Adds or updates a layer on the map.
|
|
325
386
|
*
|
|
@@ -349,48 +410,59 @@ export class EOxMap extends LitElement {
|
|
|
349
410
|
* Retrieves a layer from the map by its ID.
|
|
350
411
|
*
|
|
351
412
|
* @param {string} layerId - The ID of the layer to retrieve.
|
|
352
|
-
* @returns {AnyLayerWithSource} The layer object.
|
|
413
|
+
* @returns {import("./types").AnyLayerWithSource} The layer object.
|
|
353
414
|
*/
|
|
354
|
-
getLayerById(layerId: string): AnyLayerWithSource;
|
|
415
|
+
getLayerById(layerId: string): import("./types").AnyLayerWithSource;
|
|
355
416
|
/**
|
|
356
417
|
* Lifecycle method called after the component's first update.
|
|
357
418
|
* Sets up initial configurations like zoom extent.
|
|
358
419
|
*/
|
|
359
420
|
firstUpdated(): void;
|
|
360
421
|
/**
|
|
361
|
-
*
|
|
422
|
+
* Converts an array of OpenLayers features into a GeoJSON object.
|
|
362
423
|
*
|
|
363
|
-
* @
|
|
364
|
-
|
|
365
|
-
parseFeature: Function;
|
|
366
|
-
/**
|
|
367
|
-
* Parses text into a feature.
|
|
424
|
+
* @param {Array<import("ol/Feature").default>} features - An array of OpenLayers features to be converted.
|
|
425
|
+
* @returns {Object} - A GeoJSON object representing the provided features.
|
|
368
426
|
*/
|
|
369
|
-
|
|
427
|
+
parseFeature(features: Array<import("ol/Feature").default>): any;
|
|
370
428
|
/**
|
|
371
|
-
*
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
*
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
*
|
|
429
|
+
* This function reads text and attempts to parse it as GeoJSON, KML, or TopoJSON.
|
|
430
|
+
* If successful, it adds the parsed features to the map.
|
|
431
|
+
*
|
|
432
|
+
* @param {string} text - The string containing the geographic data to be parsed.
|
|
433
|
+
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added.
|
|
434
|
+
* @param {EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching.
|
|
435
|
+
* @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones.
|
|
436
|
+
* @param {boolean} animate - Optional boolean flag indicating whether to animate the map on feature change.
|
|
437
|
+
* @return {void}
|
|
380
438
|
*/
|
|
381
|
-
|
|
439
|
+
parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: EOxMap, replaceFeatures: boolean, animate: boolean): void;
|
|
382
440
|
/**
|
|
383
|
-
*
|
|
441
|
+
* Fetches the projection definition for a given EPSG code from epsg.io and registers the projection using proj4.
|
|
442
|
+
*
|
|
443
|
+
* @param {string | number} code - The EPSG code (e.g., 4326 or 'EPSG:4326').
|
|
444
|
+
* @returns {Promise<import("ol/proj/Projection").default>} - A promise that resolves to the registered projection.
|
|
384
445
|
*/
|
|
385
|
-
|
|
446
|
+
registerProjectionFromCode(code: string | number): Promise<import("ol/proj/Projection").default>;
|
|
386
447
|
/**
|
|
387
|
-
*
|
|
448
|
+
* Registers a projection under a given name using a proj4 definition.
|
|
449
|
+
* This allows OpenLayers to recognize and work with custom or predefined projections.
|
|
450
|
+
*
|
|
451
|
+
* @param {string} name - The name of the projection (e.g., "EPSG:4326").
|
|
452
|
+
* @param {string | proj4.ProjectionDefinition} projection - The proj4 projection definition string or object.
|
|
453
|
+
* @param {import("ol/extent").Extent} [extent=undefined] - Optional extent for the projection. Defines the coordinate system's valid area.
|
|
388
454
|
*/
|
|
389
|
-
|
|
455
|
+
registerProjection(name: string, projection: string | proj4.ProjectionDefinition, extent?: import("ol/extent").Extent): void;
|
|
390
456
|
/**
|
|
391
|
-
*
|
|
457
|
+
* Returns a flat array of all map layers, including nested layers within groups.
|
|
458
|
+
*
|
|
459
|
+
* Note: If you want to get all layers without groups, use the native OpenLayers `getAllLayers` method:
|
|
460
|
+
* https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html#getAllLayers
|
|
461
|
+
*
|
|
462
|
+
* @param {Array<import("./types").AnyLayer>} layers - Array of OpenLayers layers, possibly containing groups.
|
|
463
|
+
* @returns {Array<import("./types").AnyLayer>} layers - Flattened array of input layers
|
|
392
464
|
*/
|
|
393
|
-
|
|
465
|
+
getFlatLayersArray(layers: Array<import("./types").AnyLayer>): Array<import("./types").AnyLayer>;
|
|
394
466
|
render(): import("lit-html").TemplateResult<1>;
|
|
395
467
|
#private;
|
|
396
468
|
}
|
|
@@ -400,12 +472,10 @@ export type ControlDictionary = import("./types").ControlDictionary;
|
|
|
400
472
|
export type ConfigObject = import("./types").ConfigObject;
|
|
401
473
|
export type ProjectionLike = import("./types").ProjectionLike;
|
|
402
474
|
export type AnyLayerWithSource = import("./types").AnyLayerWithSource;
|
|
475
|
+
export type GlobeConfig = import("./types").GlobeConfig;
|
|
403
476
|
import { LitElement } from "lit";
|
|
404
|
-
import {
|
|
405
|
-
import { registerProjectionFromCode } from "./helpers";
|
|
406
|
-
import { registerProjection } from "./helpers";
|
|
407
|
-
import { getFlatLayersArray } from "./helpers";
|
|
477
|
+
import { buffer } from "ol/extent";
|
|
408
478
|
import { transform } from "./helpers";
|
|
409
479
|
import { transformExtent } from "./helpers";
|
|
410
|
-
|
|
480
|
+
export { buffer, transform, transformExtent };
|
|
411
481
|
//# 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":"AA8CA;;;;;;;;KAQK;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBC;IAgFD;;;OAGG;IACH,kBAFU,cAAc,CAEO;IAc7B;;;;OAIG;IACH,KAFU,OAAO,QAAQ,EAAE,OAAO,CAchC;IAEF;;;;OAIG;IACH;;MAAsB;IAEtB;;;;OAIG;IACH;;MAA4B;IAE5B;;;;OAIG;IACH;;MAAqB;IACrB;;;;OAIG;IACH,OAFU,GAAG,GAAC,IAAI,CAED;IAGnB;;;;OAIG;IACH,mBAFW,KAAK,CAAC,MAAM,CAAC,EAQvB;IAED;;;;;OAKG;IACH,cAHU,KAAK,CAAC,MAAM,CAAC,CAKtB;IAED;;;;OAIG;IACH,mBAFW,YAAY,EAItB;IAED;;;;;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;IACH,kBAFW,MAAM,QAIhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,GACJ,OAAO,SAAS,EAAE,kBAAkB,CAIhD;IAED;;;OAGG;IACH,qBAEC;IAED;;;;;OAKG;IACH,uBAHW,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,OAK7C;IAED;;;;;;;;;;OAUG;IACH,yBAPW,MAAM,eACN,OAAO,UAAU,EAAE,MAAM,UACzB,MAAM,mBACN,OAAO,WACP,OAAO,GACN,IAAI,CAIf;IAED;;;;;OAKG;IACH,iCAHW,MAAM,GAAG,MAAM,GACb,OAAO,CAAC,OAAO,oBAAoB,EAAE,OAAO,CAAC,CAIzD;IAED;;;;;;;OAOG;IACH,yBAJW,MAAM,cACN,MAAM,GAAG,KAAK,CAAC,oBAAoB,WACnC,OAAO,WAAW,EAAE,MAAM,QAIpC;IAED;;;;;;;;OAQG;IACH,2BAHW,KAAK,CAAC,OAAO,SAAS,EAAE,QAAQ,CAAC,GAC/B,KAAK,CAAC,OAAO,SAAS,EAAE,QAAQ,CAAC,CAI7C;IAGD,+CAiBC;;CACF;uBA9qBY,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;0BACpC,OAAO,SAAS,EAAE,WAAW;2BAnDT,KAAK;uBAMf,WAAW;0BAW3B,WAAW;gCAAX,WAAW"}
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
export { default as animateToStateMethod } from "./animate-to-state";
|
|
2
2
|
export { default as addOrUpdateLayerMethod } from "./add-update-layer";
|
|
3
3
|
export { default as firstUpdatedMethod } from "./first-updated";
|
|
4
|
-
export { setCenterMethod, setZoomExtentMethod, setControlsMethod, setLayersMethod, setPreventScrollMethod, setConfigMethod, setProjectionMethod, setSyncMethod } from "./setters";
|
|
4
|
+
export { setCenterMethod, setZoomExtentMethod, setControlsMethod, setLayersMethod, setPreventScrollMethod, setConfigMethod, setProjectionMethod, setSyncMethod, setTerrainMethod } from "./setters";
|
|
5
5
|
export { getLonLatCenterMethod, getLonLatExtentMethod, getZoomExtentMethod } from "./getters";
|
|
6
6
|
export { removeInteractionMethod, removeSelectMethod, removeControlMethod } from "./remove.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -73,6 +73,7 @@ export function setProjectionMethod(projection: ProjectionLike, oldProjection: P
|
|
|
73
73
|
* @returns {string} - The sync parameter.
|
|
74
74
|
*/
|
|
75
75
|
export function setSyncMethod(sync: string, EOxMap: import("../../main").EOxMap): string;
|
|
76
|
+
export function setTerrainMethod(globeConfig: any, EOxMap: any): any;
|
|
76
77
|
export type EoxLayer = import("../../layers").EoxLayer;
|
|
77
78
|
export type ControlType = import("../../types").ControlType;
|
|
78
79
|
export type ControlDictionary = import("../../types").ControlDictionary;
|
|
@@ -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":"AAoBA;;;;;;;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;AAED,qEAaC;uBArbY,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"}
|