Geospatial Map Drawing Library
npm install geospatialdrawLibrary of tools to draw and edit geometric shapes on a map.
Note To enable links run yarn docs
geometry
: GeospatialDraw extends GeoJSON to communicate geometric shapes by adding properties to Feature JSON objects. That format is defined in the geometry package.
* Geometry
* GeometryJSON
* GeometryJSONProperties
* Geometry
* BufferShape
* Extent
* BUFFER_SHAPE_PROPERTY
* CIRCLE_BUFFER_PROPERTY_VALUE
* POLYGON_LINE_BUFFER_PROPERTY_VALUE
* Utilities
* bboxToExtent
* geoToExtent
* makeGeometry
* makeBufferedGeo
* makeEmptyGeometry
* Units
* LengthUnit
* FEET
* KILOMETERS
* METERS
* MILES
* NAUTICAL_MILES
* YARDS
* Shape Factory
* makeBBoxGeo
* makeLineGeo
* makePointGeo
* makePointRadiusGeo
* makePolygonGeo
shapes
: The GeospatialDraw GeoJSON format only supports a limited set of geometric shapes. To aid in identifying the correct geometric shape a shape detector is provided in the shapes package.
* Shape
* ShapeDetector
coordinates
: In addition to drawing geometries on the map GeospatialDraw also has a library of components for editing the coordinates of these geometries directly. These components are in the coordinates package.
For docs see: Components Library
drawing
: Drawing shapes on the map is supported with drawing tools in the drawing package.
* UpdatedGeoReceiver
* DrawingContext
* DrawingControl
* BoundingBoxDrawingControl
* LineDrawingControl
* PointDrawingControl
* PointRadiusDrawingControl
* PolygonDrawingControl
menu
: To facilitate a smooth UX with map drawing a map drawing menu is provided in the menu package.
For docs see: Components Library
renderer
: A renderer is provided in the renderer package that can take an array of GeospatialDraw GeoJSON objects and render them on a map.
* Renderer
Browse components in Storybook