@eox/drawtools 0.14.2 → 0.15.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 +880 -844
- package/dist/eox-drawtools.umd.cjs +31 -32
- package/package.json +1 -1
- package/src/components/list.js +11 -3
- package/src/main.js +7 -0
- package/src/methods/draw/init-selection.js +40 -11
- package/src/methods/draw/on-draw-end.js +3 -0
- package/types/drawtools/src/components/list.d.ts +9 -0
- package/types/drawtools/src/components/list.d.ts.map +1 -1
- package/types/drawtools/src/main.d.ts +8 -0
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -1
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -1
- package/types/map/src/components/compare.d.ts +2 -2
- package/types/map/src/components/compare.d.ts.map +1 -1
- package/types/map/src/components/tooltip.d.ts +7 -2
- package/types/map/src/components/tooltip.d.ts.map +1 -1
- package/types/map/src/controls/controls.d.ts +0 -6
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/controls/geo-location.d.ts +3 -3
- package/types/map/src/controls/geo-location.d.ts.map +1 -1
- package/types/map/src/controls/loading-indicator.d.ts +1 -1
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts +27 -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/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts +5 -4
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/interactions.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +5 -5
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +2 -2
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/layers.d.ts +116 -0
- package/types/map/src/layers.d.ts.map +1 -0
- package/types/map/src/main.d.ts +6 -6
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts +2 -2
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- package/types/map/src/types.d.ts +28 -38
- package/types/map/src/types.d.ts.map +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
};
|
|
39
|
+
export type OLBasicSources = {
|
|
40
|
+
ImageWMS: typeof import("ol/source/ImageWMS").default;
|
|
41
|
+
OSM: typeof import("ol/source/OSM").default;
|
|
42
|
+
Tile: typeof import("ol/source/Tile").default;
|
|
43
|
+
TileWMS: typeof import("ol/source/TileWMS").default;
|
|
44
|
+
Vector: typeof import("ol/source/Vector").default;
|
|
45
|
+
VectorTile: typeof import("ol/source/VectorTile").default;
|
|
46
|
+
WMTS: typeof import("ol/source/WMTS").default;
|
|
47
|
+
XYZ: typeof import("ol/source/XYZ").default;
|
|
48
|
+
};
|
|
49
|
+
export type OLAdvancedSources = {
|
|
50
|
+
BingMaps: typeof import("ol/source/BingMaps").default;
|
|
51
|
+
CartoDB: typeof import("ol/source/CartoDB").default;
|
|
52
|
+
Cluster: typeof import("ol/source/Cluster").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
|
+
};
|
|
78
|
+
export type OLSources = OLBasicSources & OLAdvancedSources;
|
|
79
|
+
export type OLLayers = OLBasicLayers & OLAdvancedLayers;
|
|
80
|
+
export type OLFormats = OLBasicFormats & OLAdvancedFormats;
|
|
81
|
+
export type EOxFormatType<F extends keyof OLFormats> = F | ({
|
|
82
|
+
type: F;
|
|
83
|
+
} & ConstructorParameters<OLFormats[F]>[0]);
|
|
84
|
+
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">;
|
|
85
|
+
type OlSourceOption<S extends keyof OLSources> = Omit<ConstructorParameters<OLSources[S]>[0], "map" | "layer">;
|
|
86
|
+
type OlLayerOption<T extends keyof OLLayers> = Omit<Omit<ConstructorParameters<OLLayers[T]>[0], "properties">, "source" | "layers" | "map">;
|
|
87
|
+
type EoxSource<S extends keyof OLSources> = (S extends "WMTS" ? OlSourceOption<S> : OlSourceOption<S> extends {
|
|
88
|
+
format?: any;
|
|
89
|
+
} ? Omit<OlSourceOption<S>, "format"> & {
|
|
90
|
+
format?: EOxFormat;
|
|
91
|
+
} : OlSourceOption<S> extends {
|
|
92
|
+
source?: any;
|
|
93
|
+
} ? Omit<OlSourceOption<S>, "source"> & {
|
|
94
|
+
source?: EoxSource<keyof OLSources>;
|
|
95
|
+
} : OlSourceOption<S>) & {
|
|
96
|
+
type: S;
|
|
97
|
+
};
|
|
98
|
+
export type EOxLayerType<T extends keyof OLLayers, S extends keyof OLSources> = (OlLayerOption<T> extends {
|
|
99
|
+
sources?: any;
|
|
100
|
+
} ? Omit<OlLayerOption<T>, "sources"> & {
|
|
101
|
+
sources?: EoxSource<S>[];
|
|
102
|
+
} : OlLayerOption<T>) & {
|
|
103
|
+
type: T;
|
|
104
|
+
properties?: {
|
|
105
|
+
id: string;
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
};
|
|
108
|
+
source?: EoxSource<S>;
|
|
109
|
+
interactions?: T extends "Vector" | "VectorTile" ? Array<import("./types").EOxInteraction> : never;
|
|
110
|
+
};
|
|
111
|
+
export type EOxLayerTypeGroup = Omit<EOxLayerType<"Group", keyof OLSources>, "layers"> & {
|
|
112
|
+
layers: EoxLayer[];
|
|
113
|
+
};
|
|
114
|
+
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"> | EOxLayerTypeGroup;
|
|
115
|
+
export {};
|
|
116
|
+
//# 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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AC,YAAY,EAAE,YAAY,CAAC,GACxC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,GACpC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,GAC3B,YAAY,CAAC,MAAM,EAAE,kBAAkB,CAAC,GACxC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,GAClC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,GAC3B,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,YAAY,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,GACjC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,GACjC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,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,iBAAiB,CAAC"}
|
package/types/map/src/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("./
|
|
2
|
+
* @typedef {import("./layers").EoxLayer} EoxLayer
|
|
3
3
|
* @typedef {import("./types").EOxAnimationOptions} EOxAnimationOptions
|
|
4
4
|
* @typedef {import("./types").ControlDictionary} ControlDictionary
|
|
5
5
|
* @typedef {import("./types").ConfigObject} ConfigObject
|
|
@@ -171,9 +171,9 @@ export class EOxMap extends LitElement {
|
|
|
171
171
|
/**
|
|
172
172
|
* Gets the current map controls.
|
|
173
173
|
*
|
|
174
|
-
* @returns {
|
|
174
|
+
* @returns {ControlDictionary} The current controls applied to the map.
|
|
175
175
|
*/
|
|
176
|
-
get controls():
|
|
176
|
+
get controls(): ControlDictionary;
|
|
177
177
|
/**
|
|
178
178
|
* Sets the layers for the map.
|
|
179
179
|
*
|
|
@@ -189,13 +189,13 @@ export class EOxMap extends LitElement {
|
|
|
189
189
|
/**
|
|
190
190
|
* Enables or disables scroll interactions on the map.
|
|
191
191
|
*
|
|
192
|
-
* @param {
|
|
192
|
+
* @param {boolean} preventScroll - Whether to prevent scroll interactions.
|
|
193
193
|
*/
|
|
194
194
|
set preventScroll(preventScroll: boolean);
|
|
195
195
|
/**
|
|
196
196
|
* Gets the current scroll interaction state.
|
|
197
197
|
*
|
|
198
|
-
* @returns {
|
|
198
|
+
* @returns {boolean} `true` if scroll interactions are prevented, `false` otherwise.
|
|
199
199
|
*/
|
|
200
200
|
get preventScroll(): boolean;
|
|
201
201
|
/**
|
|
@@ -320,7 +320,7 @@ export class EOxMap extends LitElement {
|
|
|
320
320
|
render(): import("lit-html").TemplateResult<1>;
|
|
321
321
|
#private;
|
|
322
322
|
}
|
|
323
|
-
export type EoxLayer = import("./
|
|
323
|
+
export type EoxLayer = import("./layers").EoxLayer;
|
|
324
324
|
export type EOxAnimationOptions = import("./types").EOxAnimationOptions;
|
|
325
325
|
export type ControlDictionary = import("./types").ControlDictionary;
|
|
326
326
|
export type ConfigObject = import("./types").ConfigObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../map/src/main.js"],"names":[],"mappings":"AAsCA;;;;;;;KAOK;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaC;IA8EC;;;;OAIG;IACH,KAFU,OAAO,QAAQ,EAAE,OAAO,CAUhC;IAEF;;;;OAIG;IACH;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AY;6BAC9B,OAAO,SAAS,EAAE,cAAc;iCAChC,OAAO,SAAS,EAAE,kBAAkB;2BA1ChB,KAAK;mCAgB/B,WAAW;2CAAX,WAAW;mCAAX,WAAW;mCAAX,WAAW;0BAAX,WAAW;gCAAX,WAAW;uBAXK,WAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("../../
|
|
2
|
+
* @typedef {import("../../layers").EoxLayer} EoxLayer
|
|
3
3
|
* */
|
|
4
4
|
/**
|
|
5
5
|
* Adds a new layer to the map or updates an existing layer based on the provided JSON data.
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* @returns {Object} - The newly created or updated layer object.
|
|
10
10
|
*/
|
|
11
11
|
export default function addOrUpdateLayerMethod(json: EoxLayer, EOxMap: import("../../main").EOxMap): any;
|
|
12
|
-
export type EoxLayer = import("../../
|
|
12
|
+
export type EoxLayer = import("../../layers").EoxLayer;
|
|
13
13
|
//# sourceMappingURL=add-update-layer.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("../../
|
|
2
|
+
* @typedef {import("../../layers").EoxLayer} EoxLayer
|
|
3
3
|
* @typedef {import("../../types").ControlType} ControlType
|
|
4
4
|
* @typedef {import("../../types").ControlDictionary} ControlDictionary
|
|
5
5
|
* @typedef {import("../../types").SelectOptions} SelectOptions
|
|
@@ -73,7 +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 type EoxLayer = import("../../
|
|
76
|
+
export type EoxLayer = import("../../layers").EoxLayer;
|
|
77
77
|
export type ControlType = import("../../types").ControlType;
|
|
78
78
|
export type ControlDictionary = import("../../types").ControlDictionary;
|
|
79
79
|
export type SelectOptions = import("../../types").SelectOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/setters.js"],"names":[],"mappings":"AAkBA;;;;;;;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;AAYD;;;;;;;GAOG;AACH,wCALW,KAAK,CAAC,QAAQ,CAAC,aACf,KAAK,CAAC,QAAQ,CAAC,UACf,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"setters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/setters.js"],"names":[],"mappings":"AAkBA;;;;;;;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;AAYD;;;;;;;GAOG;AACH,wCALW,KAAK,CAAC,QAAQ,CAAC,aACf,KAAK,CAAC,QAAQ,CAAC,UACf,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,QAAQ,CAAC,CAiI3B;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,CA6BxB;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;uBAzaY,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"}
|
package/types/map/src/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OLBasicLayers, OLAdvancedLayers, OLBasicSources, OLAdvancedSources, OLAdvancedFormats } from "./layers";
|
|
1
2
|
export type DrawOptions = Omit<import("ol/interaction/Draw").Options, "type"> & {
|
|
2
3
|
id: string | number;
|
|
3
4
|
type: "Point" | "LineString" | "Polygon" | "Circle" | "Box";
|
|
@@ -5,16 +6,11 @@ export type DrawOptions = Omit<import("ol/interaction/Draw").Options, "type"> &
|
|
|
5
6
|
active?: boolean;
|
|
6
7
|
geometryFunction?: import("ol/interaction/Draw").GeometryFunction;
|
|
7
8
|
};
|
|
8
|
-
export type layerType =
|
|
9
|
-
export type sourceType =
|
|
9
|
+
export type layerType = keyof OLBasicLayers | keyof OLAdvancedLayers;
|
|
10
|
+
export type sourceType = keyof OLBasicSources | keyof OLAdvancedSources;
|
|
10
11
|
export type VectorOrVectorTileLayer = import("ol/layer").Vector | import("ol/layer").VectorTile;
|
|
11
12
|
export type AnyLayerWithSource = import("ol/layer/Base").default | import("ol/layer/BaseImage").default<import("ol/source/Image").default, import("ol/renderer/canvas/ImageLayer").default> | import("ol/layer/Tile").default<import("ol/source/Tile").default> | VectorOrVectorTileLayer;
|
|
12
13
|
export type AnyLayer = AnyLayerWithSource | import("ol/layer/Group").default;
|
|
13
|
-
export type formatWithOptions = {
|
|
14
|
-
type: string;
|
|
15
|
-
dataProjection?: string;
|
|
16
|
-
featureProjection?: string;
|
|
17
|
-
};
|
|
18
14
|
export type EOxInteraction = {
|
|
19
15
|
active?: boolean;
|
|
20
16
|
type: "draw" | "select";
|
|
@@ -22,31 +18,9 @@ export type EOxInteraction = {
|
|
|
22
18
|
[key: string]: any;
|
|
23
19
|
};
|
|
24
20
|
};
|
|
25
|
-
export type EoxLayer =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
id: string;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
};
|
|
31
|
-
minZoom?: number;
|
|
32
|
-
maxZoom?: number;
|
|
33
|
-
minResolution?: number;
|
|
34
|
-
maxResolution?: number;
|
|
35
|
-
opacity?: number;
|
|
36
|
-
visible?: boolean;
|
|
37
|
-
source?: {
|
|
38
|
-
type: sourceType;
|
|
39
|
-
format?: string | formatWithOptions;
|
|
40
|
-
tileGrid?: object;
|
|
41
|
-
projection?: import("ol/proj").ProjectionLike;
|
|
42
|
-
};
|
|
43
|
-
layers?: Array<EoxLayer>;
|
|
44
|
-
style?: import("ol/style/flat").FlatStyleLike;
|
|
45
|
-
interactions?: Array<EOxInteraction>;
|
|
46
|
-
zIndex?: number;
|
|
47
|
-
renderMode?: "vector" | "vectorImage";
|
|
48
|
-
};
|
|
49
|
-
export type SelectLayer = import("ol/layer/VectorTile").default | import("ol/layer/Vector").default;
|
|
21
|
+
export type EoxLayer = import("./layers").EoxLayer;
|
|
22
|
+
export type EoxLayers = import("./layers").EoxLayer[];
|
|
23
|
+
export type SelectLayer = InstanceType<typeof import("ol/layer/VectorTile").default> | InstanceType<typeof import("ol/layer/Vector").default>;
|
|
50
24
|
export type SelectOptions = Omit<import("ol/interaction/Select").Options, "condition"> & {
|
|
51
25
|
id: string | number;
|
|
52
26
|
idProperty?: string;
|
|
@@ -109,9 +83,22 @@ export type LoadingIndicatorOptions = import("ol/control/Control").Options & {
|
|
|
109
83
|
*/
|
|
110
84
|
type?: LoadingIndicatorType;
|
|
111
85
|
};
|
|
112
|
-
export type ControlType =
|
|
86
|
+
export type ControlType = keyof ControlDictionary;
|
|
87
|
+
type Override<T, V> = Omit<T, keyof V> & V;
|
|
113
88
|
export type ControlDictionary = {
|
|
114
|
-
|
|
89
|
+
Zoom?: ConstructorParameters<typeof import("ol/control/Zoom").default>[0];
|
|
90
|
+
ScaleLine?: ConstructorParameters<typeof import("ol/control/ScaleLine").default>[0];
|
|
91
|
+
Rotate?: ConstructorParameters<typeof import("ol/control/Rotate").default>[0];
|
|
92
|
+
FullScreen?: ConstructorParameters<typeof import("ol/control/FullScreen").default>[0];
|
|
93
|
+
ZoomSlider?: ConstructorParameters<typeof import("ol/control/ZoomSlider").default>[0];
|
|
94
|
+
Attribution?: ConstructorParameters<typeof import("ol/control/Attribution").default>[0];
|
|
95
|
+
OverviewMap?: Override<ConstructorParameters<typeof import("ol/control/OverviewMap").default>[0], {
|
|
96
|
+
layers?: EoxLayer[] | AnyLayer[];
|
|
97
|
+
}>;
|
|
98
|
+
ZoomToExtent?: ConstructorParameters<typeof import("ol/control/ZoomToExtent").default>[0];
|
|
99
|
+
MousePosition?: ConstructorParameters<typeof import("ol/control/MousePosition").default>[0];
|
|
100
|
+
Geolocation?: ConstructorParameters<typeof import("./controls/geo-location").default>[0];
|
|
101
|
+
LoadingIndicator?: ConstructorParameters<typeof import("./controls/loading-indicator").default>[0];
|
|
115
102
|
};
|
|
116
103
|
export type AttributionLike = import("ol/source/Source").AttributionLike | string | Array<string>;
|
|
117
104
|
export type ProjectionLike = import("ol/proj").ProjectionLike;
|
|
@@ -143,21 +130,24 @@ export type HTMLElementEvent<T extends HTMLElement> = Event & {
|
|
|
143
130
|
export type EOxAnimationOptions = import("ol/View").AnimationOptions & import("ol/View").FitOptions;
|
|
144
131
|
export type ConfigObject = {
|
|
145
132
|
controls: ControlDictionary;
|
|
146
|
-
layers:
|
|
133
|
+
layers: EoxLayers;
|
|
147
134
|
view: {
|
|
148
135
|
center: Array<number>;
|
|
149
136
|
zoom: number;
|
|
150
137
|
zoomExtent?: import("ol/extent").Extent;
|
|
151
138
|
projection?: ProjectionLike;
|
|
139
|
+
minZoom: number;
|
|
140
|
+
maxZoom: number;
|
|
152
141
|
};
|
|
153
142
|
preventScroll: boolean;
|
|
154
143
|
animationOptions?: EOxAnimationOptions;
|
|
155
144
|
};
|
|
156
145
|
declare global {
|
|
157
146
|
interface Window {
|
|
158
|
-
eoxMapAdvancedOlFormats:
|
|
159
|
-
eoxMapAdvancedOlLayers:
|
|
160
|
-
eoxMapAdvancedOlSources:
|
|
147
|
+
eoxMapAdvancedOlFormats: OLAdvancedFormats;
|
|
148
|
+
eoxMapAdvancedOlLayers: OLAdvancedLayers;
|
|
149
|
+
eoxMapAdvancedOlSources: OLAdvancedSources;
|
|
161
150
|
}
|
|
162
151
|
}
|
|
152
|
+
export {};
|
|
163
153
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../map/src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,OAAO,qBAAqB,EAAE,OAAO,EACrC,MAAM,CACP,GAAG;IACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,qBAAqB,EAAE,gBAAgB,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../map/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,OAAO,qBAAqB,EAAE,OAAO,EACrC,MAAM,CACP,GAAG;IACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,qBAAqB,EAAE,gBAAgB,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC;AACrE,MAAM,MAAM,UAAU,GAAG,MAAM,cAAc,GAAG,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAC/B,OAAO,UAAU,EAAE,MAAM,GACzB,OAAO,UAAU,EAAE,UAAU,CAA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