@xingm/vmap-cesium-toolbar 0.0.3 → 0.0.4-alpha.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/README.md +7 -0
- package/dist/hooks/useOverlayHelper.d.ts +4 -2
- package/dist/i18n/en-US.d.ts +5 -0
- package/dist/i18n/zh-CN.d.ts +5 -0
- package/dist/index.es.js +2212 -1746
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +45 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapDraw.d.ts +19 -31
- package/dist/libs/CesiumMapLoader.d.ts +1 -0
- package/dist/libs/CesiumMapModel.d.ts +6 -0
- package/dist/libs/CesiumOverlayService.d.ts +16 -20
- package/dist/libs/CesiumPointClusterLayer.d.ts +21 -1
- package/dist/libs/drawHelper/DrawCircle.d.ts +1 -0
- package/dist/libs/drawHelper/DrawHint.d.ts +32 -0
- package/dist/libs/drawHelper/index.d.ts +1 -0
- package/dist/libs/i18n/en-US.d.ts +3 -0
- package/dist/libs/i18n/zh-CN.d.ts +3 -0
- package/dist/libs/overlay/MapCircle.d.ts +2 -0
- package/dist/libs/overlay/MapPolygon.d.ts +2 -0
- package/dist/libs/overlay/MapPolyline.d.ts +3 -0
- package/dist/libs/overlay/MapRectangle.d.ts +2 -0
- package/dist/libs/overlay/MapRing.d.ts +3 -1
- package/dist/libs/overlay/OverlayEditController.d.ts +17 -20
- package/dist/libs/overlay/OverlayEditHandles.d.ts +63 -0
- package/dist/libs/overlay/OverlayHighlight.d.ts +40 -0
- package/dist/libs/overlay/types.d.ts +2 -0
- package/dist/libs/toolBar/MapLayersService.d.ts +18 -1
- package/dist/utils/selfIntersection.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,13 @@ import { initCesium } from '@xingm/vmap-cesium-toolbar';
|
|
|
104
104
|
const { viewer } = await initCesium('cesiumContainer', {
|
|
105
105
|
cesiumToken: 'your_cesium_ion_token',
|
|
106
106
|
});
|
|
107
|
+
|
|
108
|
+
// 使用天地图时可指定底图类型(默认 imagery)
|
|
109
|
+
const { viewer: tdtViewer } = await initCesium('cesiumContainer', {
|
|
110
|
+
mapType: 'tiandi',
|
|
111
|
+
tdtMapTypeId: 'terrain',
|
|
112
|
+
token: 'your_tianditu_token',
|
|
113
|
+
});
|
|
107
114
|
```
|
|
108
115
|
|
|
109
116
|
## 配置选项
|
|
@@ -99,10 +99,11 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
99
99
|
add: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
100
100
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
101
101
|
updateRadius: (entity: Entity, radius: number) => void;
|
|
102
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
|
|
102
|
+
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments" | "groundHeightEpsilon">>) => void;
|
|
103
103
|
setVisible: (entity: Entity, visible: boolean) => void;
|
|
104
104
|
remove: (entityOrId: Entity | string) => boolean;
|
|
105
105
|
};
|
|
106
|
+
toggleOverlayHoverHighlight: (enabled: boolean) => void;
|
|
106
107
|
setOverlayEditMode: (enabled: boolean) => void;
|
|
107
108
|
getOverlayEditModeEnabled: () => boolean;
|
|
108
109
|
stopOverlayEdit: () => void;
|
|
@@ -209,10 +210,11 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
|
|
|
209
210
|
add: (options: import('../libs/overlay').RingOptions) => Entity;
|
|
210
211
|
updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
|
|
211
212
|
updateRadius: (entity: Entity, radius: number) => void;
|
|
212
|
-
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
|
|
213
|
+
updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments" | "groundHeightEpsilon">>) => void;
|
|
213
214
|
setVisible: (entity: Entity, visible: boolean) => void;
|
|
214
215
|
remove: (entityOrId: Entity | string) => boolean;
|
|
215
216
|
};
|
|
217
|
+
toggleOverlayHoverHighlight: (enabled: boolean) => void;
|
|
216
218
|
setOverlayEditMode: (enabled: boolean) => void;
|
|
217
219
|
getOverlayEditModeEnabled: () => boolean;
|
|
218
220
|
stopOverlayEdit: () => void;
|
package/dist/i18n/en-US.d.ts
CHANGED