@besovideo/bvmap-leaflet 0.0.22 → 0.0.24
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.
|
@@ -32,12 +32,14 @@ export interface IEventMapMap {
|
|
|
32
32
|
rightclick: () => void;
|
|
33
33
|
clusterclick: Parameters<LeafletMarkerHandle["on"]>[1];
|
|
34
34
|
zoomChange: (zoom: number) => void;
|
|
35
|
+
remove: () => void;
|
|
35
36
|
}
|
|
36
37
|
declare module "leaflet" {
|
|
37
38
|
namespace CRS {
|
|
38
39
|
let Baidu: CRS;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
42
|
+
export declare function SetMapCenterDefaultLatlng(latlng: [number, number]): void;
|
|
41
43
|
export declare function CreateMap<T>(params: {
|
|
42
44
|
container: HTMLDivElement;
|
|
43
45
|
tileType?: Parameters<typeof SwichTileType>[0] & {
|
|
@@ -73,6 +75,13 @@ export declare function CreateMap<T>(params: {
|
|
|
73
75
|
getEle(): HTMLElement | undefined;
|
|
74
76
|
setContent(content: L.Content): void;
|
|
75
77
|
setIconClassName(className: string): void;
|
|
78
|
+
updateIconCustom(info: IAddMarkerParams<T>["iconCustom"]): void;
|
|
79
|
+
getIconCustom(): {
|
|
80
|
+
imgUrl: string | Promise<string>;
|
|
81
|
+
title: string;
|
|
82
|
+
className?: string;
|
|
83
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
84
|
+
} | undefined;
|
|
76
85
|
utils: {
|
|
77
86
|
showTrajektoria(): void;
|
|
78
87
|
stopTrajektoria(): void;
|
|
@@ -97,6 +106,13 @@ export declare function CreateMap<T>(params: {
|
|
|
97
106
|
getEle(): HTMLElement | undefined;
|
|
98
107
|
setContent(content: L.Content): void;
|
|
99
108
|
setIconClassName(className: string): void;
|
|
109
|
+
updateIconCustom(info: IAddMarkerParams<T>["iconCustom"]): void;
|
|
110
|
+
getIconCustom(): {
|
|
111
|
+
imgUrl: string | Promise<string>;
|
|
112
|
+
title: string;
|
|
113
|
+
className?: string;
|
|
114
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
115
|
+
} | undefined;
|
|
100
116
|
utils: {
|
|
101
117
|
showTrajektoria(): void;
|
|
102
118
|
stopTrajektoria(): void;
|
|
@@ -121,6 +137,13 @@ export declare function CreateMap<T>(params: {
|
|
|
121
137
|
getEle(): HTMLElement | undefined;
|
|
122
138
|
setContent(content: L.Content): void;
|
|
123
139
|
setIconClassName(className: string): void;
|
|
140
|
+
updateIconCustom(info: IAddMarkerParams<unknown>["iconCustom"]): void;
|
|
141
|
+
getIconCustom(): {
|
|
142
|
+
imgUrl: string | Promise<string>;
|
|
143
|
+
title: string;
|
|
144
|
+
className?: string;
|
|
145
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
146
|
+
} | undefined;
|
|
124
147
|
utils: {
|
|
125
148
|
showTrajektoria(): void;
|
|
126
149
|
stopTrajektoria(): void;
|
|
@@ -147,6 +170,13 @@ export declare function CreateMap<T>(params: {
|
|
|
147
170
|
getEle(): HTMLElement | undefined;
|
|
148
171
|
setContent(content: L.Content): void;
|
|
149
172
|
setIconClassName(className: string): void;
|
|
173
|
+
updateIconCustom(info: IAddMarkerParams<unknown>["iconCustom"]): void;
|
|
174
|
+
getIconCustom(): {
|
|
175
|
+
imgUrl: string | Promise<string>;
|
|
176
|
+
title: string;
|
|
177
|
+
className?: string;
|
|
178
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
179
|
+
} | undefined;
|
|
150
180
|
utils: {
|
|
151
181
|
showTrajektoria(): void;
|
|
152
182
|
stopTrajektoria(): void;
|
|
@@ -14,6 +14,7 @@ export interface IAddMarkerParams<T> {
|
|
|
14
14
|
imgUrl: string | Promise<string>;
|
|
15
15
|
title: string;
|
|
16
16
|
className?: string;
|
|
17
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
17
18
|
};
|
|
18
19
|
userdata: T;
|
|
19
20
|
options?: L.MarkerOptions;
|
|
@@ -69,6 +70,13 @@ export declare class LeafletMarkerHandle<T = any> {
|
|
|
69
70
|
getEle(): HTMLElement | undefined;
|
|
70
71
|
setContent(content: L.Content): void;
|
|
71
72
|
setIconClassName(className: string): void;
|
|
73
|
+
updateIconCustom(info: IAddMarkerParams<T>["iconCustom"]): void;
|
|
74
|
+
getIconCustom(): {
|
|
75
|
+
imgUrl: string | Promise<string>;
|
|
76
|
+
title: string;
|
|
77
|
+
className?: string;
|
|
78
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
79
|
+
} | undefined;
|
|
72
80
|
utils: {
|
|
73
81
|
showTrajektoria(): void;
|
|
74
82
|
stopTrajektoria(): void;
|
|
@@ -94,6 +102,13 @@ export declare class LeafletMarkerHandle<T = any> {
|
|
|
94
102
|
getEle(): HTMLElement | undefined;
|
|
95
103
|
setContent(content: L.Content): void;
|
|
96
104
|
setIconClassName(className: string): void;
|
|
105
|
+
updateIconCustom(info: IAddMarkerParams<T>["iconCustom"]): void;
|
|
106
|
+
getIconCustom(): {
|
|
107
|
+
imgUrl: string | Promise<string>;
|
|
108
|
+
title: string;
|
|
109
|
+
className?: string;
|
|
110
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
111
|
+
} | undefined;
|
|
97
112
|
utils: {
|
|
98
113
|
showTrajektoria(): void;
|
|
99
114
|
stopTrajektoria(): void;
|
|
@@ -119,6 +134,13 @@ export declare class LeafletMarkerHandle<T = any> {
|
|
|
119
134
|
getEle(): HTMLElement | undefined;
|
|
120
135
|
setContent(content: L.Content): void;
|
|
121
136
|
setIconClassName(className: string): void;
|
|
137
|
+
updateIconCustom(info: IAddMarkerParams<unknown>["iconCustom"]): void;
|
|
138
|
+
getIconCustom(): {
|
|
139
|
+
imgUrl: string | Promise<string>;
|
|
140
|
+
title: string;
|
|
141
|
+
className?: string;
|
|
142
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
143
|
+
} | undefined;
|
|
122
144
|
utils: {
|
|
123
145
|
showTrajektoria(): void;
|
|
124
146
|
stopTrajektoria(): void;
|
|
@@ -145,6 +167,13 @@ export declare class LeafletMarkerHandle<T = any> {
|
|
|
145
167
|
getEle(): HTMLElement | undefined;
|
|
146
168
|
setContent(content: L.Content): void;
|
|
147
169
|
setIconClassName(className: string): void;
|
|
170
|
+
updateIconCustom(info: IAddMarkerParams<unknown>["iconCustom"]): void;
|
|
171
|
+
getIconCustom(): {
|
|
172
|
+
imgUrl: string | Promise<string>;
|
|
173
|
+
title: string;
|
|
174
|
+
className?: string;
|
|
175
|
+
divIconOptions?: Pick<L.DivIconOptions, "iconAnchor">;
|
|
176
|
+
} | undefined;
|
|
148
177
|
utils: {
|
|
149
178
|
showTrajektoria(): void;
|
|
150
179
|
stopTrajektoria(): void;
|
|
@@ -28,6 +28,13 @@ export declare function createMarkerCustomFromMarker<T>(markerCreated: ReturnTyp
|
|
|
28
28
|
getEle(): HTMLElement | undefined;
|
|
29
29
|
setContent(content: L.Content): void;
|
|
30
30
|
setIconClassName(className: string): void;
|
|
31
|
+
updateIconCustom(info: IAddMarkerParams<T>["iconCustom"]): void;
|
|
32
|
+
getIconCustom(): {
|
|
33
|
+
imgUrl: string | Promise<string>;
|
|
34
|
+
title: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
divIconOptions?: Pick<import('leaflet').DivIconOptions, "iconAnchor">;
|
|
37
|
+
} | undefined;
|
|
31
38
|
utils: {
|
|
32
39
|
showTrajektoria(): void;
|
|
33
40
|
stopTrajektoria(): void;
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@besovideo/bvmap-leaflet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"types": "./dist/types/main.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite --force",
|
|
10
|
+
"build": "vite build"
|
|
11
|
+
},
|
|
8
12
|
"keywords": [],
|
|
9
13
|
"license": "MIT",
|
|
10
14
|
"devDependencies": {
|
|
@@ -38,9 +42,5 @@
|
|
|
38
42
|
},
|
|
39
43
|
"peerDependencies": {
|
|
40
44
|
"@types/leaflet-editable": "^1.2.6"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"dev": "vite --force",
|
|
44
|
-
"build": "vite build"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|