@opengis/widgets 0.0.43 → 0.0.44
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/components.d.ts.map +1 -1
- package/dist/index-W-qQIppj-BsopI3Hz.js +2383 -0
- package/dist/index.css +1 -1
- package/dist/index.js +13628 -4287
- package/dist/index.umd.cjs +51 -38
- package/dist/widgets/map/MapWidget.vue.d.ts +14 -74
- package/dist/widgets/map/MapWidget.vue.d.ts.map +1 -1
- package/dist/widgets/map/index.d.ts +2 -0
- package/dist/widgets/map/index.d.ts.map +1 -0
- package/dist/widgets/map/useMap.d.ts +124 -0
- package/dist/widgets/map/useMap.d.ts.map +1 -0
- package/dist/widgets/map/widgets/CursorCoordinates.vue.d.ts +6 -0
- package/dist/widgets/map/widgets/CursorCoordinates.vue.d.ts.map +1 -0
- package/dist/widgets/map/widgets/LayerMenu.vue.d.ts +3 -0
- package/dist/widgets/map/widgets/LayerMenu.vue.d.ts.map +1 -0
- package/dist/widgets/map/widgets/Legend.vue.d.ts +11 -0
- package/dist/widgets/map/widgets/Legend.vue.d.ts.map +1 -0
- package/dist/widgets/map/widgets/MapCenterControl.vue.d.ts +11 -0
- package/dist/widgets/map/widgets/MapCenterControl.vue.d.ts.map +1 -0
- package/dist/widgets/map/widgets/MapSearchWidget.vue.d.ts +11 -0
- package/dist/widgets/map/widgets/MapSearchWidget.vue.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/widgets/map/map.d.ts +0 -109
- package/dist/widgets/map/map.d.ts.map +0 -1
- package/dist/widgets/map/util.d.ts +0 -2
- package/dist/widgets/map/util.d.ts.map +0 -1
|
@@ -1,81 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
opacity?: number;
|
|
4
|
-
color?: string;
|
|
5
|
-
stroke?: string;
|
|
6
|
-
width?: number;
|
|
7
|
-
colorAttr?: string;
|
|
8
|
-
colorSet?: Record<string, string>;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
interface PopupFieldConfig {
|
|
12
|
-
field: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
}
|
|
15
|
-
interface MapLayerConfig {
|
|
16
|
-
id?: string | number;
|
|
17
|
-
name?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
style?: MapLayerStyle;
|
|
20
|
-
visible?: boolean;
|
|
21
|
-
overlay?: boolean;
|
|
22
|
-
service?: string;
|
|
23
|
-
sourceLayer?: string;
|
|
24
|
-
layer?: string;
|
|
25
|
-
service_layer?: string;
|
|
26
|
-
service_key?: string;
|
|
27
|
-
map_key?: string;
|
|
28
|
-
dataset?: {
|
|
29
|
-
layer?: string;
|
|
30
|
-
};
|
|
31
|
-
maxzoom?: number;
|
|
32
|
-
params?: Record<string, any>;
|
|
33
|
-
options?: Record<string, any>;
|
|
34
|
-
popup?: PopupFieldConfig[] | false;
|
|
35
|
-
bounds?: [number, number, number, number];
|
|
36
|
-
}
|
|
37
|
-
interface MapLegendEntry {
|
|
1
|
+
import { type MapLayerDefinition } from "./useMap";
|
|
2
|
+
interface LegendDefinition {
|
|
38
3
|
color?: string;
|
|
39
4
|
label?: string;
|
|
40
5
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
geom?: object;
|
|
44
|
-
id?: string;
|
|
45
|
-
katottg?: string;
|
|
46
|
-
tms?: string | string[];
|
|
47
|
-
layers?: MapLayerConfig[];
|
|
48
|
-
title?: string;
|
|
6
|
+
type ToolName = "home" | "fullscreen" | "scale" | "position" | "search";
|
|
7
|
+
type __VLS_Props = {
|
|
49
8
|
height?: string | number;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
layerId: string;
|
|
58
|
-
title?: string | undefined;
|
|
59
|
-
properties: Record<string, any>;
|
|
60
|
-
entries: {
|
|
61
|
-
label: string;
|
|
62
|
-
value: string;
|
|
63
|
-
}[];
|
|
64
|
-
latlng: {
|
|
65
|
-
lat: number;
|
|
66
|
-
lng: number;
|
|
67
|
-
};
|
|
68
|
-
} | null;
|
|
69
|
-
};
|
|
70
|
-
type __VLS_Slots = {} & {
|
|
71
|
-
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
center?: [number, number];
|
|
10
|
+
zoom?: number;
|
|
11
|
+
geom?: any;
|
|
12
|
+
layers?: MapLayerDefinition[];
|
|
13
|
+
legend?: LegendDefinition[];
|
|
14
|
+
tools?: ToolName[];
|
|
15
|
+
katottg?: string;
|
|
72
16
|
};
|
|
73
|
-
declare const
|
|
74
|
-
|
|
17
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
height: string | number;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
75
20
|
export default _default;
|
|
76
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
-
new (): {
|
|
78
|
-
$slots: S;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
21
|
//# sourceMappingURL=MapWidget.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapWidget.vue.d.ts","sourceRoot":"","sources":["../../../src/widgets/map/MapWidget.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapWidget.vue.d.ts","sourceRoot":"","sources":["../../../src/widgets/map/MapWidget.vue"],"names":[],"mappings":"AAqtBA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAa/E,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAExE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;;YARS,MAAM,GAAG,MAAM;;AAq5B1B,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/map/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
export interface UseMapOptions {
|
|
3
|
+
container: Ref<HTMLElement | null> | HTMLElement | string;
|
|
4
|
+
center?: [number, number];
|
|
5
|
+
zoom?: number;
|
|
6
|
+
style?: Record<string, any> | string;
|
|
7
|
+
mapOptions?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
export interface PopupFieldConfig {
|
|
10
|
+
field: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CardRowConfig {
|
|
14
|
+
field: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CardActionConfig {
|
|
18
|
+
url: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
target?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CardConfig {
|
|
23
|
+
rows?: Array<CardRowConfig | string>;
|
|
24
|
+
actions?: CardActionConfig[];
|
|
25
|
+
api?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface MapLayerStyle {
|
|
28
|
+
type?: "polygon" | "line" | "point";
|
|
29
|
+
color?: string;
|
|
30
|
+
stroke?: string;
|
|
31
|
+
width?: number;
|
|
32
|
+
border?: number;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
colorAttr?: string;
|
|
35
|
+
colorSet?: Record<string, string>;
|
|
36
|
+
radius?: number;
|
|
37
|
+
pointZoom?: number;
|
|
38
|
+
text?: string;
|
|
39
|
+
label?: string;
|
|
40
|
+
textSize?: number;
|
|
41
|
+
textColor?: string;
|
|
42
|
+
textHaloColor?: string;
|
|
43
|
+
textHaloWidth?: number;
|
|
44
|
+
textZoom?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface MapLayerDefinition {
|
|
47
|
+
id?: string | number;
|
|
48
|
+
name?: string;
|
|
49
|
+
url?: string;
|
|
50
|
+
service?: string;
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
bounds?: [number, number, number, number];
|
|
53
|
+
style?: MapLayerStyle | null;
|
|
54
|
+
sourceLayer?: string;
|
|
55
|
+
layer?: string;
|
|
56
|
+
service_layer?: string;
|
|
57
|
+
service_key?: string;
|
|
58
|
+
map_key?: string;
|
|
59
|
+
dataset?: {
|
|
60
|
+
layer?: string;
|
|
61
|
+
};
|
|
62
|
+
minzoom?: number;
|
|
63
|
+
maxzoom?: number;
|
|
64
|
+
options?: Record<string, any>;
|
|
65
|
+
popup?: PopupFieldConfig[] | false;
|
|
66
|
+
card?: CardConfig | null;
|
|
67
|
+
}
|
|
68
|
+
export interface OverlayStateSummary {
|
|
69
|
+
id: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
visible: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface MapState {
|
|
74
|
+
selectedBasemap?: string;
|
|
75
|
+
geometryVisible?: boolean;
|
|
76
|
+
overlays?: OverlayStateSummary[];
|
|
77
|
+
}
|
|
78
|
+
export interface BasemapOption {
|
|
79
|
+
key: string;
|
|
80
|
+
name?: string;
|
|
81
|
+
url: string;
|
|
82
|
+
}
|
|
83
|
+
export interface MapContext {
|
|
84
|
+
map: Ref<any | null>;
|
|
85
|
+
ready: Ref<boolean>;
|
|
86
|
+
setStyle: (style: Record<string, any>) => void;
|
|
87
|
+
flyTo: (options: any) => void;
|
|
88
|
+
fitBounds: (bounds: any, options?: any) => void;
|
|
89
|
+
setCenter: (center: [number, number]) => void;
|
|
90
|
+
setZoom: (zoom: number) => void;
|
|
91
|
+
addControl: (control: any, position?: string) => void;
|
|
92
|
+
removeControl: (control: any) => void;
|
|
93
|
+
on: (type: string, ...args: any[]) => void;
|
|
94
|
+
off: (type: string, ...args: any[]) => void;
|
|
95
|
+
project: (lnglat: any) => any;
|
|
96
|
+
unproject: (point: any) => any;
|
|
97
|
+
state: Ref<MapState>;
|
|
98
|
+
basemapOptions: Ref<BasemapOption[]>;
|
|
99
|
+
setBasemap?: (key: string) => void;
|
|
100
|
+
toggleGeometry?: (enabled: boolean) => void;
|
|
101
|
+
setOverlays?: (layers: MapLayerDefinition[]) => void;
|
|
102
|
+
toggleOverlay?: (id: string, visible: boolean) => void;
|
|
103
|
+
getOverlayConfig?: (layerId: string) => MapLayerDefinition | undefined;
|
|
104
|
+
selectedCard: Ref<CardData | null>;
|
|
105
|
+
setBasemapOptions?: (options: BasemapOption[]) => void;
|
|
106
|
+
clearCard?: () => void;
|
|
107
|
+
}
|
|
108
|
+
export interface CardRow {
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
export interface CardAction {
|
|
113
|
+
label: string;
|
|
114
|
+
url: string;
|
|
115
|
+
target?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface CardData {
|
|
118
|
+
title?: string;
|
|
119
|
+
rows: CardRow[];
|
|
120
|
+
actions?: CardAction[];
|
|
121
|
+
html?: string;
|
|
122
|
+
}
|
|
123
|
+
export declare function useMap(options?: UseMapOptions): MapContext;
|
|
124
|
+
//# sourceMappingURL=useMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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,EAAE,UAAU,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA8LD,wBAAgB,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,CA4iB1D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
coordinates: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=CursorCoordinates.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CursorCoordinates.vue.d.ts","sourceRoot":"","sources":["../../../../src/widgets/map/widgets/CursorCoordinates.vue"],"names":[],"mappings":"AAWA,KAAK,WAAW,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;;AAmD3C,wBAMG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=LayerMenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayerMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/widgets/map/widgets/LayerMenu.vue"],"names":[],"mappings":";AAgTA,wBAKG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface LegendItem {
|
|
2
|
+
color: string;
|
|
3
|
+
label: string;
|
|
4
|
+
key: string;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
items: LegendItem[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=Legend.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Legend.vue.d.ts","sourceRoot":"","sources":["../../../../src/widgets/map/widgets/Legend.vue"],"names":[],"mappings":"AAyBA,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AACD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,CAAC;;AA2E3C,wBAMG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
center?: [number, number] | null;
|
|
3
|
+
zoom?: number | null;
|
|
4
|
+
targetCenter?: [number, number] | null;
|
|
5
|
+
targetZoom?: number | null;
|
|
6
|
+
targetLabel?: string | null;
|
|
7
|
+
targetAriaLabel?: string | null;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=MapCenterControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapCenterControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/widgets/map/widgets/MapCenterControl.vue"],"names":[],"mappings":"AAgLA,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;;AAsPD,wBAMG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Tool = "here" | "xy" | "parcel" | "address";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config?: {
|
|
4
|
+
tools?: Tool[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
zoom?: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=MapSearchWidget.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapSearchWidget.vue.d.ts","sourceRoot":"","sources":["../../../../src/widgets/map/widgets/MapSearchWidget.vue"],"names":[],"mappings":"AA4aA,KAAK,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,SAAS,CAAC;AASjD,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;;AA6mBxF,wBAMG"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/widgets",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A collection of independent widgets for comments, history, files, and gallery",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dependencies": {},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@opengis/core": "^0.0.25",
|
|
41
|
+
"@opengis/form": "^0.0.105",
|
|
41
42
|
"@tsconfig/node22": "^22.0.2",
|
|
42
43
|
"@types/node": "^24.2.0",
|
|
43
44
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export declare const MAP_LOCALE: {
|
|
2
|
-
draw: {
|
|
3
|
-
toolbar: {
|
|
4
|
-
actions: {
|
|
5
|
-
title: string;
|
|
6
|
-
text: string;
|
|
7
|
-
};
|
|
8
|
-
finish: {
|
|
9
|
-
title: string;
|
|
10
|
-
text: string;
|
|
11
|
-
};
|
|
12
|
-
undo: {
|
|
13
|
-
title: string;
|
|
14
|
-
text: string;
|
|
15
|
-
};
|
|
16
|
-
buttons: {
|
|
17
|
-
polyline: string;
|
|
18
|
-
polygon: string;
|
|
19
|
-
rectangle: string;
|
|
20
|
-
circle: string;
|
|
21
|
-
marker: string;
|
|
22
|
-
circlemarker: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
handlers: {
|
|
26
|
-
circle: {
|
|
27
|
-
tooltip: {
|
|
28
|
-
start: string;
|
|
29
|
-
end: string;
|
|
30
|
-
};
|
|
31
|
-
radius: string;
|
|
32
|
-
};
|
|
33
|
-
circlemarker: {
|
|
34
|
-
tooltip: {
|
|
35
|
-
start: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
marker: {
|
|
39
|
-
tooltip: {
|
|
40
|
-
start: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
polygon: {
|
|
44
|
-
tooltip: {
|
|
45
|
-
start: string;
|
|
46
|
-
cont: string;
|
|
47
|
-
end: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
polyline: {
|
|
51
|
-
error: string;
|
|
52
|
-
tooltip: {
|
|
53
|
-
start: string;
|
|
54
|
-
cont: string;
|
|
55
|
-
end: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
rectangle: {
|
|
59
|
-
tooltip: {
|
|
60
|
-
start: string;
|
|
61
|
-
end: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
simpleshape: {
|
|
65
|
-
tooltip: {
|
|
66
|
-
end: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
edit: {
|
|
72
|
-
toolbar: {
|
|
73
|
-
actions: {
|
|
74
|
-
save: {
|
|
75
|
-
title: string;
|
|
76
|
-
text: string;
|
|
77
|
-
};
|
|
78
|
-
cancel: {
|
|
79
|
-
title: string;
|
|
80
|
-
text: string;
|
|
81
|
-
};
|
|
82
|
-
clearAll: {
|
|
83
|
-
title: string;
|
|
84
|
-
text: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
buttons: {
|
|
88
|
-
edit: string;
|
|
89
|
-
editDisabled: string;
|
|
90
|
-
remove: string;
|
|
91
|
-
removeDisabled: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
handlers: {
|
|
95
|
-
edit: {
|
|
96
|
-
tooltip: {
|
|
97
|
-
text: string;
|
|
98
|
-
subtext: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
remove: {
|
|
102
|
-
tooltip: {
|
|
103
|
-
text: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/widgets/map/map.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/widgets/map/util.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,OA2B3C"}
|