Home > Overlay Components > Draw

Draw

wq’s <Draw/> overlay component loads the corresponding map engine’s “Draw” library. Unlike the other overlay types, it is not meant to be specified directly via the map configuration. Instead, a Geo input type should be used.

@wq/map-gl’s implementation is based on react-mapbox-gl-draw.

Source

While @wq/map defines a placeholder implementation, @wq/map-gl and @wq/leaflet’s versions are more useful as reference:

  • Draw.js (@wq/map-gl)
  • Draw.native.js (@wq/map-gl)
  • Draw.js (@wq/leaflet)