Tools for drawing points, polylines and polygons on Cesium.js
getAll()
- get all drawn shapesgetPoints()
- get all drawn pointsgetPolylines()
- get all drawn polylinesgetPolygons()
- get all drawn polygons
- Jquery (version >= 3.3.1)
- Material icons (version >= 3.0.1)
let viewer = new Cesium.Viewer('cesiumContainer', {});
let cesiumDrawingTool = new CesiumDrawingTool(
viewer, // cesium viewer object
'cesiumContainer', // viewer DOM id
'your/pin/image' // location pin image uri
);
// activate drawing tool
cesiumDrawingTool.init();