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

Having trouble with mapbox GL layers

So, I'm trying to get a style layer from the loaded stylemap in mapbox GL but it keeps returning undefined elements. I'm at the end of my wits. I'm trying to get the underlaying water layer to store in the layers variable so I can alter its…
0
votes
1 answer

Mapbox Android GL Bounding

I'm working on bounding a Mapbox map to only allow a specific geographic area to be displayed. I don't want the user to be able to pan or otherwise move outside the bounded area. I'm using the new GL library and I'm having trouble finding any…
Mitch
  • 1,716
  • 3
  • 25
  • 41
0
votes
1 answer

How to use cocoapod to easily install react Mapbox GL React Native and other native components?

I try to install MapboxGL React Native component the easy way with Cocoapod. I have never done that before and the readme.md is not very detailed. I did: $ react-native init AwesomeProject $ cd AwesomeProject $ npm install react-native-mapbox-gl…
dagatsoin
  • 2,626
  • 6
  • 25
  • 54
0
votes
1 answer

Mapbox GL regex in Json

I'm trying to only draw contour lines at every 30m of elevation. In mapbox studio this is pretty easy to do using the regex: [ele =~ '.*30'] ... Now I'm trying to do this using Mapbox GL which uses JSON, and I can't find any documentation on doing…
cdubbs
  • 97
  • 12
0
votes
1 answer

Plot a trail on mapbox via a GPX file uploaded

I would like to have the following result : so I use the upload API from Mapbox to push my GPX file (https://github.com/mapbox/mapbox-upload). But somehow I have this result : How can I have the trail + the map together !?? :-) Thank you !
Nicolas Henin
  • 3,244
  • 2
  • 21
  • 42
0
votes
2 answers

MGLMapView hides / fails to load annotations when I change map style (Mapbox)

I have just started using the latest released version of Mapbox for iOS, and have setup a map with annotations successfully. The annotations needed custom images based upon a priority value passed by the API. To do this I am using imageForAnnotation…
Elliott D'Alvarez
  • 1,217
  • 16
  • 30
0
votes
1 answer

Mapbox GL - Min/Max elevation in map bounds

Does anyone know if there is a way to determine the min/max elevation of the area within the map bounds view when using mapbox://mapbox.mapbox-terrain-v2?
cdubbs
  • 97
  • 12
0
votes
0 answers

Mapbox GL segmentation fault

I use mapbox-gl-native (https://github.com/mapbox/mapbox-gl-native). I have class, for example: class MapboxGL { public: explicit MapboxGL(); ~MapboxGL(); } In constructor MapboxGL() i tried to create an object and set access…
Steven Clark
  • 65
  • 1
  • 6
0
votes
2 answers

How to display user location marker in mapbox-gl?

After following the Mapbox First Steps guide I haven't been able to figure out how to get a user's location to display in the app. Has anyone successfully gotten the user location marker to show up in iOS9 using the latest MapboxGL build? My…
0
votes
0 answers

How can I get the position of a specific marker on mapbox?

I'm trying to get the position of a marker on a mapbox map in order to show a div in that position. This is the code I tried but it does not do anything: var a = $(geojson[0].features[1]).offset(); alert(a.top);
0
votes
0 answers

animation of morphing svg clippath path

spent some hours to achieve the following and after another several hours of troubleshooting and searching i thought maybe some genius among you has a solution for my problem (: as the title says i'd like to animate a svg clippath by changing the…
dmkscr
  • 25
  • 1
  • 7
0
votes
1 answer

With Mapbox GL, is it possible to get information about elements of the map on mouseOver

I'm reading documentation about Mapbox GL. It is impressive! I would like to make action on mouseover on element of the map. (change style of the element, show informations...), how is it possible to have information about the element I'm hovering…
Farf
  • 249
  • 3
  • 11
-1
votes
0 answers

To implement clustering on zoom in and out and filtering based on date and time in MBTILES format

I am using mapbox in my project, which requires to load 40 lacs data points in a heatmap showing clustering on zoom in and out and filter functionality based on date and time. I tried using Mapbox Tiling Services, the data file does not reduce much…
-1
votes
0 answers

MapBox input autoComplete

We want to implement an autocomplete functionality for the "Residence" section in our React TypeScript web application. This allows users to enter their place of residence, and as we type, we want to see suggestions for place names (e.g. towns and…
lionel336
  • 1
  • 1
-1
votes
0 answers

Power BI with Mapbox add-in issue

I am trying to get the mapbox addin for power BI to do a cholorpleth map (ultimately in 3D but I can't even get the shapes to appear). I followed the steps in this post but it is not working for me. The map appears but it does not show the colored…