mapbox-gl-draw
mapbox-gl-draw copied to clipboard
Draw tools for mapbox-gl-js
Hi, I've fixed broken json in EXAMPLES.md
This can help support custom draw mode tools for multi point option
I'm writing a custom mode that lets a user box select over a Line feature to select multiple vertices, then pass them off to `direct_select` so they can be moved...
Exposes a new method called `setControls` to dynamically toggle the drawing controls Example usage ```javascript const drawControl = new MapboxDraw({ displayControlsDefault: false, controls: { polygon: true, trash: true, }, });...
**mapbox-gl-js version**: 2.3.1 **mapbox-gl-draw version**: 1.3.0 I am trying to style features based on its properties. All the features I want to render have a property called 'my_property' whose value...
**mapbox-gl-js version**: 2.1.1 **mapbox-gl-draw version**: 1.3.0 ### Steps to Trigger Behavior ``` this.draw = new window.MapboxDraw({ displayControlsDefault: false, controls: { polygon: true, trash: true }, defaultMode: 'draw_polygon' }) ``` ```...
### Overview - Saw there was an issue for exposing API's to make it easier to write custom draw modes - https://github.com/mapbox/mapbox-gl-draw/issues/1056 - Experiencing a similar issue here - https://github.com/aws-amplify/maplibre-gl-draw-circle...
This is to fix #617 It allows the event to propagate through if there are no mapbox targets nearby. This sort of breaks the one tap move drawing functionality, but...
Error in the docs, the style for "gl-draw-polygon-stroke-active" was not closed properly