@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.
Files changed (133) hide show
  1. package/README.md +126 -230
  2. package/dist/README.md +172 -0
  3. package/dist/adapters/DrawHelperAdapter.d.ts +143 -0
  4. package/dist/adapters/MapLoaderAdapter.d.ts +44 -0
  5. package/dist/adapters/OverlayServiceAdapter.d.ts +102 -0
  6. package/dist/adapters/ToolbarAdapter.d.ts +71 -0
  7. package/dist/adapters/index.d.ts +23 -0
  8. package/dist/components/BaseComponent.d.ts +116 -0
  9. package/dist/components/SearchBox.d.ts +136 -0
  10. package/dist/components/Toolbar.d.ts +115 -0
  11. package/dist/components/ToolbarButton.d.ts +100 -0
  12. package/dist/components/index.d.ts +33 -0
  13. package/dist/core/MapPlugin.d.ts +160 -0
  14. package/dist/core/constants.d.ts +88 -0
  15. package/dist/core/entities/BaseOverlay.d.ts +156 -0
  16. package/dist/core/entities/Circle.d.ts +102 -0
  17. package/dist/core/entities/Icon.d.ts +86 -0
  18. package/dist/core/entities/InfoWindow.d.ts +116 -0
  19. package/dist/core/entities/Label.d.ts +92 -0
  20. package/dist/core/entities/Marker.d.ts +66 -0
  21. package/dist/core/entities/Polygon.d.ts +93 -0
  22. package/dist/core/entities/Polyline.d.ts +72 -0
  23. package/dist/core/entities/Rectangle.d.ts +99 -0
  24. package/dist/core/entities/Ring.d.ts +114 -0
  25. package/dist/core/entities/SVG.d.ts +89 -0
  26. package/dist/core/entities/index.d.ts +27 -0
  27. package/dist/core/index.d.ts +25 -0
  28. package/dist/core/layers/BaiduMapLayer.d.ts +37 -0
  29. package/dist/core/layers/CustomMapLayer.d.ts +43 -0
  30. package/dist/core/layers/GaodeMapLayer.d.ts +41 -0
  31. package/dist/core/layers/HeatmapLayer.d.ts +118 -0
  32. package/dist/core/layers/MapLayer.d.ts +37 -0
  33. package/dist/core/layers/OSMMapLayer.d.ts +37 -0
  34. package/dist/core/layers/PointClusterLayer.d.ts +119 -0
  35. package/dist/core/layers/TDTMapLayer.d.ts +45 -0
  36. package/dist/core/layers/index.d.ts +15 -0
  37. package/dist/core/services/draw/DrawInteractionController.d.ts +16 -0
  38. package/dist/core/services/draw/DrawService.d.ts +38 -0
  39. package/dist/core/services/draw/DrawSessionStore.d.ts +28 -0
  40. package/dist/core/services/draw/drawDefaults.d.ts +16 -0
  41. package/dist/core/services/draw/entities/drawEntityFactory.d.ts +10 -0
  42. package/dist/core/services/draw/entities/drawEntityRegistry.d.ts +8 -0
  43. package/dist/core/services/draw/entities/drawFinalFactory.d.ts +14 -0
  44. package/dist/core/services/draw/entities/drawPreviewFactory.d.ts +15 -0
  45. package/dist/core/services/draw/geometry/drawGeometry.d.ts +11 -0
  46. package/dist/core/services/draw/geometry/drawPosition.d.ts +6 -0
  47. package/dist/core/services/draw/index.d.ts +7 -0
  48. package/dist/core/services/draw/labels/drawHint.d.ts +16 -0
  49. package/dist/core/services/draw/labels/measurementCanvas.d.ts +8 -0
  50. package/dist/core/services/draw/labels/measurementLabelFactory.d.ts +18 -0
  51. package/dist/core/services/draw/measurementThemeResolver.d.ts +9 -0
  52. package/dist/core/services/draw/types/drawState.d.ts +37 -0
  53. package/dist/core/services/draw/types/drawTypes.d.ts +97 -0
  54. package/dist/core/services/index.d.ts +10 -0
  55. package/dist/core/services/overlay/OverlayService.d.ts +188 -0
  56. package/dist/core/services/overlay/index.d.ts +7 -0
  57. package/dist/core/services/toolbar/ToolbarService.d.ts +175 -0
  58. package/dist/core/services/toolbar/buttons/BaseButtonHandler.d.ts +111 -0
  59. package/dist/core/services/toolbar/buttons/LayersButtonHandler.d.ts +47 -0
  60. package/dist/core/services/toolbar/buttons/MeasureButtonHandler.d.ts +94 -0
  61. package/dist/core/services/toolbar/buttons/SearchButtonHandler.d.ts +111 -0
  62. package/dist/core/services/toolbar/buttons/SimpleButtonHandler.d.ts +79 -0
  63. package/dist/core/services/toolbar/config.d.ts +7 -0
  64. package/dist/core/services/toolbar/index.d.ts +30 -0
  65. package/dist/core/services/toolbar/menus/BaseMenu.d.ts +99 -0
  66. package/dist/core/services/toolbar/menus/MeasureMenu.d.ts +44 -0
  67. package/dist/core/services/toolbar/types.d.ts +198 -0
  68. package/dist/core/types.d.ts +586 -0
  69. package/dist/i18n/en-US.d.ts +46 -0
  70. package/dist/i18n/index.d.ts +45 -2
  71. package/dist/i18n/zh-CN.d.ts +46 -0
  72. package/dist/index.d.ts +37 -42
  73. package/dist/index.es.js +6874 -9666
  74. package/dist/index.es.js.map +1 -1
  75. package/dist/libs/CesiumMapModel.d.ts +1 -172
  76. package/dist/libs/CesiumMapToolbar.d.ts +1 -1
  77. package/dist/libs/CesiumOverlayService.d.ts +9 -222
  78. package/dist/libs/config/CesiumMapConfig.d.ts +5 -12
  79. package/dist/libs/drawHelper/DrawHint.d.ts +15 -27
  80. package/dist/libs/drawHelper/index.d.ts +67 -6
  81. package/dist/libs/toolBar/CesiumMapController.d.ts +38 -64
  82. package/dist/libs/toolBar/MapLayersService.d.ts +10 -61
  83. package/dist/libs/toolBar/MapSearchService.d.ts +8 -29
  84. package/dist/libs/toolBar/MapToolBarConfig.d.ts +33 -5
  85. package/dist/libs/toolBar/MeasurementService.d.ts +13 -5
  86. package/dist/libs/toolBar/NotFlyZonesService.d.ts +6 -41
  87. package/dist/package.json +19 -6
  88. package/dist/styles/ComponentStyles.d.ts +82 -0
  89. package/dist/styles/StyleManager.d.ts +142 -0
  90. package/dist/styles/index.d.ts +128 -0
  91. package/dist/utils/common.d.ts +4 -0
  92. package/package.json +1 -1
  93. package/dist/hooks/toolBarConfig.d.ts +0 -75
  94. package/dist/hooks/useDrawHelper.d.ts +0 -24
  95. package/dist/hooks/useDynamicRing.d.ts +0 -44
  96. package/dist/hooks/useHeatmapHelper.d.ts +0 -18
  97. package/dist/hooks/useMap.d.ts +0 -14
  98. package/dist/hooks/useMapInit.d.ts +0 -14
  99. package/dist/hooks/useOverlayHelper.d.ts +0 -48
  100. package/dist/hooks/usePointClusterHelper.d.ts +0 -14
  101. package/dist/index.umd.js +0 -326
  102. package/dist/index.umd.js.map +0 -1
  103. package/dist/libs/drawHelper/BaseDraw.d.ts +0 -194
  104. package/dist/libs/drawHelper/DrawCircle.d.ts +0 -31
  105. package/dist/libs/drawHelper/DrawLine.d.ts +0 -49
  106. package/dist/libs/drawHelper/DrawPolgon.d.ts +0 -35
  107. package/dist/libs/drawHelper/DrawRectangle.d.ts +0 -24
  108. package/dist/libs/i18n/en-US.d.ts +0 -69
  109. package/dist/libs/i18n/index.d.ts +0 -25
  110. package/dist/libs/i18n/zh-CN.d.ts +0 -69
  111. package/dist/libs/overlay/MapCircle.d.ts +0 -130
  112. package/dist/libs/overlay/MapIcon.d.ts +0 -69
  113. package/dist/libs/overlay/MapInfoWindow.d.ts +0 -100
  114. package/dist/libs/overlay/MapLabel.d.ts +0 -73
  115. package/dist/libs/overlay/MapMarker.d.ts +0 -60
  116. package/dist/libs/overlay/MapPolygon.d.ts +0 -114
  117. package/dist/libs/overlay/MapPolyline.d.ts +0 -64
  118. package/dist/libs/overlay/MapRectangle.d.ts +0 -101
  119. package/dist/libs/overlay/MapRing.d.ts +0 -107
  120. package/dist/libs/overlay/MapSVG.d.ts +0 -73
  121. package/dist/libs/overlay/OverlayEditController.d.ts +0 -167
  122. package/dist/libs/overlay/OverlayEditHandles.d.ts +0 -101
  123. package/dist/libs/overlay/OverlayHighlight.d.ts +0 -40
  124. package/dist/libs/overlay/index.d.ts +0 -23
  125. package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +0 -42
  126. package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +0 -24
  127. package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +0 -43
  128. package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +0 -24
  129. package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +0 -41
  130. package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +0 -24
  131. package/dist/libs/overlay/types.d.ts +0 -121
  132. package/dist/z.const.d.ts +0 -24
  133. /package/dist/{libs → utils}/PickGovernor.d.ts +0 -0
