Questions tagged [mapbox-gl-draw]

It is a Draw tools for mapbox-gl-js. Draw only works after the Mapbox GL JS map has loaded, so interact with Draw only after your map's load event.

53 questions
0
votes
1 answer

Adding specific fill color to a specific road or getting geojson data of it

I want to fill a specific road with a specific color using mapbox-gl js or at least getting the geojson data of that specific road. Is there any specific and efficient way to get that done?
0
votes
1 answer

Mapbox: Indian GPS co-ordinates show wrong place on map

I am trying to use the JS version of mapbox in my web application. BUt when changing the example lat-long to delhi's latlong its showing wrong location. Display a map
Sujeet Kumar
  • 1,280
  • 1
  • 17
  • 25
0
votes
1 answer

How can you use mapbox-gl-Draw to create rectangle of 8 points?

I have a unique issue to using Mapbox-gl-Draw. Mapbox Draw allows you to create a multi point polygon easily, however I need it to use only 8 points as an algorithm i use elsewhere accepts 8 lnglat elements. Im wondering if it is possible that when…
Leeroy Hannigan
  • 11,409
  • 3
  • 14
  • 31
0
votes
0 answers

Mapbox cluster's data-driven styling

When visualizing clusters with Mapbox's GL JS, how can I show clusters as circles which size/colours are proportional to the average of clustered points' property 'Rev', instead of proportional to the point-count property, as my code is doing it…
Lucien S.
  • 5,123
  • 10
  • 52
  • 88
0
votes
1 answer

How to programatically chain drawing points in mapbox-gl-draw

I am using a pretty basic implementation of the mapbox-gl-draw library, and I can successfully draw a point with the example below. mapObject.drawing = new MapboxDraw({ styles: MAPBOX_DRAW_STYLES, displayControlsDefault: false, controls: { …
Jags
  • 1,639
  • 1
  • 16
  • 30
-1
votes
0 answers

How can I split a linestring feature when a vertex is dragged using Mapbox Draw?

I am creating a tool to edit gps tracks using Mapbox GL Draw and I need to be able to display which segments of the track have been edited. Essentially, what I want to do is split a geojson Linestring feature into three separate features anytime a…
RSF
  • 21
  • 6
-1
votes
1 answer

Mapboxgl draw click events do not show precise points

I have implemented Mapboxgl draw on my project, on the desktop view, click events track points correctly and places point exactly where I click, but on the mobile view, the points appear a bit further away from where users click I tried figuring out…
Ivy Ti
  • 1
  • 2
-3
votes
1 answer

Get a specific Value from a JSON and create multiple Arrays

Hi dear StackOverflow experts, I know it may sound like a stupid question but I searched everywhere for a solution and I hope you can help me. I have this Object which saves the coordinates of polygons relative to a worldmap with Mapbox. And my…
1 2 3
4