@xingm/vmap-cesium-toolbar 0.0.6 → 1.0.0
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/README.md +126 -230
- package/dist/README.md +172 -0
- package/dist/adapters/DrawHelperAdapter.d.ts +143 -0
- package/dist/adapters/MapLoaderAdapter.d.ts +44 -0
- package/dist/adapters/OverlayServiceAdapter.d.ts +102 -0
- package/dist/adapters/ToolbarAdapter.d.ts +71 -0
- package/dist/adapters/index.d.ts +23 -0
- package/dist/components/BaseComponent.d.ts +116 -0
- package/dist/components/SearchBox.d.ts +136 -0
- package/dist/components/Toolbar.d.ts +115 -0
- package/dist/components/ToolbarButton.d.ts +100 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/core/MapPlugin.d.ts +160 -0
- package/dist/core/constants.d.ts +88 -0
- package/dist/core/entities/BaseOverlay.d.ts +156 -0
- package/dist/core/entities/Circle.d.ts +102 -0
- package/dist/core/entities/Icon.d.ts +86 -0
- package/dist/core/entities/InfoWindow.d.ts +116 -0
- package/dist/core/entities/Label.d.ts +92 -0
- package/dist/core/entities/Marker.d.ts +66 -0
- package/dist/core/entities/Polygon.d.ts +93 -0
- package/dist/core/entities/Polyline.d.ts +72 -0
- package/dist/core/entities/Rectangle.d.ts +99 -0
- package/dist/core/entities/Ring.d.ts +114 -0
- package/dist/core/entities/SVG.d.ts +89 -0
- package/dist/core/entities/index.d.ts +27 -0
- package/dist/core/index.d.ts +25 -0
- package/dist/core/layers/BaiduMapLayer.d.ts +37 -0
- package/dist/core/layers/CustomMapLayer.d.ts +43 -0
- package/dist/core/layers/GaodeMapLayer.d.ts +41 -0
- package/dist/core/layers/HeatmapLayer.d.ts +118 -0
- package/dist/core/layers/MapLayer.d.ts +37 -0
- package/dist/core/layers/OSMMapLayer.d.ts +37 -0
- package/dist/core/layers/PointClusterLayer.d.ts +119 -0
- package/dist/core/layers/TDTMapLayer.d.ts +45 -0
- package/dist/core/layers/index.d.ts +15 -0
- package/dist/core/services/draw/DrawInteractionController.d.ts +16 -0
- package/dist/core/services/draw/DrawService.d.ts +38 -0
- package/dist/core/services/draw/DrawSessionStore.d.ts +28 -0
- package/dist/core/services/draw/drawDefaults.d.ts +16 -0
- package/dist/core/services/draw/entities/drawEntityFactory.d.ts +10 -0
- package/dist/core/services/draw/entities/drawEntityRegistry.d.ts +8 -0
- package/dist/core/services/draw/entities/drawFinalFactory.d.ts +14 -0
- package/dist/core/services/draw/entities/drawPreviewFactory.d.ts +15 -0
- package/dist/core/services/draw/geometry/drawGeometry.d.ts +11 -0
- package/dist/core/services/draw/geometry/drawPosition.d.ts +6 -0
- package/dist/core/services/draw/index.d.ts +7 -0
- package/dist/core/services/draw/labels/drawHint.d.ts +16 -0
- package/dist/core/services/draw/labels/measurementCanvas.d.ts +8 -0
- package/dist/core/services/draw/labels/measurementLabelFactory.d.ts +18 -0
- package/dist/core/services/draw/measurementThemeResolver.d.ts +9 -0
- package/dist/core/services/draw/types/drawState.d.ts +37 -0
- package/dist/core/services/draw/types/drawTypes.d.ts +97 -0
- package/dist/core/services/index.d.ts +10 -0
- package/dist/core/services/overlay/OverlayService.d.ts +188 -0
- package/dist/core/services/overlay/index.d.ts +7 -0
- package/dist/core/services/toolbar/ToolbarService.d.ts +175 -0
- package/dist/core/services/toolbar/buttons/BaseButtonHandler.d.ts +111 -0
- package/dist/core/services/toolbar/buttons/LayersButtonHandler.d.ts +47 -0
- package/dist/core/services/toolbar/buttons/MeasureButtonHandler.d.ts +94 -0
- package/dist/core/services/toolbar/buttons/SearchButtonHandler.d.ts +111 -0
- package/dist/core/services/toolbar/buttons/SimpleButtonHandler.d.ts +79 -0
- package/dist/core/services/toolbar/config.d.ts +7 -0
- package/dist/core/services/toolbar/index.d.ts +30 -0
- package/dist/core/services/toolbar/menus/BaseMenu.d.ts +99 -0
- package/dist/core/services/toolbar/menus/MeasureMenu.d.ts +44 -0
- package/dist/core/services/toolbar/types.d.ts +198 -0
- package/dist/core/types.d.ts +586 -0
- package/dist/i18n/en-US.d.ts +46 -0
- package/dist/i18n/index.d.ts +45 -2
- package/dist/i18n/zh-CN.d.ts +46 -0
- package/dist/index.d.ts +37 -42
- package/dist/index.es.js +6874 -9666
- package/dist/index.es.js.map +1 -1
- package/dist/libs/CesiumMapModel.d.ts +1 -172
- package/dist/libs/CesiumMapToolbar.d.ts +1 -1
- package/dist/libs/CesiumOverlayService.d.ts +9 -222
- package/dist/libs/config/CesiumMapConfig.d.ts +5 -12
- package/dist/libs/drawHelper/DrawHint.d.ts +15 -27
- package/dist/libs/drawHelper/index.d.ts +67 -6
- package/dist/libs/toolBar/CesiumMapController.d.ts +38 -64
- package/dist/libs/toolBar/MapLayersService.d.ts +10 -61
- package/dist/libs/toolBar/MapSearchService.d.ts +8 -29
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +33 -5
- package/dist/libs/toolBar/MeasurementService.d.ts +13 -5
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +6 -41
- package/dist/package.json +19 -6
- package/dist/styles/ComponentStyles.d.ts +82 -0
- package/dist/styles/StyleManager.d.ts +142 -0
- package/dist/styles/index.d.ts +128 -0
- package/dist/utils/common.d.ts +4 -0
- package/package.json +1 -1
- package/dist/hooks/toolBarConfig.d.ts +0 -75
- package/dist/hooks/useDrawHelper.d.ts +0 -24
- package/dist/hooks/useDynamicRing.d.ts +0 -44
- package/dist/hooks/useHeatmapHelper.d.ts +0 -18
- package/dist/hooks/useMap.d.ts +0 -14
- package/dist/hooks/useMapInit.d.ts +0 -14
- package/dist/hooks/useOverlayHelper.d.ts +0 -48
- package/dist/hooks/usePointClusterHelper.d.ts +0 -14
- package/dist/index.umd.js +0 -326
- package/dist/index.umd.js.map +0 -1
- package/dist/libs/drawHelper/BaseDraw.d.ts +0 -194
- package/dist/libs/drawHelper/DrawCircle.d.ts +0 -31
- package/dist/libs/drawHelper/DrawLine.d.ts +0 -49
- package/dist/libs/drawHelper/DrawPolgon.d.ts +0 -35
- package/dist/libs/drawHelper/DrawRectangle.d.ts +0 -24
- package/dist/libs/i18n/en-US.d.ts +0 -69
- package/dist/libs/i18n/index.d.ts +0 -25
- package/dist/libs/i18n/zh-CN.d.ts +0 -69
- package/dist/libs/overlay/MapCircle.d.ts +0 -130
- package/dist/libs/overlay/MapIcon.d.ts +0 -69
- package/dist/libs/overlay/MapInfoWindow.d.ts +0 -100
- package/dist/libs/overlay/MapLabel.d.ts +0 -73
- package/dist/libs/overlay/MapMarker.d.ts +0 -60
- package/dist/libs/overlay/MapPolygon.d.ts +0 -114
- package/dist/libs/overlay/MapPolyline.d.ts +0 -64
- package/dist/libs/overlay/MapRectangle.d.ts +0 -101
- package/dist/libs/overlay/MapRing.d.ts +0 -107
- package/dist/libs/overlay/MapSVG.d.ts +0 -73
- package/dist/libs/overlay/OverlayEditController.d.ts +0 -167
- package/dist/libs/overlay/OverlayEditHandles.d.ts +0 -101
- package/dist/libs/overlay/OverlayHighlight.d.ts +0 -40
- package/dist/libs/overlay/index.d.ts +0 -23
- package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +0 -42
- package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +0 -43
- package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +0 -41
- package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/types.d.ts +0 -121
- package/dist/z.const.d.ts +0 -24
- /package/dist/{libs → utils}/PickGovernor.d.ts +0 -0
package/dist/i18n/zh-CN.d.ts
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
declare const zhCN: {
|
|
2
2
|
locale: string;
|
|
3
|
+
toolbar: {
|
|
4
|
+
search: string;
|
|
5
|
+
measure: string;
|
|
6
|
+
view2d3d: string;
|
|
7
|
+
layers: string;
|
|
8
|
+
location: string;
|
|
9
|
+
zoom_in: string;
|
|
10
|
+
zoom_out: string;
|
|
11
|
+
fullscreen: string;
|
|
12
|
+
search_placeholder: string;
|
|
13
|
+
search_empty: string;
|
|
14
|
+
};
|
|
3
15
|
app: {
|
|
4
16
|
lang: {
|
|
5
17
|
zh: string;
|
|
6
18
|
en: string;
|
|
19
|
+
switch: string;
|
|
20
|
+
current: string;
|
|
7
21
|
};
|
|
8
22
|
located: string;
|
|
9
23
|
init_success: string;
|
|
@@ -71,11 +85,43 @@ declare const zhCN: {
|
|
|
71
85
|
};
|
|
72
86
|
};
|
|
73
87
|
layers: {
|
|
88
|
+
base_maps: string;
|
|
89
|
+
assistance: string;
|
|
90
|
+
no_fly_zone: string;
|
|
74
91
|
map_type: {
|
|
75
92
|
place_name: string;
|
|
76
93
|
};
|
|
77
94
|
};
|
|
95
|
+
map: {
|
|
96
|
+
types: {
|
|
97
|
+
vec: string;
|
|
98
|
+
img: string;
|
|
99
|
+
ter: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
measurement: {
|
|
103
|
+
menu: {
|
|
104
|
+
area: string;
|
|
105
|
+
distance: string;
|
|
106
|
+
clear: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
78
109
|
draw: {
|
|
110
|
+
hint: {
|
|
111
|
+
first_point: string;
|
|
112
|
+
area_start: string;
|
|
113
|
+
line_next_point: string;
|
|
114
|
+
line_continue: string;
|
|
115
|
+
polygon_second_point: string;
|
|
116
|
+
polygon_third_point: string;
|
|
117
|
+
polygon_continue: string;
|
|
118
|
+
area_continue: string;
|
|
119
|
+
};
|
|
120
|
+
measurement: {
|
|
121
|
+
total_distance: string;
|
|
122
|
+
preview_area: string;
|
|
123
|
+
total_area: string;
|
|
124
|
+
};
|
|
79
125
|
start: {
|
|
80
126
|
line: string;
|
|
81
127
|
rectangle: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
12
|
-
export type {
|
|
13
|
-
export
|
|
14
|
-
export type
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export {
|
|
18
|
-
export type
|
|
19
|
-
export
|
|
20
|
-
export type
|
|
21
|
-
export
|
|
22
|
-
export type
|
|
23
|
-
export
|
|
24
|
-
export type
|
|
25
|
-
export
|
|
26
|
-
export type
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
initCesiumMap: typeof initCesium;
|
|
39
|
-
HeatmapLayer: typeof CesiumHeatmapLayer;
|
|
40
|
-
PointClusterLayer: typeof CesiumPointClusterLayer;
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
1
|
+
import { createMapPlugin } from './core/MapPlugin';
|
|
2
|
+
import { ToolbarConfig } from './core/types';
|
|
3
|
+
import { initStyleSystem } from './styles';
|
|
4
|
+
export { MapPlugin, createMapPlugin } from './core/MapPlugin';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated 使用 MapPluginOptions 代替
|
|
7
|
+
*/
|
|
8
|
+
export type { ToolbarConfig, ButtonConfig, CustomButtonConfig, SearchCallback, SearchResult, MeasurementCallback, ZoomCallback, MapType, MapToolsConfig, ComponentStyleConfig, StyleConfig, LayersPanelStyleConfig, SearchPanelStyleConfig, ToolbarSearchMenuOptions, ToolbarLayersMenuOptions, NoFlyZonePluginOptions, MapPluginOptions, CameraConfig, LayersConfig, ProviderType, TDTLayerConfig, GaodeLayerConfig, BaiduLayerConfig, ArcGISLayerConfig, OSMLayerConfig, CustomLayerConfig, } from './core/types';
|
|
9
|
+
export { BaseOverlay, Marker, Label, Icon, SVG, InfoWindow, Polyline, Polygon, Rectangle, Circle, Ring, } from './core/entities';
|
|
10
|
+
export type { OverlayPosition, BaseOverlayOptions, OverlayClickHighlightOptions, OverlayHoverHighlightOptions, OverlayEntity, MarkerOptions, LabelOptions, IconOptions, SvgOptions, InfoWindowOptions, PolylineOptions, PolygonOptions, RectangleOptions, CircleOptions, RingOptions, } from './core/entities';
|
|
11
|
+
export { OverlayService, DrawService, ToolbarService, createToolbarService } from './core/services';
|
|
12
|
+
export type { OverlayServiceOptions, DrawMode, DrawOptions, DrawResult, DrawServiceOptions, MeasurementFillStyle, MeasurementLabelOffset, MeasurementStrokeStyle, MeasurementSummaryLabelStyle, MeasurementTheme, MeasurementVertexStyle, ToolbarServiceOptions, ToolbarCallbacks, } from './core/services';
|
|
13
|
+
export { HeatmapLayer, PointClusterLayer } from './core/layers';
|
|
14
|
+
export type { HeatPoint, HeatmapGradient, HeatmapOptions, ClusterPoint, ClusterStyleStep, PointClusterLayerOptions, } from './core/layers';
|
|
15
|
+
export { BaseComponent, Toolbar, ToolbarButton, SearchBox, } from './components';
|
|
16
|
+
export { styleManager, initStyleSystem, applyTheme, getCurrentTheme, getAvailableThemes, } from './styles';
|
|
17
|
+
export { i18n } from './i18n';
|
|
18
|
+
export type { I18nLike } from './i18n';
|
|
19
|
+
export { DrawHelperAdapter as DrawHelper } from './adapters/DrawHelperAdapter';
|
|
20
|
+
export type { LegacyDrawCallbacks, LegacyDrawOptions, LegacyDrawEntity, } from './adapters/DrawHelperAdapter';
|
|
21
|
+
export { OverlayServiceAdapter as CesiumOverlayService } from './adapters/OverlayServiceAdapter';
|
|
22
|
+
export type { LegacyCesiumOverlayServiceOptions } from './adapters/OverlayServiceAdapter';
|
|
23
|
+
export { ToolbarAdapter as CesiumMapToolbar } from './adapters/ToolbarAdapter';
|
|
24
|
+
export type { LegacyCesiumMapToolbarCallbacks } from './adapters/ToolbarAdapter';
|
|
25
|
+
export { initCesium } from './adapters/MapLoaderAdapter';
|
|
26
|
+
export type { LegacyInitOptions, LegacyInitResult, LegacyMapCenter } from './adapters/MapLoaderAdapter';
|
|
27
|
+
export { DrawHelperAdapter as CompatDrawHelper, OverlayServiceAdapter as CompatCesiumOverlayService, ToolbarAdapter as CompatCesiumMapToolbar, } from './adapters';
|
|
28
|
+
/**
|
|
29
|
+
* 快速创建地图插件实例
|
|
30
|
+
*/
|
|
31
|
+
export declare function createVMap(containerId: string, config?: Parameters<typeof createMapPlugin>[1], toolbarConfig?: ToolbarConfig): import('./core/MapPlugin').MapPlugin;
|
|
32
|
+
/**
|
|
33
|
+
* 快速初始化样式系统
|
|
34
|
+
*/
|
|
35
|
+
export declare function initVMapStyles(config?: Parameters<typeof initStyleSystem>[0]): import('./styles').StyleManager;
|
|
36
|
+
export declare const VERSION = "2.0.0";
|
|
37
|
+
export declare const DESCRIPTION = "VMap Cesium Tool - \u57FA\u4E8E Cesium \u548C\u5929\u5730\u56FE\u7684\u5730\u56FE\u63D2\u4EF6\u5DE5\u5177\u5E93 (\u65B0\u67B6\u6784)";
|