mapbox-gl-draw-circle icon indicating copy to clipboard operation
mapbox-gl-draw-circle copied to clipboard

how to make it work mapbox gl-draw

Open Aliber009 opened this issue 3 years ago • 1 comments

I have implemented, circlet modes into my mapboxDraw, and I have created a button to call the circle Draw function , but I dont know how to that , what function should I put when "onClick()" any help please

Aliber009 avatar Apr 06 '21 16:04 Aliber009

Make sure that you:

  1. Added draw to map (map.addControl(draw))
  2. Added map draw listeners, draw.create and draw.update
  3. Created a button which calls to createCircle() { draw.changeMode('draw_circle', { initialRadiusInKm: 0.5 }); }

owolfy avatar Jun 16 '21 06:06 owolfy