cesium-draw-custom
v1.0.3
Published
cesium draw library
Downloads
9
Readme
cesium-draw-custom
Point,Polyline & Polygon Drawing Library
install
npm install cesium-draw-custom
usage
javascript
import cesiumDrawer from "cesium-draw-custom"
const drawer = new cesiumDrawer(viewer);
Set properties of drawn shape, we can set our own if we do not define it we use default values
//point
drawer.startDraw({
type: 'point',
color: '',
billboard:'',
pointSize:'',
label: ''
})
//polygon
drawer.startDraw({
type: 'polygon',
material: '',
outline:'',
outlineColor: :,
outlineWidth: '',
fill: ''
})
//polyline
drawer.startDraw({
type: 'polyline',
lineMaterial: '',
polylineWidth: ''
})
For Start editing
drawer.startEdit(entity,entityType)
For Finish editing
drawer.finishEditing();