@@ -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 { CesiumMapToolbar } from './libs/CesiumMapToolbar';
2
- import { default as DrawHelper } from './libs/CesiumMapDraw';
3
- import { initCesium } from './libs/CesiumMapLoader';
4
- import { CesiumOverlayService } from './libs/CesiumOverlayService';
5
- import { default as CesiumHeatmapLayer } from './libs/CesiumHeatmapLayer';
6
- import { default as CesiumPointClusterLayer } from './libs/CesiumPointClusterLayer';
7
- export { CesiumMapToolbar } from './libs/CesiumMapToolbar';
8
- export { default as DrawHelper } from './libs/CesiumMapDraw';
9
- export { initCesium } from './libs/CesiumMapLoader';
10
- export { i18n } from './libs/i18n';
11
- export type { I18nLike } from './libs/i18n';
12
- export type { OverlayOptions, ToolbarConfig, ButtonConfig, CustomButtonConfig, SearchCallback, SearchResult, MeasurementCallback, ZoomCallback, MapType, } from './libs/CesiumMapModel';
13
- export * from './libs/overlay/index';
14
- export type * from './libs/overlay/index';
15
- export * from './libs/drawHelper/index';
16
- export type * from './libs/drawHelper/index';
17
- export { CesiumOverlayService } from './libs/CesiumOverlayService';
18
- export type * from './libs/CesiumOverlayService';
19
- export * from './libs/toolBar/CesiumMapController';
20
- export type * from './libs/toolBar/CesiumMapController';
21
- export * from './libs/toolBar/MapLayersService';
22
- export type * from './libs/toolBar/MapLayersService';
23
- export * from './libs/toolBar/MapSearchService';
24
- export type * from './libs/toolBar/MapSearchService';
25
- export * from './libs/toolBar/MapToolBarConfig';
26
- export type * from './libs/toolBar/MapToolBarConfig';
27
- export * from './libs/toolBar/NotFlyZonesService';
28
- export type * from './libs/toolBar/NotFlyZonesService';
29
- export { CesiumHeatmapLayer as HeatmapLayer };
30
- export type { HeatmapOptions } from './libs/CesiumHeatmapLayer';
31
- export { CesiumPointClusterLayer as PointClusterLayer };
32
- export type { ClusterPoint, PointClusterLayerOptions, ClusterStyleStep } from './libs/CesiumPointClusterLayer';
33
- declare const _default: {
34
- CesiumMapToolbar: typeof CesiumMapToolbar;
35
- DrawHelper: typeof DrawHelper;
36
- CesiumOverlayService: typeof CesiumOverlayService;
37
- initCesium: typeof initCesium;
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)";