google-maps-drawing-tools
Have you noticed that Google Maps has two ways to draw and both have different options? Well this library tries to have a unified way to draw that allows exporting geojson and restoring drawings from existing geojson.
Install
npm install --save google-maps-drawing-tools
Usage
; const map = element mapOptions;const manager = map ; // Load geojsonmanagerdata; // Can also use 'line', 'circle', 'rectangle' and 'marker'manager; // Draw a polygon on the map.. managerdata;
TODO
- Add Text Label
- Add measurement option
- Add measurement units option
- etc..