tg-map-core 4.2.0 → 4.2.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/event-target.d.ts +1 -0
- package/dist/src/map/map/controls/map-type.control.d.ts +4 -3
- package/dist/src/map/map/map-options.d.ts +5 -0
- package/dist/src/map/map/map-type.d.ts +5 -1
- package/dist/src/map/map/overlay/icon.d.ts +1 -1
- package/dist/src/map/map/talks-map.d.ts +18 -1
- package/dist/src/map/map-config.d.ts +3 -1
- package/dist/src/utils/talks-layers.d.ts +8 -4
- package/dist/tg-map-core.cjs +198 -45
- package/dist/tg-map-core.mjs +199 -46
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/map/dts/maptalks.d.ts +13 -12
|
@@ -5,73 +5,74 @@ import * as maptalks from 'maptalks'
|
|
|
5
5
|
*/
|
|
6
6
|
declare module 'maptalks' {
|
|
7
7
|
interface LayerAbstractRenderer {
|
|
8
|
-
setToRedraw():void
|
|
8
|
+
setToRedraw(): void
|
|
9
9
|
}
|
|
10
10
|
type Eventable = InstanceType<ReturnType<typeof Eventable>>
|
|
11
11
|
interface Map {
|
|
12
12
|
config(options: MapOptionsType): this
|
|
13
13
|
config<K extends keyof MapOptionsType>(conf: K, value: MapOptionsType[K]): this
|
|
14
|
+
/** @deprecated config()内部会复制一遍options的值, 故如果只是读取, 建议直接使用{@link options}, */
|
|
14
15
|
config(): MapOptionsType
|
|
15
16
|
}
|
|
16
17
|
interface TileLayer {
|
|
17
18
|
config(options: TileLayerOptionsType): this
|
|
18
19
|
config<K extends keyof TileLayerOptionsType>(conf: K, value: TileLayerOptionsType[K]): this
|
|
19
|
-
config(): TileLayerOptionsType
|
|
20
|
+
/** @deprecated */ config(): TileLayerOptionsType
|
|
20
21
|
}
|
|
21
22
|
interface Marker {
|
|
22
23
|
config(options: MarkerOptionsType): this
|
|
23
24
|
config<K extends keyof MarkerOptionsType>(conf: K, value: MarkerOptionsType[K]): this
|
|
24
|
-
config(): MarkerOptionsType
|
|
25
|
+
/** @deprecated */ config(): MarkerOptionsType
|
|
25
26
|
updateSymbol(props: AnyMarkerSymbol | Array<AnyMarkerSymbol>): this
|
|
26
27
|
}
|
|
27
28
|
interface Polygon {
|
|
28
29
|
config(options: PolygonOptionsType): this
|
|
29
30
|
config<K extends keyof PolygonOptionsType>(conf: K, value: PolygonOptionsType[K]): this
|
|
30
|
-
config(): PolygonOptionsType
|
|
31
|
+
/** @deprecated */ config(): PolygonOptionsType
|
|
31
32
|
updateSymbol(props: FillSymbol | Array<AnySymbol>): this
|
|
32
33
|
}
|
|
33
34
|
interface LineString {
|
|
34
35
|
config(options: LineStringOptionsType): this
|
|
35
36
|
config<K extends keyof LineStringOptionsType>(conf: K, value: LineStringOptionsType[K]): this
|
|
36
|
-
config(): LineStringOptionsType
|
|
37
|
+
/** @deprecated */ config(): LineStringOptionsType
|
|
37
38
|
updateSymbol(props: LineSymbol | Array<AnySymbol>): this
|
|
38
39
|
}
|
|
39
40
|
interface Circle {
|
|
40
41
|
config(options: CircleOptionsType): this
|
|
41
42
|
config<K extends keyof CircleOptionsType>(conf: K, value: CircleOptionsType[K]): this
|
|
42
|
-
config(): CircleOptionsType
|
|
43
|
+
/** @deprecated */ config(): CircleOptionsType
|
|
43
44
|
updateSymbol(props: FillSymbol | Array<AnySymbol>): this
|
|
44
45
|
}
|
|
45
46
|
interface Rectangle {
|
|
46
47
|
config(options: RectangleOptionsType): this
|
|
47
48
|
config<K extends keyof RectangleOptionsType>(conf: K, value: RectangleOptionsType[K]): this
|
|
48
|
-
config(): RectangleOptionsType
|
|
49
|
+
/** @deprecated */ config(): RectangleOptionsType
|
|
49
50
|
updateSymbol(props: FillSymbol | Array<AnySymbol>): this
|
|
50
51
|
}
|
|
51
52
|
namespace ui {
|
|
52
53
|
interface UIMarker {
|
|
53
54
|
config(options: UIMarkerOptionsType): this
|
|
54
55
|
config<K extends keyof UIMarkerOptionsType>(conf: K, value: UIMarkerOptionsType[K]): this
|
|
55
|
-
config(): UIMarkerOptionsType
|
|
56
|
+
/** @deprecated */ config(): UIMarkerOptionsType
|
|
56
57
|
}
|
|
57
58
|
interface InfoWindow {
|
|
58
59
|
config(options: InfoWindowOptionsType): this
|
|
59
60
|
config<K extends keyof InfoWindowOptionsType>(conf: K, value: InfoWindowOptionsType[K]): this
|
|
60
|
-
config(): InfoWindowOptionsType
|
|
61
|
+
/** @deprecated */ config(): InfoWindowOptionsType
|
|
61
62
|
/** 若不传{@link coordinate}则使用owner的中心点 */
|
|
62
|
-
show(coordinate?: Coordinate): this
|
|
63
|
+
show(coordinate?: Coordinate): this
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
namespace control {
|
|
66
67
|
interface Control {
|
|
67
68
|
config(options: ControlOptionsType): this
|
|
68
69
|
config<K extends keyof ControlOptionsType>(conf: K, value: ControlOptionsType[K]): this
|
|
69
|
-
config(): ControlOptionsType
|
|
70
|
+
/** @deprecated */ config(): ControlOptionsType
|
|
70
71
|
}
|
|
71
72
|
interface Zoom {
|
|
72
73
|
config(options: ZoomOptionsTypeSpec & ControlOptionsType): this
|
|
73
74
|
config<K extends keyof ZoomOptionsTypeSpec & ControlOptionsType>(conf: K, value: (ZoomOptionsTypeSpec & ControlOptionsType)[K]): this
|
|
74
|
-
config(): ZoomOptionsTypeSpec & ControlOptionsType
|
|
75
|
+
/** @deprecated */ config(): ZoomOptionsTypeSpec & ControlOptionsType
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
/** {@link DomPositionType}里设置transform等其他css样式, 也会生效 */
|