🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cesium-draw-custom

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cesium-draw-custom

cesium draw library

1.0.3
latest
Source
npm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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();

Keywords

cesium-draw

FAQs

Package last updated on 13 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts