tg-map-vue3 3.4.0 → 3.4.1
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/src/map/map/here-map.d.ts +50 -33
- package/dist/src/map/map/overlay/baidu-info-box.d.ts +0 -4
- package/dist/src/map/map/overlay/google-label.d.ts +0 -6
- package/dist/tg-map.js +31 -36
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +1 -1
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
/// <reference types="heremaps" />
|
|
2
|
-
import { CoordType, LatLng } from '../lat-lng';
|
|
2
|
+
import { CoordType, LatLng, LatLngBounds } from '../lat-lng';
|
|
3
|
+
import type { Padding, Point } from '../types';
|
|
4
|
+
import type { CustomControl } from './controls/control';
|
|
5
|
+
import type { MapTypeControl, MapTypeControlOptions } from './controls/map-type.control';
|
|
6
|
+
import type { ScaleControlOptions } from './controls/scale.control';
|
|
7
|
+
import type { ZoomControl, ZoomControlOptions } from './controls/zoom.control';
|
|
3
8
|
import type { Autocomplete, AutocompleteOptions } from './extra/autocomplete';
|
|
9
|
+
import type { MarkerClusterer, MarkerClustererOptions } from './extra/marker-clusterer';
|
|
4
10
|
import type { PlaceServiceOptions, PlacesService } from './extra/places-service';
|
|
5
11
|
import type { SearchBox, SearchBoxOptions } from './extra/search-box';
|
|
6
12
|
import { AbstractMap } from './map';
|
|
7
|
-
import type { MapOptions } from './map-options';
|
|
13
|
+
import type { GestureHandlingOptions, MapOptions, MapStyle } from './map-options';
|
|
14
|
+
import type { BuildInMapTypeId, Layer, MapType } from './map-type';
|
|
15
|
+
import type { CircleOptions, CircleOverlay } from './overlay/circle';
|
|
16
|
+
import type { ElementOverlay } from './overlay/element-overlay';
|
|
17
|
+
import type { InfoBoxOptions, InfoBoxOverlay } from './overlay/info-box';
|
|
18
|
+
import type { InfoWindowOptions, InfoWindowOverlay } from './overlay/info-window';
|
|
19
|
+
import type { LabelOptions, LabelOverlay } from './overlay/label';
|
|
20
|
+
import type { MarkerOptions, MarkerOverlay } from './overlay/marker';
|
|
21
|
+
import type { Overlay } from './overlay/overlay';
|
|
22
|
+
import type { PolygonOptions, PolygonOverlay } from './overlay/polygon';
|
|
23
|
+
import type { PolylineOptions, PolylineOverlay } from './overlay/polyline';
|
|
24
|
+
import type { RectangleOptions, RectangleOverlay } from './overlay/rectangle';
|
|
8
25
|
export declare class HereMap extends AbstractMap {
|
|
9
26
|
mapOptions: MapOptions;
|
|
10
27
|
setDefaultCursor(cursor: string): void;
|
|
@@ -15,42 +32,42 @@ export declare class HereMap extends AbstractMap {
|
|
|
15
32
|
get coordType(): CoordType;
|
|
16
33
|
getCenter(): LatLng;
|
|
17
34
|
setCenter(latlng: LatLng): void;
|
|
35
|
+
setGestureHandling(gestureHandling: GestureHandlingOptions): void;
|
|
36
|
+
fromContainerPointToLatLng(point: Point): LatLng;
|
|
37
|
+
fromLatLngToContainerPoint(latLng: LatLng): Point;
|
|
18
38
|
setDraggable(draggable: boolean): void;
|
|
19
39
|
setDisableDoubleClickZoom(type: boolean): void;
|
|
20
|
-
fromContainerPointToLatLng(point: import('../types').Point): LatLng;
|
|
21
|
-
fromLatLngToContainerPoint(latLng: LatLng): import('../types').Point;
|
|
22
|
-
addElementOverlay(overlay: import('./overlay/element-overlay').ElementOverlay): void;
|
|
23
|
-
removeElementOverlay(overlay: import('./overlay/element-overlay').ElementOverlay): void;
|
|
24
|
-
createInfoBox(options: import('./overlay/info-box').InfoBoxOptions): import('./overlay/info-box').InfoBoxOverlay;
|
|
25
|
-
createLabel(options: import('./overlay/label').LabelOptions): import('./overlay/label').LabelOverlay;
|
|
26
|
-
fitBounds(bounds: import('../lat-lng').LatLngBounds, padding?: import('../types').Padding): void;
|
|
27
|
-
getBounds(): import('../lat-lng').LatLngBounds;
|
|
28
|
-
panTo(position: LatLng): void;
|
|
29
|
-
panBy(x: number, y: number): void;
|
|
30
|
-
setBuildInMapTypeId(id: import('./map-type').BuildInMapTypeId): void;
|
|
31
|
-
setMapType(mapType: import('./map-type').MapType): void;
|
|
32
|
-
getMapType(): import('./map-type').MapType;
|
|
33
|
-
addLayer(layer: import('./map-type').Layer): void;
|
|
34
|
-
removeLayer(layer: import('./map-type').Layer): void;
|
|
35
|
-
setGestureHandling(gestureHandling: import('./map-options').GestureHandlingOptions): void;
|
|
36
40
|
setMinZoom(zoom: number): void;
|
|
37
41
|
setMaxZoom(zoom: number): void;
|
|
38
|
-
setMapStyle(mapStyle:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
setMapStyle(mapStyle: MapStyle): void;
|
|
43
|
+
setBuildInMapTypeId(id: BuildInMapTypeId): void;
|
|
44
|
+
setMapType(mapType: MapType): void;
|
|
45
|
+
getMapType(): MapType;
|
|
46
|
+
addLayer(layer: Layer): void;
|
|
47
|
+
removeLayer(layer: Layer): void;
|
|
48
|
+
panTo(position: LatLng): void;
|
|
49
|
+
panBy(x: number, y: number): void;
|
|
50
|
+
fitBounds(bounds: LatLngBounds, padding?: Padding | undefined): void;
|
|
51
|
+
getBounds(): LatLngBounds;
|
|
52
|
+
addElementOverlay(overlay: ElementOverlay): void;
|
|
53
|
+
removeElementOverlay(overlay: ElementOverlay): void;
|
|
54
|
+
addOverlay(overlay: Overlay<unknown>): void;
|
|
55
|
+
removeOverlay(overlay: Overlay<unknown>): void;
|
|
56
|
+
createMarker(options: MarkerOptions): MarkerOverlay;
|
|
57
|
+
createMarkerClusterer(options: MarkerClustererOptions): MarkerClusterer;
|
|
53
58
|
createAutocomplete(options: AutocompleteOptions): Autocomplete;
|
|
54
59
|
createSearchBox(options: SearchBoxOptions): SearchBox;
|
|
55
60
|
createPlaceService(options: PlaceServiceOptions): PlacesService;
|
|
61
|
+
createInfoWindow(options: InfoWindowOptions): InfoWindowOverlay;
|
|
62
|
+
createInfoBox(options: InfoBoxOptions): InfoBoxOverlay;
|
|
63
|
+
createPolyline(options: PolylineOptions): PolylineOverlay;
|
|
64
|
+
createPolygon(options: PolygonOptions): PolygonOverlay;
|
|
65
|
+
createRectangle(options: RectangleOptions): RectangleOverlay;
|
|
66
|
+
createCircle(options: CircleOptions): CircleOverlay;
|
|
67
|
+
createLabel(options: LabelOptions): LabelOverlay;
|
|
68
|
+
addCustomControl(control: CustomControl): void;
|
|
69
|
+
removeCustomControl(control: CustomControl): void;
|
|
70
|
+
createMapTypeControl(options: MapTypeControlOptions): MapTypeControl;
|
|
71
|
+
createZoomControl(options: ZoomControlOptions): ZoomControl;
|
|
72
|
+
createScaleControl(options: ScaleControlOptions): ZoomControl;
|
|
56
73
|
}
|
|
@@ -12,9 +12,7 @@ export declare function createBaiduInfoBox(content: HTMLElement, position?: BMap
|
|
|
12
12
|
content: HTMLElement;
|
|
13
13
|
position: BMap.Point;
|
|
14
14
|
offset: Point;
|
|
15
|
-
/** @override */
|
|
16
15
|
initialize(map: BMap.Map): HTMLElement;
|
|
17
|
-
/** @override */
|
|
18
16
|
draw(): void;
|
|
19
17
|
open(map: BMap.Map, anchor?: BMarker | undefined): void;
|
|
20
18
|
attachMarker(marker: BMarker): void;
|
|
@@ -53,9 +51,7 @@ declare function createBaiduInfoBoxClass(): {
|
|
|
53
51
|
content: HTMLElement;
|
|
54
52
|
position: BMap.Point;
|
|
55
53
|
offset: Point;
|
|
56
|
-
/** @override */
|
|
57
54
|
initialize(map: BMap.Map): HTMLElement;
|
|
58
|
-
/** @override */
|
|
59
55
|
draw(): void;
|
|
60
56
|
open(map: BMap.Map, anchor?: BMarker): void;
|
|
61
57
|
attachMarker(marker: BMarker): void;
|
|
@@ -9,11 +9,8 @@ export declare function createGoogleLabel(element: HTMLElement, position: Nullab
|
|
|
9
9
|
zIndex?: number | undefined;
|
|
10
10
|
setZIndex(zIndex: number): void;
|
|
11
11
|
setElement(element: HTMLElement): void;
|
|
12
|
-
/** @override */
|
|
13
12
|
onAdd(): void;
|
|
14
|
-
/** @override */
|
|
15
13
|
draw(): void;
|
|
16
|
-
/** @override */
|
|
17
14
|
onRemove(): void;
|
|
18
15
|
setPosition(position: Nullable<google.maps.LatLng>): void;
|
|
19
16
|
getPosition(): Nullable<google.maps.LatLng>;
|
|
@@ -43,11 +40,8 @@ declare function createGoogleLabelClass(): {
|
|
|
43
40
|
zIndex?: number;
|
|
44
41
|
setZIndex(zIndex: number): void;
|
|
45
42
|
setElement(element: HTMLElement): void;
|
|
46
|
-
/** @override */
|
|
47
43
|
onAdd(): void;
|
|
48
|
-
/** @override */
|
|
49
44
|
draw(): void;
|
|
50
|
-
/** @override */
|
|
51
45
|
onRemove(): void;
|
|
52
46
|
setPosition(position: Nullable<google.maps.LatLng>): void;
|
|
53
47
|
getPosition(): Nullable<google.maps.LatLng>;
|
package/dist/tg-map.js
CHANGED
|
@@ -2867,11 +2867,9 @@ function _i() {
|
|
|
2867
2867
|
this.close(), this.dispatchEvent({ type: "onclickclose" });
|
|
2868
2868
|
}), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(d), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(h), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
|
|
2869
2869
|
}
|
|
2870
|
-
/** @override */
|
|
2871
2870
|
initialize(r) {
|
|
2872
2871
|
return this.map = r, r.getPanes().floatPane.appendChild(this.container), this.container;
|
|
2873
2872
|
}
|
|
2874
|
-
/** @override */
|
|
2875
2873
|
draw() {
|
|
2876
2874
|
if (!this.map)
|
|
2877
2875
|
return;
|
|
@@ -3139,12 +3137,10 @@ function Ti() {
|
|
|
3139
3137
|
const r = this.container.firstChild;
|
|
3140
3138
|
r !== e && (r ? this.container.replaceChild(r, e) : this.container.appendChild(e));
|
|
3141
3139
|
}
|
|
3142
|
-
/** @override */
|
|
3143
3140
|
onAdd() {
|
|
3144
3141
|
const e = this.getPanes() ?? E("onAdd回调中一定能够获取panes");
|
|
3145
3142
|
this.zIndex ? e.overlayMouseTarget.appendChild(this.container) : e.overlayLayer.appendChild(this.container);
|
|
3146
3143
|
}
|
|
3147
|
-
/** @override */
|
|
3148
3144
|
draw() {
|
|
3149
3145
|
var e, r;
|
|
3150
3146
|
if (this.container.style.display = this.position ? "block" : "none", this.position) {
|
|
@@ -3155,7 +3151,6 @@ function Ti() {
|
|
|
3155
3151
|
}
|
|
3156
3152
|
}
|
|
3157
3153
|
}
|
|
3158
|
-
/** @override */
|
|
3159
3154
|
onRemove() {
|
|
3160
3155
|
var e;
|
|
3161
3156
|
(e = this.container.parentNode) == null || e.removeChild(this.container);
|
|
@@ -4176,10 +4171,7 @@ class wi extends nt {
|
|
|
4176
4171
|
this.map.setCenter(e.toHere(this.coordType));
|
|
4177
4172
|
}
|
|
4178
4173
|
// TODO: 实现其他方法
|
|
4179
|
-
|
|
4180
|
-
throw new Error("Method not implemented.");
|
|
4181
|
-
}
|
|
4182
|
-
setDisableDoubleClickZoom(e) {
|
|
4174
|
+
setGestureHandling(e) {
|
|
4183
4175
|
throw new Error("Method not implemented.");
|
|
4184
4176
|
}
|
|
4185
4177
|
fromContainerPointToLatLng(e) {
|
|
@@ -4188,28 +4180,19 @@ class wi extends nt {
|
|
|
4188
4180
|
fromLatLngToContainerPoint(e) {
|
|
4189
4181
|
throw new Error("Method not implemented.");
|
|
4190
4182
|
}
|
|
4191
|
-
|
|
4192
|
-
throw new Error("Method not implemented.");
|
|
4193
|
-
}
|
|
4194
|
-
removeElementOverlay(e) {
|
|
4195
|
-
throw new Error("Method not implemented.");
|
|
4196
|
-
}
|
|
4197
|
-
createInfoBox(e) {
|
|
4198
|
-
throw new Error("Method not implemented.");
|
|
4199
|
-
}
|
|
4200
|
-
createLabel(e) {
|
|
4183
|
+
setDraggable(e) {
|
|
4201
4184
|
throw new Error("Method not implemented.");
|
|
4202
4185
|
}
|
|
4203
|
-
|
|
4186
|
+
setDisableDoubleClickZoom(e) {
|
|
4204
4187
|
throw new Error("Method not implemented.");
|
|
4205
4188
|
}
|
|
4206
|
-
|
|
4189
|
+
setMinZoom(e) {
|
|
4207
4190
|
throw new Error("Method not implemented.");
|
|
4208
4191
|
}
|
|
4209
|
-
|
|
4192
|
+
setMaxZoom(e) {
|
|
4210
4193
|
throw new Error("Method not implemented.");
|
|
4211
4194
|
}
|
|
4212
|
-
|
|
4195
|
+
setMapStyle(e) {
|
|
4213
4196
|
throw new Error("Method not implemented.");
|
|
4214
4197
|
}
|
|
4215
4198
|
setBuildInMapTypeId(e) {
|
|
@@ -4227,16 +4210,22 @@ class wi extends nt {
|
|
|
4227
4210
|
removeLayer(e) {
|
|
4228
4211
|
throw new Error("Method not implemented.");
|
|
4229
4212
|
}
|
|
4230
|
-
|
|
4213
|
+
panTo(e) {
|
|
4231
4214
|
throw new Error("Method not implemented.");
|
|
4232
4215
|
}
|
|
4233
|
-
|
|
4216
|
+
panBy(e, r) {
|
|
4234
4217
|
throw new Error("Method not implemented.");
|
|
4235
4218
|
}
|
|
4236
|
-
|
|
4219
|
+
fitBounds(e, r) {
|
|
4237
4220
|
throw new Error("Method not implemented.");
|
|
4238
4221
|
}
|
|
4239
|
-
|
|
4222
|
+
getBounds() {
|
|
4223
|
+
throw new Error("Method not implemented.");
|
|
4224
|
+
}
|
|
4225
|
+
addElementOverlay(e) {
|
|
4226
|
+
throw new Error("Method not implemented.");
|
|
4227
|
+
}
|
|
4228
|
+
removeElementOverlay(e) {
|
|
4240
4229
|
throw new Error("Method not implemented.");
|
|
4241
4230
|
}
|
|
4242
4231
|
addOverlay(e) {
|
|
@@ -4251,9 +4240,21 @@ class wi extends nt {
|
|
|
4251
4240
|
createMarkerClusterer(e) {
|
|
4252
4241
|
throw new Error("Method not implemented.");
|
|
4253
4242
|
}
|
|
4243
|
+
createAutocomplete(e) {
|
|
4244
|
+
throw new Error("Method not implemented.");
|
|
4245
|
+
}
|
|
4246
|
+
createSearchBox(e) {
|
|
4247
|
+
throw new Error("Method not implemented.");
|
|
4248
|
+
}
|
|
4249
|
+
createPlaceService(e) {
|
|
4250
|
+
throw new Error("Method not implemented.");
|
|
4251
|
+
}
|
|
4254
4252
|
createInfoWindow(e) {
|
|
4255
4253
|
throw new Error("Method not implemented.");
|
|
4256
4254
|
}
|
|
4255
|
+
createInfoBox(e) {
|
|
4256
|
+
throw new Error("Method not implemented.");
|
|
4257
|
+
}
|
|
4257
4258
|
createPolyline(e) {
|
|
4258
4259
|
throw new Error("Method not implemented.");
|
|
4259
4260
|
}
|
|
@@ -4266,6 +4267,9 @@ class wi extends nt {
|
|
|
4266
4267
|
createCircle(e) {
|
|
4267
4268
|
throw new Error("Method not implemented.");
|
|
4268
4269
|
}
|
|
4270
|
+
createLabel(e) {
|
|
4271
|
+
throw new Error("Method not implemented.");
|
|
4272
|
+
}
|
|
4269
4273
|
addCustomControl(e) {
|
|
4270
4274
|
throw new Error("Method not implemented.");
|
|
4271
4275
|
}
|
|
@@ -4281,15 +4285,6 @@ class wi extends nt {
|
|
|
4281
4285
|
createScaleControl(e) {
|
|
4282
4286
|
throw new Error("Method not implemented.");
|
|
4283
4287
|
}
|
|
4284
|
-
createAutocomplete(e) {
|
|
4285
|
-
throw new Error("Method not implemented.");
|
|
4286
|
-
}
|
|
4287
|
-
createSearchBox(e) {
|
|
4288
|
-
throw new Error("Method not implemented.");
|
|
4289
|
-
}
|
|
4290
|
-
createPlaceService(e) {
|
|
4291
|
-
throw new Error("Method not implemented.");
|
|
4292
|
-
}
|
|
4293
4288
|
}
|
|
4294
4289
|
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}), qe;
|
|
4295
4290
|
((i) => {
|