Questions tagged [mapbox-gl]

A client-side map rendered with implementations in native platforms utilizing OpenGL.

Mapbox GL is an open-source framework and API being developed by Mapbox. Mapbox GL differs from Mapbox as it downloads vector map data and renders the map image on the client.

1207 questions
0
votes
1 answer

Render a FeatureCollection from a GeoJSON file with multiple types in Mapbox-GL-JS

We are currently loading layers into mapbox GL from geojson data. If our geojson has a feature collection that contains points and polygons, there does not seem to be a way to have mapbox gl show both because of how you need to set the type of…
ryan
  • 1
  • 1
0
votes
1 answer

how to load text layer in mapbox-gl style / tileset

I'd like to do exactly what https://api.mapbox.com/styles/v1/zugaldia/cimteac7b00mrb8m7okkkol8d.html?title=true&access_token=pk.eyJ1IjoienVnYWxkaWEiLCJhIjoiY2ltNnI0YXM0MDA0YXR5bHgxOTU0N2h5YyJ9.kBUkyDqT5S1gJOsMIAdJSw#11/38.8993/-77.0146 is doing. It…
Ralph Yozzo
  • 1,086
  • 13
  • 25
0
votes
1 answer

Offline navigation with Mapbox Sdk in Android app from Kml

I'm trying to develop an offline navigation app for Trekking. The app shows to the user a list of nearby track/routes where he can go. Examples: -Walking to Etna Vulcan -Walking in the wood. I've several KML files provided to me by local guides,…
0
votes
2 answers

Mapbox GL directions plugin hiding search origin destination box

I am using Mapbox GL directions plugin inside my app where I set the origin on map load and set driving destination upon user click on any location on the map. I am now trying to remove the top left search origin / destination box yet after…
Mahmoud Metwally
  • 980
  • 1
  • 10
  • 24
0
votes
1 answer

How to use latest MapBox Studio style

I apologize if this is an obvious question, but I have tileset (vector layer) id "fedex1.9iw8f8pj" and I'm trying to use it in a style. For style, see…
Ralph Yozzo
  • 1,086
  • 13
  • 25
0
votes
1 answer

specify returned getPaintProperty method Mapbox gl

I want to return the fill-color of a layer so it can be used as a variable to populate a dynamic legend on a printable map which is being built as a separate document. The browser will only pick up hex colors but getPaintProperty returns hsl. I…
benj
  • 113
  • 3
  • 11
0
votes
1 answer

Mapbox GL - adding directions to the map

I have a Mapbox GL map with a single layer and multiple markers on that layer, I am trying to draw route + show route information (distance / time / routes to take from origin to destination) in my app using the Directions GL plugin. Unfortunately I…
Mahmoud Metwally
  • 980
  • 1
  • 10
  • 24
0
votes
1 answer

Add a custom marker in mapbox in a for loop

I'm a little bit stuck here… I'm trying to add a different image for each marker in my mapbox view. To populate the map I used a for loop that look into an array : for arrayInterest in dicoInterest { let point = MGLPointAnnotation() …
0
votes
1 answer

highlighting polyline features in mapbox-gl.js

I am trying to use the following code to highlight features under the mouse pointer. The difference between my geojson data and the geojson data used in the linked example is that the example is made up of polygons whereas my geojson is made up of…
iskandarblue
  • 7,208
  • 15
  • 60
  • 130
0
votes
1 answer

can we use leaflet 1 beta for vector tiles without mapbox GL?

I am still learning more about leaflet 1. I went through the change log saw a lot of improvement was done for vector. Does leaflet 1 have it's own way for vector tiles without using Mapbox GL?
Annie C
  • 764
  • 2
  • 12
  • 31
0
votes
1 answer

Leaflet 1 beta 2 not working with mapbox-gl.js

Leaflet v1.0.0-beta.2 not working with mapbox-gl.js (I have tried v15 and prior versions) Or does it work with a specific version of mapbox-gl.js?
Annie C
  • 764
  • 2
  • 12
  • 31
0
votes
1 answer

Animate markers

I'm trying to understand how to animate markers when using mapbox-gl. I'm actually using the Xamarin binding of the 3.2.0.3 java library, so the problem might be there. I'm using the examples that we can find on the GitHub page, and mainly this…
Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67
0
votes
1 answer

How can I import mapbox-gl-native project into Android Studio?

I want to run Mapbox-GL-AndroidSDk-TestApp in Mapbox-gl-native project, but when I import into Android Studio, it doesn't work. This is the Log: start activity …
kevin4z
  • 349
  • 4
  • 12
0
votes
1 answer

Adding custom points to mapbox studio

In Mapbox studio classic, you just click where you want a new "marker" and it creates one. I want to do the same thing in the new mapbox studio but that feature doesn't seem to exist. Please note, I do not have a dataset to upload, I need to create…
Shan Robertson
  • 2,742
  • 3
  • 25
  • 43
0
votes
1 answer

jQuery loop to put together multiple arrays - Mapbox map.setFilter()

Mapbox's new GL API is proving difficult to use. I'm wondering if I can build an array with this strange format through jQuery's each function. I'm creating a form with checkboxes for categories that would filter the markers shown on the map. I'm…
v0wels
  • 55
  • 5