ym-giswidget-2d 1.0.46 → 1.0.48
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/components/area-measurement/AreaMeasurement.vue.d.ts +150 -0
- package/components/area-measurement/AreaMeasurement.vue.js +192 -0
- package/components/area-measurement/AreaMeasurement.vue2.js +4 -0
- package/components/area-measurement/index.d.ts +150 -0
- package/components/area-measurement/index.js +7 -0
- package/components/distance-measurement/DistanceMeasurement.vue.js +9 -0
- package/components/export/Export.vue.d.ts +1 -1
- package/components/export/Export.vue.js +1 -1
- package/components/export/Export.vue2.js +1 -1
- package/components/export/index.css +1 -1
- package/components/export/index.d.ts +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.js +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
- package/components/horizontally-top-toolbar/index.css +10 -9
- package/components/identify/Identify.vue.d.ts +140 -1
- package/components/identify/Identify.vue.js +10 -2
- package/components/identify/index.d.ts +166 -17
- package/components/map-view/MapView.vue.d.ts +4 -4
- package/components/map-view/MapView.vue.js +2 -2
- package/components/map-view/index.d.ts +4 -4
- package/components/mouse-position/MousePositon.vue.d.ts +1 -0
- package/components/mouse-position/MousePositon.vue.js +1 -1
- package/components/mouse-position/MousePositon.vue2.js +4 -2
- package/components/mouse-position/index.css +5 -5
- package/components/mouse-position/index.d.ts +1 -0
- package/components/multi-screen/MultiScreen.vue.d.ts +2 -2
- package/components/multi-screen/index.d.ts +2 -2
- package/components/popup/Popup.vue.d.ts +288 -1
- package/components/popup/Popup.vue.js +1 -1
- package/components/popup/Popup.vue2.js +7 -3
- package/components/popup/index.css +10 -10
- package/components/popup/index.d.ts +288 -138
- package/components/scale-line/ScaleLine.vue.d.ts +10 -0
- package/components/scale-line/ScaleLine.vue.js +1 -1
- package/components/scale-line/ScaleLine.vue2.js +7 -7
- package/components/scale-line/index.css +5 -5
- package/components/scale-line/index.d.ts +15 -0
- package/components/select/Select.vue.js +1 -1
- package/components/select/index.d.ts +12 -12
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +2 -2
|
@@ -11,5 +11,144 @@ type __VLS_Props = {
|
|
|
11
11
|
polygonStyle?: IStyle;
|
|
12
12
|
cancePolygonStyle?: IStyle;
|
|
13
13
|
};
|
|
14
|
-
declare
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
footer?(_: {
|
|
18
|
+
feature: {
|
|
19
|
+
isSelected?: boolean | undefined;
|
|
20
|
+
fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
|
|
21
|
+
layerId?: string | undefined;
|
|
22
|
+
tag?: string | undefined;
|
|
23
|
+
tempLayer?: {
|
|
24
|
+
getRenderBuffer: () => number | undefined;
|
|
25
|
+
getRenderOrder: () => (arg0: import('ol').default, arg1: import('ol').default) => number | null | undefined;
|
|
26
|
+
getStyle: () => import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined;
|
|
27
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
28
|
+
getUpdateWhileAnimating: () => boolean;
|
|
29
|
+
getUpdateWhileInteracting: () => boolean;
|
|
30
|
+
setRenderOrder: (renderOrder: import('ol/render').OrderFunction | null | undefined) => void;
|
|
31
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined) => void;
|
|
32
|
+
on: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
33
|
+
once: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
34
|
+
un: import('ol/layer/Layer').LayerOnSignature<void>;
|
|
35
|
+
render: (frameState: import('ol/Map').FrameState | null, target: HTMLElement) => HTMLElement | null;
|
|
36
|
+
getSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
37
|
+
getRenderSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
38
|
+
getFeatures: (pixel: import('ol/pixel').Pixel) => Promise<Array<import('ol/Feature').FeatureLike>>;
|
|
39
|
+
getData: (pixel: import('ol/pixel').Pixel) => Uint8ClampedArray | Uint8Array | Float32Array | DataView | null;
|
|
40
|
+
isVisible: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => boolean;
|
|
41
|
+
getAttributions: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => Array<string>;
|
|
42
|
+
unrender: () => void;
|
|
43
|
+
getDeclutter: () => string;
|
|
44
|
+
renderDeclutter: (frameState: import('ol/Map').FrameState, layerState: import('ol/layer/Layer').State) => void;
|
|
45
|
+
renderDeferred: (frameState: import('ol/Map').FrameState) => void;
|
|
46
|
+
setMapInternal: (map: import('ol').default | null) => void;
|
|
47
|
+
getMapInternal: () => import('ol').default | null;
|
|
48
|
+
setMap: (map: import('ol').default | null) => void;
|
|
49
|
+
setSource: (source: import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null) => void;
|
|
50
|
+
getRenderer: () => import('ol/renderer/canvas/VectorLayer').default | null;
|
|
51
|
+
hasRenderer: () => boolean;
|
|
52
|
+
getBackground: () => import('ol/layer/Base').BackgroundColor | false;
|
|
53
|
+
getClassName: () => string;
|
|
54
|
+
getLayerState: (managed?: boolean | undefined) => import('ol/layer/Layer').State;
|
|
55
|
+
getLayersArray: (array?: import('ol/layer').default<import('ol/source').default, import('ol/renderer/Layer').default<any>>[] | undefined) => Array<import('ol/layer').default>;
|
|
56
|
+
getLayerStatesArray: (states?: import('ol/layer/Layer').State[] | undefined) => Array<import('ol/layer/Layer').State>;
|
|
57
|
+
getExtent: () => import('ol/extent').Extent | undefined;
|
|
58
|
+
getMaxResolution: () => number;
|
|
59
|
+
getMinResolution: () => number;
|
|
60
|
+
getMinZoom: () => number;
|
|
61
|
+
getMaxZoom: () => number;
|
|
62
|
+
getOpacity: () => number;
|
|
63
|
+
getSourceState: () => import('ol/source/Source').State;
|
|
64
|
+
getVisible: () => boolean;
|
|
65
|
+
getZIndex: () => number | undefined;
|
|
66
|
+
setBackground: (background?: import('ol/layer/Base').BackgroundColor | undefined) => void;
|
|
67
|
+
setExtent: (extent: import('ol/extent').Extent | undefined) => void;
|
|
68
|
+
setMaxResolution: (maxResolution: number) => void;
|
|
69
|
+
setMinResolution: (minResolution: number) => void;
|
|
70
|
+
setMaxZoom: (maxZoom: number) => void;
|
|
71
|
+
setMinZoom: (minZoom: number) => void;
|
|
72
|
+
setOpacity: (opacity: number) => void;
|
|
73
|
+
setVisible: (visible: boolean) => void;
|
|
74
|
+
setZIndex: (zindex: number) => void;
|
|
75
|
+
get: (key: string) => any;
|
|
76
|
+
getKeys: () => Array<string>;
|
|
77
|
+
getProperties: () => {
|
|
78
|
+
[x: string]: any;
|
|
79
|
+
};
|
|
80
|
+
getPropertiesInternal: () => {
|
|
81
|
+
[x: string]: any;
|
|
82
|
+
} | null;
|
|
83
|
+
hasProperties: () => boolean;
|
|
84
|
+
notify: (key: string, oldValue: any) => void;
|
|
85
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
86
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
87
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
88
|
+
setProperties: (values: {
|
|
89
|
+
[x: string]: any;
|
|
90
|
+
}, silent?: boolean | undefined) => void;
|
|
91
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
92
|
+
changed: () => void;
|
|
93
|
+
getRevision: () => number;
|
|
94
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
95
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
96
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
97
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
98
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
99
|
+
dispose: () => void;
|
|
100
|
+
} | undefined;
|
|
101
|
+
on: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
102
|
+
once: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
103
|
+
un: import('ol/Feature').FeatureOnSignature<void>;
|
|
104
|
+
clone: () => import('ol').Feature<import('ol/geom').Geometry>;
|
|
105
|
+
getGeometry: () => import('ol/geom').Geometry | undefined;
|
|
106
|
+
getId: () => number | string | undefined;
|
|
107
|
+
getGeometryName: () => string;
|
|
108
|
+
getStyle: () => import('ol/style/Style').StyleLike | undefined;
|
|
109
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
110
|
+
setGeometry: (geometry: import('ol/geom').Geometry | undefined) => void;
|
|
111
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | undefined) => void;
|
|
112
|
+
setId: (id: number | string | undefined) => void;
|
|
113
|
+
setGeometryName: (name: string) => void;
|
|
114
|
+
get: (key: string) => any;
|
|
115
|
+
getKeys: () => Array<string>;
|
|
116
|
+
getProperties: () => {
|
|
117
|
+
[x: string]: any;
|
|
118
|
+
};
|
|
119
|
+
getPropertiesInternal: () => {
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
} | null;
|
|
122
|
+
hasProperties: () => boolean;
|
|
123
|
+
notify: (key: string, oldValue: any) => void;
|
|
124
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
125
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
126
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
127
|
+
setProperties: (values: {
|
|
128
|
+
[x: string]: any;
|
|
129
|
+
}, silent?: boolean | undefined) => void;
|
|
130
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
131
|
+
changed: () => void;
|
|
132
|
+
getRevision: () => number;
|
|
133
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
134
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
135
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
136
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
137
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
138
|
+
dispose: () => void;
|
|
139
|
+
} | undefined;
|
|
140
|
+
layerName: string | undefined;
|
|
141
|
+
}): any;
|
|
142
|
+
};
|
|
143
|
+
refs: {};
|
|
144
|
+
rootEl: any;
|
|
145
|
+
};
|
|
146
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
147
|
+
declare const __VLS_component: 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>;
|
|
148
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
149
|
export default _default;
|
|
150
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
151
|
+
new (): {
|
|
152
|
+
$slots: S;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, reactive, onMounted, onUnmounted, createBlock, createCommentVNode, openBlock, unref } from "vue";
|
|
1
|
+
import { defineComponent, reactive, onMounted, onUnmounted, createBlock, createCommentVNode, openBlock, unref, withCtx, renderSlot } from "vue";
|
|
2
2
|
import Select from "ym-gis-2d/interaction/Select";
|
|
3
3
|
import { ElLoading } from "element-plus";
|
|
4
4
|
import { Popup } from "../popup/index.js";
|
|
@@ -82,7 +82,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
features: reactiveValue.features,
|
|
83
83
|
postion: reactiveValue.postion,
|
|
84
84
|
onClose: handleClose
|
|
85
|
-
},
|
|
85
|
+
}, {
|
|
86
|
+
footer: withCtx((scope) => [
|
|
87
|
+
renderSlot(_ctx.$slots, "footer", {
|
|
88
|
+
feature: scope.feature,
|
|
89
|
+
layerName: scope.layerName
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["map", "features", "postion"])) : createCommentVNode("", true);
|
|
86
94
|
};
|
|
87
95
|
}
|
|
88
96
|
});
|
|
@@ -1,20 +1,169 @@
|
|
|
1
|
-
export declare const Identify: import('../../utils').WithInstall<
|
|
1
|
+
export declare const Identify: import('../../utils').WithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
4
|
+
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
5
|
+
pointStyle?: IStyle;
|
|
6
|
+
cancePointStyle?: IStyle;
|
|
7
|
+
lineStyle?: IStyle;
|
|
8
|
+
canceLineStyle?: IStyle;
|
|
9
|
+
polygonStyle?: IStyle;
|
|
10
|
+
cancePolygonStyle?: IStyle;
|
|
11
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<{
|
|
19
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
20
|
+
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
21
|
+
pointStyle?: IStyle;
|
|
22
|
+
cancePointStyle?: IStyle;
|
|
23
|
+
lineStyle?: IStyle;
|
|
24
|
+
canceLineStyle?: IStyle;
|
|
25
|
+
polygonStyle?: IStyle;
|
|
26
|
+
cancePolygonStyle?: IStyle;
|
|
27
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
28
|
+
__isFragment?: never;
|
|
29
|
+
__isTeleport?: never;
|
|
30
|
+
__isSuspense?: never;
|
|
31
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
2
32
|
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
33
|
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
4
|
-
pointStyle?:
|
|
5
|
-
cancePointStyle?:
|
|
6
|
-
lineStyle?:
|
|
7
|
-
canceLineStyle?:
|
|
8
|
-
polygonStyle?:
|
|
9
|
-
cancePolygonStyle?:
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
pointStyle?: IStyle;
|
|
35
|
+
cancePointStyle?: IStyle;
|
|
36
|
+
lineStyle?: IStyle;
|
|
37
|
+
canceLineStyle?: IStyle;
|
|
38
|
+
polygonStyle?: IStyle;
|
|
39
|
+
cancePolygonStyle?: IStyle;
|
|
40
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
41
|
+
$slots: {
|
|
42
|
+
footer?(_: {
|
|
43
|
+
feature: {
|
|
44
|
+
isSelected?: boolean | undefined;
|
|
45
|
+
fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
|
|
46
|
+
layerId?: string | undefined;
|
|
47
|
+
tag?: string | undefined;
|
|
48
|
+
tempLayer?: {
|
|
49
|
+
getRenderBuffer: () => number | undefined;
|
|
50
|
+
getRenderOrder: () => (arg0: import('ol').default, arg1: import('ol').default) => number | null | undefined;
|
|
51
|
+
getStyle: () => import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined;
|
|
52
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
53
|
+
getUpdateWhileAnimating: () => boolean;
|
|
54
|
+
getUpdateWhileInteracting: () => boolean;
|
|
55
|
+
setRenderOrder: (renderOrder: import('ol/render').OrderFunction | null | undefined) => void;
|
|
56
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined) => void;
|
|
57
|
+
on: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
58
|
+
once: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
59
|
+
un: import('ol/layer/Layer').LayerOnSignature<void>;
|
|
60
|
+
render: (frameState: import('ol/Map').FrameState | null, target: HTMLElement) => HTMLElement | null;
|
|
61
|
+
getSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
62
|
+
getRenderSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
63
|
+
getFeatures: (pixel: import('ol/pixel').Pixel) => Promise<Array<import('ol/Feature').FeatureLike>>;
|
|
64
|
+
getData: (pixel: import('ol/pixel').Pixel) => Uint8ClampedArray | Uint8Array | Float32Array | DataView | null;
|
|
65
|
+
isVisible: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => boolean;
|
|
66
|
+
getAttributions: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => Array<string>;
|
|
67
|
+
unrender: () => void;
|
|
68
|
+
getDeclutter: () => string;
|
|
69
|
+
renderDeclutter: (frameState: import('ol/Map').FrameState, layerState: import('ol/layer/Layer').State) => void;
|
|
70
|
+
renderDeferred: (frameState: import('ol/Map').FrameState) => void;
|
|
71
|
+
setMapInternal: (map: import('ol').default | null) => void;
|
|
72
|
+
getMapInternal: () => import('ol').default | null;
|
|
73
|
+
setMap: (map: import('ol').default | null) => void;
|
|
74
|
+
setSource: (source: import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null) => void;
|
|
75
|
+
getRenderer: () => import('ol/renderer/canvas/VectorLayer').default | null;
|
|
76
|
+
hasRenderer: () => boolean;
|
|
77
|
+
getBackground: () => import('ol/layer/Base').BackgroundColor | false;
|
|
78
|
+
getClassName: () => string;
|
|
79
|
+
getLayerState: (managed?: boolean | undefined) => import('ol/layer/Layer').State;
|
|
80
|
+
getLayersArray: (array?: import('ol/layer').default<import('ol/source').default, import('ol/renderer/Layer').default<any>>[] | undefined) => Array<import('ol/layer').default>;
|
|
81
|
+
getLayerStatesArray: (states?: import('ol/layer/Layer').State[] | undefined) => Array<import('ol/layer/Layer').State>;
|
|
82
|
+
getExtent: () => import('ol/extent').Extent | undefined;
|
|
83
|
+
getMaxResolution: () => number;
|
|
84
|
+
getMinResolution: () => number;
|
|
85
|
+
getMinZoom: () => number;
|
|
86
|
+
getMaxZoom: () => number;
|
|
87
|
+
getOpacity: () => number;
|
|
88
|
+
getSourceState: () => import('ol/source/Source').State;
|
|
89
|
+
getVisible: () => boolean;
|
|
90
|
+
getZIndex: () => number | undefined;
|
|
91
|
+
setBackground: (background?: import('ol/layer/Base').BackgroundColor | undefined) => void;
|
|
92
|
+
setExtent: (extent: import('ol/extent').Extent | undefined) => void;
|
|
93
|
+
setMaxResolution: (maxResolution: number) => void;
|
|
94
|
+
setMinResolution: (minResolution: number) => void;
|
|
95
|
+
setMaxZoom: (maxZoom: number) => void;
|
|
96
|
+
setMinZoom: (minZoom: number) => void;
|
|
97
|
+
setOpacity: (opacity: number) => void;
|
|
98
|
+
setVisible: (visible: boolean) => void;
|
|
99
|
+
setZIndex: (zindex: number) => void;
|
|
100
|
+
get: (key: string) => any;
|
|
101
|
+
getKeys: () => Array<string>;
|
|
102
|
+
getProperties: () => {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
};
|
|
105
|
+
getPropertiesInternal: () => {
|
|
106
|
+
[x: string]: any;
|
|
107
|
+
} | null;
|
|
108
|
+
hasProperties: () => boolean;
|
|
109
|
+
notify: (key: string, oldValue: any) => void;
|
|
110
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
111
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
112
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
113
|
+
setProperties: (values: {
|
|
114
|
+
[x: string]: any;
|
|
115
|
+
}, silent?: boolean | undefined) => void;
|
|
116
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
117
|
+
changed: () => void;
|
|
118
|
+
getRevision: () => number;
|
|
119
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
120
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
121
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
122
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
123
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
124
|
+
dispose: () => void;
|
|
125
|
+
} | undefined;
|
|
126
|
+
on: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
127
|
+
once: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
128
|
+
un: import('ol/Feature').FeatureOnSignature<void>;
|
|
129
|
+
clone: () => import('ol').Feature<import('ol/geom').Geometry>;
|
|
130
|
+
getGeometry: () => import('ol/geom').Geometry | undefined;
|
|
131
|
+
getId: () => number | string | undefined;
|
|
132
|
+
getGeometryName: () => string;
|
|
133
|
+
getStyle: () => import('ol/style/Style').StyleLike | undefined;
|
|
134
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
135
|
+
setGeometry: (geometry: import('ol/geom').Geometry | undefined) => void;
|
|
136
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | undefined) => void;
|
|
137
|
+
setId: (id: number | string | undefined) => void;
|
|
138
|
+
setGeometryName: (name: string) => void;
|
|
139
|
+
get: (key: string) => any;
|
|
140
|
+
getKeys: () => Array<string>;
|
|
141
|
+
getProperties: () => {
|
|
142
|
+
[x: string]: any;
|
|
143
|
+
};
|
|
144
|
+
getPropertiesInternal: () => {
|
|
145
|
+
[x: string]: any;
|
|
146
|
+
} | null;
|
|
147
|
+
hasProperties: () => boolean;
|
|
148
|
+
notify: (key: string, oldValue: any) => void;
|
|
149
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
150
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
151
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
152
|
+
setProperties: (values: {
|
|
153
|
+
[x: string]: any;
|
|
154
|
+
}, silent?: boolean | undefined) => void;
|
|
155
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
156
|
+
changed: () => void;
|
|
157
|
+
getRevision: () => number;
|
|
158
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
159
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
160
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
161
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
162
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
163
|
+
dispose: () => void;
|
|
164
|
+
} | undefined;
|
|
165
|
+
layerName: string | undefined;
|
|
166
|
+
}): any;
|
|
167
|
+
};
|
|
168
|
+
})>;
|
|
20
169
|
export default Identify;
|
|
@@ -391,8 +391,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
391
391
|
resetViewProjection: (projection: string) => void;
|
|
392
392
|
sortTemLayer: () => void;
|
|
393
393
|
getExtent: () => import('ol/extent').Extent;
|
|
394
|
-
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
395
|
-
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
394
|
+
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
395
|
+
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
396
396
|
locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
397
397
|
locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
398
398
|
locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
@@ -481,9 +481,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
481
481
|
dispose: () => void;
|
|
482
482
|
} | undefined;
|
|
483
483
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
484
|
-
|
|
484
|
+
init: (...args: any[]) => void;
|
|
485
485
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
486
|
-
|
|
486
|
+
onInit?: ((...args: any[]) => any) | undefined;
|
|
487
487
|
}>, {
|
|
488
488
|
projection: number;
|
|
489
489
|
zoom: number;
|
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
maxResolution: {},
|
|
14
14
|
constrainResolution: { type: Boolean, default: false }
|
|
15
15
|
},
|
|
16
|
-
emits: ["
|
|
16
|
+
emits: ["init"],
|
|
17
17
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18
18
|
const mapContainerRef = ref();
|
|
19
19
|
const props = __props;
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
maxResolution: props.maxResolution,
|
|
34
34
|
constrainResolution: props.constrainResolution
|
|
35
35
|
});
|
|
36
|
-
emit("
|
|
36
|
+
emit("init", reactiveValue.mapView);
|
|
37
37
|
});
|
|
38
38
|
__expose({
|
|
39
39
|
mapView: reactiveValue.mapView
|
|
@@ -390,8 +390,8 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
|
|
|
390
390
|
resetViewProjection: (projection: string) => void;
|
|
391
391
|
sortTemLayer: () => void;
|
|
392
392
|
getExtent: () => import('ol/extent').Extent;
|
|
393
|
-
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
394
|
-
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
393
|
+
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
394
|
+
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
395
395
|
locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
396
396
|
locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
397
397
|
locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
@@ -480,7 +480,7 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
|
|
|
480
480
|
dispose: () => void;
|
|
481
481
|
} | undefined;
|
|
482
482
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
483
|
-
|
|
483
|
+
init: (...args: any[]) => void;
|
|
484
484
|
}, string, import('vue').PublicProps, Readonly<{
|
|
485
485
|
projection?: number;
|
|
486
486
|
center?: number[];
|
|
@@ -492,7 +492,7 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
|
|
|
492
492
|
maxResolution?: number;
|
|
493
493
|
constrainResolution?: boolean;
|
|
494
494
|
}> & Readonly<{
|
|
495
|
-
|
|
495
|
+
onInit?: ((...args: any[]) => any) | undefined;
|
|
496
496
|
}>, {
|
|
497
497
|
projection: number;
|
|
498
498
|
zoom: number;
|
|
@@ -9,6 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
fractionDigits?: number;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
showSpheroid: boolean;
|
|
12
13
|
fractionDigits: number;
|
|
13
14
|
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
14
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MousePositon.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _MousePositon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _MousePositon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2ec7f66"]]);
|
|
5
5
|
export {
|
|
6
6
|
_MousePositon as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4
4
|
__name: "MousePositon",
|
|
5
5
|
props: {
|
|
6
6
|
map: {},
|
|
7
|
-
showSpheroid: { type: Boolean },
|
|
7
|
+
showSpheroid: { type: Boolean, default: false },
|
|
8
8
|
position: { default: "bottom-left" },
|
|
9
9
|
fractionDigits: { default: 2 }
|
|
10
10
|
},
|
|
@@ -26,7 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
onMounted(() => {
|
|
27
27
|
const control = new MousePositionControl({
|
|
28
28
|
target: mousePositionRef.value,
|
|
29
|
-
className: ""
|
|
29
|
+
className: "",
|
|
30
|
+
showSpheroid: props.showSpheroid,
|
|
31
|
+
fractionDigits: props.fractionDigits
|
|
30
32
|
});
|
|
31
33
|
props.map.controlManager.addControl("mouse-position", control);
|
|
32
34
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.mouse-position[data-v-
|
|
1
|
+
.mouse-position[data-v-b2ec7f66] {
|
|
2
2
|
position: absolute;
|
|
3
3
|
}
|
|
4
|
-
.bottom-left[data-v-
|
|
4
|
+
.bottom-left[data-v-b2ec7f66] {
|
|
5
5
|
bottom: 10px;
|
|
6
6
|
left: 10px;
|
|
7
7
|
}
|
|
8
|
-
.bottom-right[data-v-
|
|
8
|
+
.bottom-right[data-v-b2ec7f66] {
|
|
9
9
|
bottom: 10px;
|
|
10
10
|
right: 10px;
|
|
11
11
|
}
|
|
12
|
-
.top-left[data-v-
|
|
12
|
+
.top-left[data-v-b2ec7f66] {
|
|
13
13
|
top: 10px;
|
|
14
14
|
left: 10px;
|
|
15
15
|
}
|
|
16
|
-
.top-right[data-v-
|
|
16
|
+
.top-right[data-v-b2ec7f66] {
|
|
17
17
|
top: 10px;
|
|
18
18
|
right: 10px;
|
|
19
19
|
}
|
|
@@ -9,6 +9,7 @@ export declare const MousePositon: import('../../utils').WithInstall<import('vue
|
|
|
9
9
|
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
10
10
|
fractionDigits?: number;
|
|
11
11
|
}> & Readonly<{}>, {
|
|
12
|
+
showSpheroid: boolean;
|
|
12
13
|
fractionDigits: number;
|
|
13
14
|
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
14
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -397,8 +397,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
397
397
|
resetViewProjection: (projection: string) => void;
|
|
398
398
|
sortTemLayer: () => void;
|
|
399
399
|
getExtent: () => import('ol/extent').Extent;
|
|
400
|
-
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
401
|
-
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
400
|
+
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
401
|
+
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
402
402
|
locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
403
403
|
locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
404
404
|
locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
@@ -393,8 +393,8 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
393
393
|
resetViewProjection: (projection: string) => void;
|
|
394
394
|
sortTemLayer: () => void;
|
|
395
395
|
getExtent: () => import('ol/extent').Extent;
|
|
396
|
-
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
397
|
-
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
396
|
+
addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
|
|
397
|
+
addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
|
|
398
398
|
locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
399
399
|
locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
|
|
400
400
|
locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
|