@mapless/core 0.0.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/assets/guangzhou.json +2800 -0
- package/dist/index.js +16605 -0
- package/dist/types/Mapless/Base.d.ts +66 -0
- package/dist/types/Mapless/Base.d.ts.map +1 -0
- package/dist/types/Mapless/coord/MultiCoordTransformer.d.ts +55 -0
- package/dist/types/Mapless/coord/MultiCoordTransformer.d.ts.map +1 -0
- package/dist/types/Mapless/coord/coord.d.ts +46 -0
- package/dist/types/Mapless/coord/coord.d.ts.map +1 -0
- package/dist/types/Mapless/coord/index.d.ts +4 -0
- package/dist/types/Mapless/coord/index.d.ts.map +1 -0
- package/dist/types/Mapless/coord/types.d.ts +30 -0
- package/dist/types/Mapless/coord/types.d.ts.map +1 -0
- package/dist/types/Mapless/core/IdHub.d.ts +26 -0
- package/dist/types/Mapless/core/IdHub.d.ts.map +1 -0
- package/dist/types/Mapless/core/Listener.d.ts +17 -0
- package/dist/types/Mapless/core/Listener.d.ts.map +1 -0
- package/dist/types/Mapless/core/base.d.ts +34 -0
- package/dist/types/Mapless/core/base.d.ts.map +1 -0
- package/dist/types/Mapless/core/event.d.ts +8 -0
- package/dist/types/Mapless/core/event.d.ts.map +1 -0
- package/dist/types/Mapless/core/manager.d.ts +51 -0
- package/dist/types/Mapless/core/manager.d.ts.map +1 -0
- package/dist/types/Mapless/core/math.d.ts +5 -0
- package/dist/types/Mapless/core/math.d.ts.map +1 -0
- package/dist/types/Mapless/core/position.mkr.d.ts +11 -0
- package/dist/types/Mapless/core/position.mkr.d.ts.map +1 -0
- package/dist/types/Mapless/core/position.mus.d.ts +15 -0
- package/dist/types/Mapless/core/position.mus.d.ts.map +1 -0
- package/dist/types/Mapless/core/throttle.d.ts +2 -0
- package/dist/types/Mapless/core/throttle.d.ts.map +1 -0
- package/dist/types/Mapless/core/utils.d.ts +32 -0
- package/dist/types/Mapless/core/utils.d.ts.map +1 -0
- package/dist/types/Mapless/draw/angle.d.ts +8 -0
- package/dist/types/Mapless/draw/angle.d.ts.map +1 -0
- package/dist/types/Mapless/draw/area.d.ts +7 -0
- package/dist/types/Mapless/draw/area.d.ts.map +1 -0
- package/dist/types/Mapless/draw/index.d.ts +42 -0
- package/dist/types/Mapless/draw/index.d.ts.map +1 -0
- package/dist/types/Mapless/draw/line.d.ts +7 -0
- package/dist/types/Mapless/draw/line.d.ts.map +1 -0
- package/dist/types/Mapless/draw/point.d.ts +12 -0
- package/dist/types/Mapless/draw/point.d.ts.map +1 -0
- package/dist/types/Mapless/draw/position.d.ts +11 -0
- package/dist/types/Mapless/draw/position.d.ts.map +1 -0
- package/dist/types/Mapless/draw/shape.d.ts +10 -0
- package/dist/types/Mapless/draw/shape.d.ts.map +1 -0
- package/dist/types/Mapless/draw/theme.d.ts +76 -0
- package/dist/types/Mapless/draw/theme.d.ts.map +1 -0
- package/dist/types/Mapless/extensions/MapboxRequestHandler.d.ts +7 -0
- package/dist/types/Mapless/extensions/MapboxRequestHandler.d.ts.map +1 -0
- package/dist/types/Mapless/extensions/mapless.adapter.d.ts +22 -0
- package/dist/types/Mapless/extensions/mapless.adapter.d.ts.map +1 -0
- package/dist/types/Mapless/extensions/types.d.ts +35 -0
- package/dist/types/Mapless/extensions/types.d.ts.map +1 -0
- package/dist/types/Mapless/icons/Singleton.d.ts +10 -0
- package/dist/types/Mapless/icons/Singleton.d.ts.map +1 -0
- package/dist/types/Mapless/icons/icons.d.ts +45 -0
- package/dist/types/Mapless/icons/icons.d.ts.map +1 -0
- package/dist/types/Mapless/index.d.ts +38 -0
- package/dist/types/Mapless/index.d.ts.map +1 -0
- package/dist/types/Mapless/lang/MapboxLanguage.d.ts +45 -0
- package/dist/types/Mapless/lang/MapboxLanguage.d.ts.map +1 -0
- package/dist/types/Mapless/lang/index.d.ts +29 -0
- package/dist/types/Mapless/lang/index.d.ts.map +1 -0
- package/dist/types/Mapless/mana/boundary.d.ts +28 -0
- package/dist/types/Mapless/mana/boundary.d.ts.map +1 -0
- package/dist/types/Mapless/mana/cluster.d.ts +30 -0
- package/dist/types/Mapless/mana/cluster.d.ts.map +1 -0
- package/dist/types/Mapless/mana/curve.d.ts +25 -0
- package/dist/types/Mapless/mana/curve.d.ts.map +1 -0
- package/dist/types/Mapless/mana/heatmap.d.ts +27 -0
- package/dist/types/Mapless/mana/heatmap.d.ts.map +1 -0
- package/dist/types/Mapless/mana/imagedata.d.ts +16 -0
- package/dist/types/Mapless/mana/imagedata.d.ts.map +1 -0
- package/dist/types/Mapless/mana/line.d.ts +39 -0
- package/dist/types/Mapless/mana/line.d.ts.map +1 -0
- package/dist/types/Mapless/mana/marker.d.ts +39 -0
- package/dist/types/Mapless/mana/marker.d.ts.map +1 -0
- package/dist/types/Mapless/mana/movable.d.ts +66 -0
- package/dist/types/Mapless/mana/movable.d.ts.map +1 -0
- package/dist/types/Mapless/mana/newstation.d.ts +68 -0
- package/dist/types/Mapless/mana/newstation.d.ts.map +1 -0
- package/dist/types/Mapless/mana/node.d.ts +27 -0
- package/dist/types/Mapless/mana/node.d.ts.map +1 -0
- package/dist/types/Mapless/mana/oldstation.d.ts +60 -0
- package/dist/types/Mapless/mana/oldstation.d.ts.map +1 -0
- package/dist/types/Mapless/mana/polygon.d.ts +25 -0
- package/dist/types/Mapless/mana/polygon.d.ts.map +1 -0
- package/dist/types/Mapless/mana/routes.d.ts +55 -0
- package/dist/types/Mapless/mana/routes.d.ts.map +1 -0
- package/dist/types/Mapless/mana/shape.d.ts +25 -0
- package/dist/types/Mapless/mana/shape.d.ts.map +1 -0
- package/dist/types/Mapless/mana/step.d.ts +39 -0
- package/dist/types/Mapless/mana/step.d.ts.map +1 -0
- package/dist/types/Mapless/mana/text.d.ts +26 -0
- package/dist/types/Mapless/mana/text.d.ts.map +1 -0
- package/dist/types/Mapless/mana/track.d.ts +32 -0
- package/dist/types/Mapless/mana/track.d.ts.map +1 -0
- package/dist/types/Mapless/paint/PaintBoard.d.ts +40 -0
- package/dist/types/Mapless/paint/PaintBoard.d.ts.map +1 -0
- package/dist/types/Mapless/paint/index.d.ts +5 -0
- package/dist/types/Mapless/paint/index.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/base.d.ts +18 -0
- package/dist/types/Mapless/paint/shape/base.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/circle-radius.d.ts +10 -0
- package/dist/types/Mapless/paint/shape/circle-radius.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/circle.d.ts +10 -0
- package/dist/types/Mapless/paint/shape/circle.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/freedom.d.ts +10 -0
- package/dist/types/Mapless/paint/shape/freedom.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/rectangle.d.ts +10 -0
- package/dist/types/Mapless/paint/shape/rectangle.d.ts.map +1 -0
- package/dist/types/Mapless/paint/shape/select.d.ts +12 -0
- package/dist/types/Mapless/paint/shape/select.d.ts.map +1 -0
- package/dist/types/Mapless/paint/test2Points.d.ts +21 -0
- package/dist/types/Mapless/paint/test2Points.d.ts.map +1 -0
- package/dist/types/Mapless/paint/utils.d.ts +24 -0
- package/dist/types/Mapless/paint/utils.d.ts.map +1 -0
- package/dist/types/Mapless/preset/mapless.d.ts +17 -0
- package/dist/types/Mapless/preset/mapless.d.ts.map +1 -0
- package/dist/types/Mapless/preset/statusColors.d.ts +27 -0
- package/dist/types/Mapless/preset/statusColors.d.ts.map +1 -0
- package/dist/types/Mapless/preset/types.d.ts +68 -0
- package/dist/types/Mapless/preset/types.d.ts.map +1 -0
- package/dist/types/Mapless/theme/2d3d/2d.d.ts +10 -0
- package/dist/types/Mapless/theme/2d3d/2d.d.ts.map +1 -0
- package/dist/types/Mapless/theme/2d3d/3d.d.ts +9 -0
- package/dist/types/Mapless/theme/2d3d/3d.d.ts.map +1 -0
- package/dist/types/Mapless/theme/2d3d/index.d.ts +4 -0
- package/dist/types/Mapless/theme/2d3d/index.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/cyber.d.ts +1762 -0
- package/dist/types/Mapless/theme/dzmap/cyber.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/dark.d.ts +1762 -0
- package/dist/types/Mapless/theme/dzmap/dark.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/index.d.ts +7 -0
- package/dist/types/Mapless/theme/dzmap/index.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/light.d.ts +1761 -0
- package/dist/types/Mapless/theme/dzmap/light.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/satellite.d.ts +1009 -0
- package/dist/types/Mapless/theme/dzmap/satellite.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/background.d.ts +10 -0
- package/dist/types/Mapless/theme/dzmap/source/background.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/colors.d.ts +4 -0
- package/dist/types/Mapless/theme/dzmap/source/colors.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/dem.d.ts +94 -0
- package/dist/types/Mapless/theme/dzmap/source/dem.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/dzbuildings.d.ts +235 -0
- package/dist/types/Mapless/theme/dzmap/source/dzbuildings.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/empty.d.ts +11 -0
- package/dist/types/Mapless/theme/dzmap/source/empty.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/openmaptiles.d.ts +7207 -0
- package/dist/types/Mapless/theme/dzmap/source/openmaptiles.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/source/satellite.d.ts +17 -0
- package/dist/types/Mapless/theme/dzmap/source/satellite.d.ts.map +1 -0
- package/dist/types/Mapless/theme/dzmap/streets.d.ts +1584 -0
- package/dist/types/Mapless/theme/dzmap/streets.d.ts.map +1 -0
- package/dist/types/Mapless/theme/lite.d.ts +41 -0
- package/dist/types/Mapless/theme/lite.d.ts.map +1 -0
- package/dist/types/Mapless/theme/mapbox/index.d.ts +6 -0
- package/dist/types/Mapless/theme/mapbox/index.d.ts.map +1 -0
- package/dist/types/Mapless/themeSources.d.ts +72 -0
- package/dist/types/Mapless/themeSources.d.ts.map +1 -0
- package/dist/types/Mapless/types.d.ts +173 -0
- package/dist/types/Mapless/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/draw/shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,GAAG,CAAC;AAE1B,qBAAa,SAAS;IACpB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IAMjC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAM;gBAEtB,IAAI,EAAE,IAAI;IAItB,YAAY,GACV,IAAI,MAAM,EACV,OAAO,MAAM,EAAE,EACf,QAAQ,OAAO,CAAC,QAAQ,EAAE,EAC1B,SAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAqB,UAuChD;IAEF,KAAK,GAAI,IAAI,MAAM,UAIjB;IAEF,KAAK,GAAI,IAAI,MAAM,UAIjB;CACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
filter: (string | string[])[];
|
|
5
|
+
paint: {
|
|
6
|
+
'fill-color': (string | (string | string[])[])[];
|
|
7
|
+
'fill-opacity': number;
|
|
8
|
+
'line-color'?: undefined;
|
|
9
|
+
'line-dasharray'?: undefined;
|
|
10
|
+
'line-width'?: undefined;
|
|
11
|
+
"circle-radius"?: undefined;
|
|
12
|
+
"circle-color"?: undefined;
|
|
13
|
+
};
|
|
14
|
+
layout?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
type: string;
|
|
18
|
+
filter: (string | string[])[];
|
|
19
|
+
layout: {
|
|
20
|
+
'line-cap': string;
|
|
21
|
+
'line-join': string;
|
|
22
|
+
};
|
|
23
|
+
paint: {
|
|
24
|
+
'line-color': (string | (string | string[])[])[];
|
|
25
|
+
'line-dasharray': (string | number[] | (string | string[])[])[];
|
|
26
|
+
'line-width': number;
|
|
27
|
+
'fill-color'?: undefined;
|
|
28
|
+
'fill-opacity'?: undefined;
|
|
29
|
+
"circle-radius"?: undefined;
|
|
30
|
+
"circle-color"?: undefined;
|
|
31
|
+
};
|
|
32
|
+
} | {
|
|
33
|
+
id: string;
|
|
34
|
+
type: string;
|
|
35
|
+
filter: (string | string[])[];
|
|
36
|
+
paint: {
|
|
37
|
+
'circle-radius': (string | number | (string | string[])[])[];
|
|
38
|
+
'circle-color': string;
|
|
39
|
+
'fill-color'?: undefined;
|
|
40
|
+
'fill-opacity'?: undefined;
|
|
41
|
+
'line-color'?: undefined;
|
|
42
|
+
'line-dasharray'?: undefined;
|
|
43
|
+
'line-width'?: undefined;
|
|
44
|
+
};
|
|
45
|
+
layout?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
filter: (string | string[])[];
|
|
50
|
+
paint: {
|
|
51
|
+
'circle-radius': (string | number | (string | string[])[])[];
|
|
52
|
+
'circle-color': (string | (string | string[])[])[];
|
|
53
|
+
'fill-color'?: undefined;
|
|
54
|
+
'fill-opacity'?: undefined;
|
|
55
|
+
'line-color'?: undefined;
|
|
56
|
+
'line-dasharray'?: undefined;
|
|
57
|
+
'line-width'?: undefined;
|
|
58
|
+
};
|
|
59
|
+
layout?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
id: string;
|
|
62
|
+
type: string;
|
|
63
|
+
filter: (string | string[])[];
|
|
64
|
+
paint: {
|
|
65
|
+
'circle-radius': number;
|
|
66
|
+
'circle-color': string;
|
|
67
|
+
'fill-color'?: undefined;
|
|
68
|
+
'fill-opacity'?: undefined;
|
|
69
|
+
'line-color'?: undefined;
|
|
70
|
+
'line-dasharray'?: undefined;
|
|
71
|
+
'line-width'?: undefined;
|
|
72
|
+
};
|
|
73
|
+
layout?: undefined;
|
|
74
|
+
})[];
|
|
75
|
+
export default _default;
|
|
76
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/draw/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAqGE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxRequestHandler.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/extensions/MapboxRequestHandler.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;IAC/B,iBAAiB,EAAE,MAAM,CAAC;;IAO1B,sBAAsB;IAMtB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG;CAgDzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CustomLayerInterface, CustomSourceInterface, LayerSpecification, LayoutSpecification, Source, SourceSpecification } from 'mapbox-gl';
|
|
2
|
+
import type { AnyLayer, Coordinates, PartSource, StyleSetterOptions } from './types';
|
|
3
|
+
declare module '../Base' {
|
|
4
|
+
interface Mapless {
|
|
5
|
+
getSource(id: string | undefined): Source | undefined;
|
|
6
|
+
addSource(id: string | undefined, source: SourceSpecification | CustomSourceInterface<unknown>): mapboxgl.Map | undefined;
|
|
7
|
+
addEmptySource(id: string | undefined, options?: PartSource): mapboxgl.Map | undefined;
|
|
8
|
+
setData(id: string | undefined, data: GeoJSON.GeoJSON | string): mapboxgl.Map | undefined;
|
|
9
|
+
setEmptyData(id: string | undefined): mapboxgl.Map | undefined;
|
|
10
|
+
getLayer<T extends LayerSpecification | CustomLayerInterface>(id: string | undefined): T | undefined;
|
|
11
|
+
addLayer(layer: AnyLayer, beforeId?: string): mapboxgl.Map | undefined;
|
|
12
|
+
setLayoutProperty<T extends keyof LayoutSpecification>(layerId: string | undefined, name: T, value: LayoutSpecification[T], options?: StyleSetterOptions): mapboxgl.Map | undefined;
|
|
13
|
+
removeLayer(id: string | undefined): mapboxgl.Map | undefined;
|
|
14
|
+
removeSource(id: string | undefined): mapboxgl.Map | undefined;
|
|
15
|
+
setCursor(cursor: string): void;
|
|
16
|
+
updateImage(id: string | undefined, options: {
|
|
17
|
+
url: string;
|
|
18
|
+
coordinates?: Coordinates;
|
|
19
|
+
}): mapboxgl.Map | undefined;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=mapless.adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapless.adapter.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/extensions/mapless.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,MAAM,EACN,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,QAAQ,EAER,WAAW,EACX,UAAU,EACV,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,QAAQ,SAAS,CAAC;IAEvB,UAAU,OAAO;QACf,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;QACtD,SAAS,CACP,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,MAAM,EAAE,mBAAmB,GAAG,qBAAqB,CAAC,OAAO,CAAC,GAC3D,QAAQ,CAAC,GAAG,GAAG,SAAS,CAAC;QAC5B,cAAc,CACZ,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,OAAO,CAAC,EAAE,UAAU,GACnB,QAAQ,CAAC,GAAG,GAAG,SAAS,CAAC;QAC5B,OAAO,CACL,EA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
|
|
3
|
+
id?: string;
|
|
4
|
+
} ? Omit<T, 'id'> & {
|
|
5
|
+
id: string | undefined;
|
|
6
|
+
} : T;
|
|
7
|
+
export type AnyLayerSource = {
|
|
8
|
+
source?: LayerSpecification['source'] | SourceSpecification;
|
|
9
|
+
};
|
|
10
|
+
export type StyleSetterOptions = {
|
|
11
|
+
validate?: boolean;
|
|
12
|
+
isInitialLoad?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type AnyLayerOriginal = (Omit<LayerSpecification, 'source'> & AnyLayerSource) | CustomLayerInterface;
|
|
15
|
+
export type AnyLayer = OverrideId<AnyLayerOriginal>;
|
|
16
|
+
export type PartSource = Partial<Omit<SourceSpecification, 'type' | 'data'>>;
|
|
17
|
+
export type Coordinates = [
|
|
18
|
+
[
|
|
19
|
+
number,
|
|
20
|
+
number
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
number,
|
|
24
|
+
number
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
number,
|
|
28
|
+
number
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
number,
|
|
32
|
+
number
|
|
33
|
+
]
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/extensions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GACjD,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC1C,CAAC,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,mBAAmB,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GAAG,cAAc,CAAC,GACrD,oBAAoB,CAAC;AAEzB,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,WAAW,GAAG;IACxB;QAAC,MAAM;QAAE,MAAM;KAAC;IAChB;QAAC,MAAM;QAAE,MAAM;KAAC;IAChB;QAAC,MAAM;QAAE,MAAM;KAAC;IAChB;QAAC,MAAM;QAAE,MAAM;KAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class Singleton {
|
|
2
|
+
private customIcons;
|
|
3
|
+
getIconUrl(name: string): string | null;
|
|
4
|
+
loadDefaultIcons(map: mapboxgl.Map | null): Promise<void>;
|
|
5
|
+
loadCustomIcon(map: mapboxgl.Map, name: string, url: string, genColoredImg?: boolean, type?: 'circle' | 'roundRect' | 'circle_dark' | 'roundRect_dark' | null): Promise<void>;
|
|
6
|
+
loadSdf(map: mapboxgl.Map, name: string, url: string): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: Singleton;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=Singleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Singleton.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/icons/Singleton.ts"],"names":[],"mappings":"AAGA,cAAM,SAAS;IACb,OAAO,CAAC,WAAW,CAAuC;IAE1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAIjC,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,IAAI;IA4CzC,cAAc,CAClB,GAAG,EAAE,QAAQ,CAAC,GAAG,EACjB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,aAAa,UAAO,EACpB,IAAI,GACA,QAAQ,GACR,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,IAAW,GACd,OAAO,CAAC,IAAI,CAAC;IA4CV,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB3E;;AAED,wBAA+B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const icons: {
|
|
2
|
+
center: string;
|
|
3
|
+
fly: string;
|
|
4
|
+
signal: string;
|
|
5
|
+
dzStadium: string;
|
|
6
|
+
portable: string;
|
|
7
|
+
fixed: string;
|
|
8
|
+
movable: string;
|
|
9
|
+
mobile: string;
|
|
10
|
+
sensorRFeye: string;
|
|
11
|
+
sensor: string;
|
|
12
|
+
dzCar: string;
|
|
13
|
+
dzFlight: string;
|
|
14
|
+
dzShip: string;
|
|
15
|
+
locating: string;
|
|
16
|
+
monaloading: string;
|
|
17
|
+
react: string;
|
|
18
|
+
fixedRect: string;
|
|
19
|
+
sensorCircle: string;
|
|
20
|
+
selectCircle: string;
|
|
21
|
+
selectRect: string;
|
|
22
|
+
selectCircle2: string;
|
|
23
|
+
selectRect2: string;
|
|
24
|
+
mobileRect: string;
|
|
25
|
+
otherCircle: string;
|
|
26
|
+
movableRect: string;
|
|
27
|
+
portableRect: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const borderIcon: {
|
|
30
|
+
circle: {
|
|
31
|
+
dzCircleSmall: string;
|
|
32
|
+
dzCircle: string;
|
|
33
|
+
};
|
|
34
|
+
rectangle: {
|
|
35
|
+
dzRectSmall: string;
|
|
36
|
+
dzRect: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
declare const sdfs: {
|
|
40
|
+
test1: string;
|
|
41
|
+
test2: string;
|
|
42
|
+
};
|
|
43
|
+
export default icons;
|
|
44
|
+
export { sdfs };
|
|
45
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/icons/icons.ts"],"names":[],"mappings":"AAiCA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCV,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAGF,QAAA,MAAM,IAAI;;;CAGT,CAAC;AAEF,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import Mapless from './Base';
|
|
2
|
+
import './extensions/mapless.adapter';
|
|
3
|
+
import { PositionMarker } from './core/position.mkr';
|
|
4
|
+
import { PositionMouse } from './core/position.mus';
|
|
5
|
+
import Singleton from './icons/Singleton';
|
|
6
|
+
import { maplessPreset, propwmsTransformRequest } from './preset/mapless';
|
|
7
|
+
export { Mapless };
|
|
8
|
+
export { maplessPreset, propwmsTransformRequest };
|
|
9
|
+
export { PositionMarker, PositionMouse, Singleton };
|
|
10
|
+
export * from './coord';
|
|
11
|
+
export * from './core/manager';
|
|
12
|
+
export * from './core/throttle';
|
|
13
|
+
export * from './draw';
|
|
14
|
+
export * from './extensions/types';
|
|
15
|
+
export * from './lang';
|
|
16
|
+
export * from './mana/boundary';
|
|
17
|
+
export * from './mana/cluster';
|
|
18
|
+
export * from './mana/curve';
|
|
19
|
+
export * from './mana/heatmap';
|
|
20
|
+
export * from './mana/imagedata';
|
|
21
|
+
export * from './mana/line';
|
|
22
|
+
export * from './mana/marker';
|
|
23
|
+
export * from './mana/movable';
|
|
24
|
+
export * from './mana/newstation';
|
|
25
|
+
export * from './mana/node';
|
|
26
|
+
export * from './mana/oldstation';
|
|
27
|
+
export * from './mana/polygon';
|
|
28
|
+
export * from './mana/routes';
|
|
29
|
+
export * from './mana/shape';
|
|
30
|
+
export * from './mana/step';
|
|
31
|
+
export * from './mana/text';
|
|
32
|
+
export * from './mana/track';
|
|
33
|
+
export * from './paint';
|
|
34
|
+
export * from './preset/types';
|
|
35
|
+
export * from './theme/lite';
|
|
36
|
+
export * from './themeSources';
|
|
37
|
+
export * from './types';
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Mapless/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,QAAQ,CAAC;AAC7B,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AAEpD,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ControlPosition, IControl, Layer, StyleSpecification } from 'mapbox-gl';
|
|
2
|
+
export declare interface MapboxLanguageOptions {
|
|
3
|
+
/** List of supported languages */
|
|
4
|
+
supportedLanguages?: string[];
|
|
5
|
+
/** Custom style transformation to apply */
|
|
6
|
+
languageTransform?: (style: StyleSpecification, language: string) => StyleSpecification;
|
|
7
|
+
/**
|
|
8
|
+
* RegExp to match if a text-field is a language field
|
|
9
|
+
* @default /^name_/
|
|
10
|
+
*/
|
|
11
|
+
languageField?: RegExp;
|
|
12
|
+
/** Given a language choose the field in the vector tiles */
|
|
13
|
+
getLanguageField?: (language: string) => string;
|
|
14
|
+
/** Name of the source that contains the different languages. */
|
|
15
|
+
languageSource?: string;
|
|
16
|
+
/** Name of the default language to initialize style after loading. */
|
|
17
|
+
defaultLanguage?: string;
|
|
18
|
+
/** Name of the layers that should be excluded from translation. */
|
|
19
|
+
excludedLayerIds?: string[];
|
|
20
|
+
}
|
|
21
|
+
export declare class MapboxLanguage implements IControl {
|
|
22
|
+
private options;
|
|
23
|
+
constructor(options: MapboxLanguageOptions);
|
|
24
|
+
setLanguageField(languageField: RegExp): void;
|
|
25
|
+
setGetLanguageField(getLanguageField: (language: string) => string): void;
|
|
26
|
+
isTokenField: RegExp;
|
|
27
|
+
map: mapboxgl.Map | undefined;
|
|
28
|
+
container: HTMLElement | undefined;
|
|
29
|
+
private _current;
|
|
30
|
+
get current(): string;
|
|
31
|
+
set current(value: string);
|
|
32
|
+
isFlatExpressionField(isLangField: RegExp, property: unknown): boolean;
|
|
33
|
+
adaptNestedExpressionField(isLangField: RegExp, property: unknown, languageFieldName: string): void;
|
|
34
|
+
adaptPropertyLanguage(isLangField: RegExp, property: Array<unknown>, languageFieldName: string): unknown[];
|
|
35
|
+
changeLayerTextProperty(isLangField: RegExp, layer: Layer, languageFieldName: string, excludedLayerIds: string[]): Layer;
|
|
36
|
+
findStreetsSource(style: StyleSpecification): string;
|
|
37
|
+
setLanguage(style: StyleSpecification, language: string): StyleSpecification;
|
|
38
|
+
_initialStyleUpdate(): void;
|
|
39
|
+
browserLanguage(supportedLanguages: string[]): string | null;
|
|
40
|
+
onAdd: (map: mapboxgl.Map) => HTMLElement;
|
|
41
|
+
onRemove: (_map: mapboxgl.Map) => void;
|
|
42
|
+
getDefaultPosition?: (() => ControlPosition) | undefined;
|
|
43
|
+
_setLanguage?: ((language?: string | string[]) => void) | undefined;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=MapboxLanguage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapboxLanguage.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/lang/MapboxLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,QAAQ,EACR,KAAK,EACL,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,qBAAqB;IAC5C,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,MAAM,KACb,kBAAkB,CAAC;IACxB;;;OAGG;IACH,aAAa,CAA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AAkB,EAAE,MAAM,EAAE;IAe5C,KAAK,GAAI,KAAK,QAAQ,CAAC,GAAG,iBAKxB;IAEF,QAAQ,GAAI,MAAM,QAAQ,CAAC,GAAG,UAG5B;IAEF,kBAAkB,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,GAAG,SAAS,CAAC;IAEzD,YAAY,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACrE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { StyleSpecification } from 'mapbox-gl';
|
|
2
|
+
import type { Mapless } from '../index';
|
|
3
|
+
type Delimiter = '_' | ':';
|
|
4
|
+
declare class Lang {
|
|
5
|
+
map: mapboxgl.Map | null;
|
|
6
|
+
mapless: Mapless | undefined | null;
|
|
7
|
+
private mblangTool;
|
|
8
|
+
constructor(mapless: Mapless, defaultLang?: string, delimiter?: Delimiter);
|
|
9
|
+
private _delimiter;
|
|
10
|
+
set delimiter(delimiter: Delimiter);
|
|
11
|
+
get delimiter(): Delimiter;
|
|
12
|
+
getLangStyle(style: StyleSpecification, lang?: string): StyleSpecification | undefined;
|
|
13
|
+
switchLang(lang?: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* 切换Mapbox语言
|
|
16
|
+
* @param lang
|
|
17
|
+
* @see MapboxLanguage
|
|
18
|
+
*/
|
|
19
|
+
switchMapboxLang(lang?: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 切换DZMap语言
|
|
22
|
+
* @param lang zh|nonlatin en|latin
|
|
23
|
+
*/
|
|
24
|
+
switchDzmapLang(lang?: string): void;
|
|
25
|
+
destroy: () => void;
|
|
26
|
+
}
|
|
27
|
+
export default Lang;
|
|
28
|
+
export { Lang };
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/lang/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,SAAS,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3B,cAAM,IAAI;IACD,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;IAE3C,OAAO,CAAC,UAAU,CAA6B;gBAEnC,OAAO,EAAE,OAAO,EAAE,WAAW,SAAK,EAAE,SAAS,GAAE,SAAe;IAa1E,OAAO,CAAC,UAAU,CAAkB;IACpC,IAAI,SAAS,CAAC,SAAS,EAAE,SAAS,EAOjC;IACD,IAAI,SAAS,IARY,SAAS,CAUjC;IAED,YAAY,CAAC,KAAK,EAAE,kBAAkB,EAAE,IAAI,SAAK;IASjD,UAAU,CAAC,IAAI,SAAK;IAYpB;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,SAAY;IAMjC;;;OAGG;IACH,eAAe,CAAC,IAAI,SAAO;IAyB3B,OAAO,aAOL;CACH;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IdHubType } from '../core/IdHub';
|
|
2
|
+
import { Manager } from '../core/manager';
|
|
3
|
+
import type { Mapless } from '../index';
|
|
4
|
+
import type { BoundaryOptions, ManagerOptions } from '../types';
|
|
5
|
+
type BoundaryIdHubType = IdHubType & {
|
|
6
|
+
layerId: string;
|
|
7
|
+
maskLayerId: string;
|
|
8
|
+
sourceId: string;
|
|
9
|
+
maskSourceId: string;
|
|
10
|
+
};
|
|
11
|
+
declare class BoundaryManager extends Manager<BoundaryIdHubType> {
|
|
12
|
+
private boundary;
|
|
13
|
+
constructor(mapless: Mapless, options?: ManagerOptions);
|
|
14
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
15
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
16
|
+
initLayers(): void;
|
|
17
|
+
drawBoundary(options: BoundaryOptions): void;
|
|
18
|
+
private handleData;
|
|
19
|
+
private genMaskData;
|
|
20
|
+
toggleMask(visible?: boolean): void;
|
|
21
|
+
fitBounds: () => void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
24
|
+
export default BoundaryManager;
|
|
25
|
+
export declare const attachBoundary: (mapless: Mapless | undefined | null, name?: string) => BoundaryManager | undefined;
|
|
26
|
+
export declare const getBoundary: (mapless: Mapless | undefined | null, name?: string) => BoundaryManager | undefined;
|
|
27
|
+
export declare const detachBoundary: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
28
|
+
//# sourceMappingURL=boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/boundary.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEhE,KAAK,iBAAiB,GAAG,SAAS,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAWF,cAAM,eAAgB,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IACtD,OAAO,CAAC,QAAQ,CAA2B;gBAE/B,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc;IAK7C,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAM1D,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS;IAc9B,UAAU;IA6BnB,YAAY,CAAC,OAAO,EAAE,eAAe;IAyCrC,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,WAAW;IAwCnB,UAAU,CAAC,OAAO,UAAO;IAWhB,SAAS,aAkBhB;IAEO,OAAO,IAAI,IAAI;CAIzB;AAED,eAAe,eAAe,CAAC;AAE/B,eAAO,MAAM,cAAc,GACzB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,gCAC4B,CAAC;AAC5C,eAAO,MAAM,WAAW,GACtB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,gCACyB,CAAC;AACzC,eAAO,MAAM,cAAc,GACzB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,wBAC4B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Mapless } from '..';
|
|
2
|
+
import { type IdHubType } from '../core/IdHub';
|
|
3
|
+
import { EmitManager } from '../core/manager';
|
|
4
|
+
import type { ManagerOptions, Node, NodeManagerEvents, NodeManagerOptions } from '../types';
|
|
5
|
+
type ClusterIdHubType = IdHubType & {
|
|
6
|
+
clusterLayerId: string;
|
|
7
|
+
clusterLayerSelectId: string;
|
|
8
|
+
clusterLayerCountId: string;
|
|
9
|
+
clusterLayerPointId: string;
|
|
10
|
+
clusterSourceId: string;
|
|
11
|
+
};
|
|
12
|
+
export default class ClusterManager extends EmitManager<NodeManagerEvents, ClusterIdHubType> {
|
|
13
|
+
private nodes;
|
|
14
|
+
private iconSize;
|
|
15
|
+
constructor(mapless: Mapless, options?: ManagerOptions);
|
|
16
|
+
protected handleCoordSystemChange(_system: string | undefined): void;
|
|
17
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
18
|
+
initLayers(): void;
|
|
19
|
+
onStyleChanged: (tag: string) => void;
|
|
20
|
+
drawCluster(nodes: Node[]): void;
|
|
21
|
+
destroy: () => void;
|
|
22
|
+
fitBounds: () => void;
|
|
23
|
+
setupClickHandler(): void;
|
|
24
|
+
setupHoverHandler(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare const attachCluster: (mapless: Mapless | undefined, name?: string, options?: NodeManagerOptions) => ClusterManager | undefined;
|
|
27
|
+
export declare const getCluster: (mapless: Mapless | undefined | null, name?: string) => ClusterManager | undefined;
|
|
28
|
+
export declare const detachCluster: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=cluster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/cluster.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,EACV,cAAc,EACd,IAAI,EACJ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,KAAK,gBAAgB,GAAG,SAAS,GAAG;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW,CACrD,iBAAiB,EACjB,gBAAgB,CACjB;IACC,OAAO,CAAC,KAAK,CAAiC;IAE9C,OAAO,CAAC,QAAQ,CAAe;gBAEnB,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc;cAUnC,uBAAuB,CACxC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI;IAME,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS;IAe9B,UAAU;IAuFV,cAAc,GAAI,KAAK,MAAM,UAiBpC;IAEF,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE;IA2BhB,OAAO,aAGd;IAEO,SAAS,aAShB;IAEF,iBAAiB;IAmDjB,iBAAiB;CAqBlB;AAED,eAAO,MAAM,aAAa,GACxB,SAAS,OAAO,GAAG,SAAS,EAC5B,OAAO,MAAM,EACb,UAAU,kBAAkB,+BACkB,CAAC;AACjD,eAAO,MAAM,UAAU,GACrB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,+BACwB,CAAC;AACxC,eAAO,MAAM,aAAa,GACxB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,wBAC0B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Mapless } from '..';
|
|
2
|
+
import type { IdHubType } from '../core/IdHub';
|
|
3
|
+
import { Manager } from '../core/manager';
|
|
4
|
+
import type { CurveOptions, ManagerOptions } from '../types';
|
|
5
|
+
type CurveIdHubType = IdHubType & {
|
|
6
|
+
sourceId: string;
|
|
7
|
+
layerId: string;
|
|
8
|
+
};
|
|
9
|
+
export default class CurveManager extends Manager<CurveIdHubType> {
|
|
10
|
+
private curves;
|
|
11
|
+
constructor(mapless: Mapless, options?: ManagerOptions);
|
|
12
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
13
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
14
|
+
initLayers(): void;
|
|
15
|
+
drawCurve(id: string, options: CurveOptions): void;
|
|
16
|
+
removeCurve(id: string): void;
|
|
17
|
+
removeAll(): void;
|
|
18
|
+
fitBounds: (ids?: string[], padding?: number) => void;
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const attachCurve: (mapless: Mapless | undefined | null, name?: string) => CurveManager | undefined;
|
|
22
|
+
export declare const getCurve: (mapless: Mapless | undefined | null, name?: string) => CurveManager | undefined;
|
|
23
|
+
export declare const detachCurve: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=curve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curve.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/curve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AASF,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO,CAAC,cAAc,CAAC;IAC/D,OAAO,CAAC,MAAM,CAAiC;gBAEnC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc;IAK7C,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAS1D,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI;IAYrC,UAAU;IAenB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IA8B3C,WAAW,CAAC,EAAE,EAAE,MAAM;IAWtB,SAAS;IAKA,SAAS,GAAI,MAAM,MAAM,EAAE,EAAE,UAAU,MAAM,UAapD;IAEO,OAAO;CAIjB;AAED,eAAO,MAAM,WAAW,GACtB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,6BACsB,CAAC;AACtC,eAAO,MAAM,QAAQ,GAAI,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EAAE,OAAO,MAAM,6BACzC,CAAC;AACnC,eAAO,MAAM,WAAW,GACtB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,wBACwB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type LngLatLike } from 'mapbox-gl';
|
|
2
|
+
import type { Mapless } from '..';
|
|
3
|
+
import type { IdHubType } from '../core/IdHub';
|
|
4
|
+
import { Manager } from '../core/manager';
|
|
5
|
+
import type { HeatmapManagerOptions } from '../types';
|
|
6
|
+
type HeatmapIdHubType = IdHubType & {
|
|
7
|
+
heatmapLayerId: string;
|
|
8
|
+
heatmapSourceId: string;
|
|
9
|
+
};
|
|
10
|
+
export default class HeatmapManager extends Manager<HeatmapIdHubType> {
|
|
11
|
+
private points;
|
|
12
|
+
private maxPoints;
|
|
13
|
+
constructor(mapless: Mapless, options?: HeatmapManagerOptions);
|
|
14
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
15
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
16
|
+
initLayers(): void;
|
|
17
|
+
private _updateDraw;
|
|
18
|
+
drawHeatmap(points: LngLatLike[]): void;
|
|
19
|
+
updateHeatmap(points: LngLatLike[], maxPoints?: number): void;
|
|
20
|
+
removeHeatmap(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare const attachHeatmap: (mapless: Mapless | undefined, name?: string, options?: HeatmapManagerOptions) => HeatmapManager | undefined;
|
|
24
|
+
export declare const getHeatmap: (mapless: Mapless | undefined | null, name?: string) => HeatmapManager | undefined;
|
|
25
|
+
export declare const detachHeatmap: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=heatmap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/heatmap.ts"],"names":[],"mappings":"AAAA,OAAO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
+
import type { IdHubType } from '../core/IdHub';
|
|
3
|
+
import { Manager } from '../core/manager';
|
|
4
|
+
import type { ManagerOptions } from '../types';
|
|
5
|
+
export default class ImageDataManager extends Manager {
|
|
6
|
+
private imageData;
|
|
7
|
+
constructor(mapless: Mapless, options?: ManagerOptions);
|
|
8
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
9
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
10
|
+
initLayers(): void;
|
|
11
|
+
drawImageData(coordinates: Coordinates, imageUrl: string): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const attachImageData: (mapless: Mapless | undefined | null, name?: string) => ImageDataManager | undefined;
|
|
14
|
+
export declare const getImageData: (mapless: Mapless | undefined | null, name?: string) => ImageDataManager | undefined;
|
|
15
|
+
export declare const detachImageData: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
16
|
+
//# sourceMappingURL=imagedata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imagedata.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/imagedata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAY/C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;IACnD,OAAO,CAAC,SAAS,CAAiC;gBAEtC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc;IAK7C,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAW1D,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS;IAY9B,UAAU;IAOnB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM;CAoCzD;AAED,eAAO,MAAM,eAAe,GAC1B,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,iCAC0B,CAAC;AAC1C,eAAO,MAAM,YAAY,GACvB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,iCAC0B,CAAC;AAC1C,eAAO,MAAM,eAAe,GAC1B,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,wBAC4B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Mapless } from '..';
|
|
2
|
+
import type { IdHubType } from '../core/IdHub';
|
|
3
|
+
import { Manager } from '../core/manager';
|
|
4
|
+
import type { Line, LineManagerOptions } from '../types';
|
|
5
|
+
type LineIdHubType = IdHubType & {
|
|
6
|
+
lineSourceId: string;
|
|
7
|
+
lineLayerId: string;
|
|
8
|
+
textSourceId: string;
|
|
9
|
+
textLayerId: string;
|
|
10
|
+
};
|
|
11
|
+
declare class LineManager extends Manager<LineIdHubType> {
|
|
12
|
+
private lines;
|
|
13
|
+
private showText;
|
|
14
|
+
constructor(mapless: Mapless, options?: LineManagerOptions);
|
|
15
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
16
|
+
createIdHub(_idHub?: IdHubType): void;
|
|
17
|
+
initLayers(): void;
|
|
18
|
+
onStyleChanged: (tag: string) => void;
|
|
19
|
+
private _updateDraw;
|
|
20
|
+
drawLines(lines: Line[], clear?: boolean): void;
|
|
21
|
+
updateLine(options: {
|
|
22
|
+
id: string;
|
|
23
|
+
longitude?: number;
|
|
24
|
+
latitude?: number;
|
|
25
|
+
azimuth?: number;
|
|
26
|
+
lineLength?: number;
|
|
27
|
+
color?: string;
|
|
28
|
+
} | Partial<Line>, redraw?: boolean): void;
|
|
29
|
+
updateLines(lines: Line[]): void;
|
|
30
|
+
updatePositions(lngLat: [number, number]): void;
|
|
31
|
+
clearLines(redraw?: boolean): void;
|
|
32
|
+
removeLine(id: string): void;
|
|
33
|
+
destroy: () => void;
|
|
34
|
+
}
|
|
35
|
+
export default LineManager;
|
|
36
|
+
export declare const attachLine: (mapless: Mapless | undefined, name?: string, options?: LineManagerOptions) => LineManager | undefined;
|
|
37
|
+
export declare const getLine: (mapless: Mapless | undefined | null, name?: string) => LineManager | undefined;
|
|
38
|
+
export declare const detachLine: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
39
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/line.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAQ1C,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEzD,KAAK,aAAa,GAAG,SAAS,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,cAAM,WAAY,SAAQ,OAAO,CAAC,aAAa,CAAC;IAC9C,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAOjD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAM1D,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS;IAc9B,UAAU;IA0CV,cAAc,GAAI,KAAK,MAAM,UAepC;IAEF,OAAO,CAAC,WAAW;IAsDnB,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,UAAQ;IAWtC,UAAU,CACR,OAAO,EACH;QACE,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GACD,OAAO,CAAC,IAAI,CAAC,EACjB,MAAM,UAAO;IAef,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE;IAOzB,eAAe,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAUxC,UAAU,CAAC,MAAM,UAAO;IAKxB,UAAU,CAAC,EAAE,EAAE,MAAM;IAKZ,OAAO,aAGd;CACH;AAED,eAAe,WAAW,CAAC;AAE3B,eAAO,MAAM,UAAU,GACrB,SAAS,OAAO,GAAG,SAAS,EAC5B,OAAO,MAAM,EACb,UAAU,kBAAkB,4BACe,CAAC;AAC9C,eAAO,MAAM,OAAO,GAAI,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EAAE,OAAO,MAAM,4BACzC,CAAC;AAClC,eAAO,MAAM,UAAU,GACrB,SAAS,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,OAAO,MAAM,wBACuB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type Anchor } from 'mapbox-gl';
|
|
2
|
+
import type { Mapless } from '..';
|
|
3
|
+
import { Manager } from '../core/manager';
|
|
4
|
+
import type { ManagerOptions } from '../types';
|
|
5
|
+
type MarkerOptions = {
|
|
6
|
+
lnglat: [number, number];
|
|
7
|
+
marker: mapboxgl.Marker;
|
|
8
|
+
};
|
|
9
|
+
declare class MarkerManager extends Manager {
|
|
10
|
+
private markers;
|
|
11
|
+
constructor(mapless: Mapless, options?: ManagerOptions);
|
|
12
|
+
handleCoordSystemChange(_system: string | undefined): void;
|
|
13
|
+
getMarkers(): Record<string, MarkerOptions>;
|
|
14
|
+
addMarker(id: string, lnglat: [number, number], options: {
|
|
15
|
+
icon?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
popup?: string;
|
|
18
|
+
anchor?: Anchor;
|
|
19
|
+
}): void;
|
|
20
|
+
/**
|
|
21
|
+
* 通用更新标记点方法
|
|
22
|
+
* @param id 标记点ID
|
|
23
|
+
* @param options 更新选项
|
|
24
|
+
* @param options.lnglat 新坐标 [经度, 纬度]
|
|
25
|
+
* @param options.icon 新图标
|
|
26
|
+
* @param options.popup 新弹出内容
|
|
27
|
+
*/
|
|
28
|
+
updateMarker(id: string, options: {
|
|
29
|
+
lnglat?: [number, number];
|
|
30
|
+
popup?: string;
|
|
31
|
+
}): void;
|
|
32
|
+
removeMarker(id: string): void;
|
|
33
|
+
destroy: () => void;
|
|
34
|
+
}
|
|
35
|
+
export default MarkerManager;
|
|
36
|
+
export declare const attachMarker: (mapless: Mapless | undefined | null, name?: string) => MarkerManager | undefined;
|
|
37
|
+
export declare const getMarker: (mapless: Mapless | undefined | null, name?: string) => MarkerManager | undefined;
|
|
38
|
+
export declare const detachMarker: (mapless: Mapless | undefined | null, name?: string) => boolean | undefined;
|
|
39
|
+
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../../src/Mapless/mana/marker.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;CACzB,CAAC;AAEF,cAA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