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
-1
votes
1 answer

Using react-native-mapbox-gl / maps in the form of mapbox-gl

I want to use react-native-mapbox-gl/maps in the form of mapbox- gl for example i do everything that i can to initialize MapView component in useEffect instead of component. Is it poosible that can I rewrite the code in below that is readable for…
-1
votes
1 answer

I am requesting the directions from direction API of mapbox in browser, in the response objects

response snapshot I am getting the geometry of directions but the format is unknown the above images shows the response which i am getting, I want response in these format "coordinates": [ [ …
-1
votes
1 answer

Mapbox Android - How to access vector tile data given a bouding zone and zoom lvl?

I am working on a custom renderer an I want to access vector tile data to retrieve the features geometry from : the offline dataset in priority then a fallback on the cache then a fallback to the Mapbox servers. So given the bounding coordinates…
dagatsoin
  • 2,626
  • 6
  • 25
  • 54
-1
votes
2 answers

Need to create link that opens website template in Plunker or another site?

I want to create a button link on my site that opens a folder of code in something like Visual Studio Code online, with a sidebar. I found Plunker, and it looks great. I have a simple website template that is a folder of typical files, like…
nittyjee
  • 359
  • 1
  • 6
  • 15
-1
votes
1 answer

Is there any way to give different cursor styles on hover for every feature on same layer in mapbox?

I am looking to change the cursor style on hover that will be dependent on some property value for each and every feature rendering on same layer.What is happening right now that the style of cursor is getting changed for all the features within…
Chester
  • 5
  • 4
-1
votes
1 answer

How to Modify Tile Data in mapbox-gl-js ? (callback or any structure to decode tile binary data)

summery -> in our company, we use our own vector-tile-servers for displaying base maps. we encode both tile-url and Tile data in some way for protection. now, we are going to start using mapbox-gl-js in our webApps. problem -> I cannot find the…
Mostafa Shakoori
  • 195
  • 3
  • 17
-1
votes
1 answer

Reverse Geocoding Mapbox results

When getting results from Mapbox API for the reverse geocoding results, I get only one specific result returned. Is there a way to increase the results returned, say for a larger radius around the reverse geocoded point? If a user clicks on a map,…
Wayne Johnson
  • 214
  • 3
  • 18
-1
votes
3 answers

Reverse Geocoding in MapBox api not working

Forward geocoding perfectly, now I want to use reverse geocoding and keep getting an Http status error of 422. The reverse geocoding doesn't work in the Mapbox playground either. Any suggestions or reasons for this? Here is my http…
Wayne Johnson
  • 214
  • 3
  • 18
-1
votes
1 answer

Geocoding with Mapbox

Background: I have just finished a course on Udemy called The Web Development Bootcamp. The main project for this course was to create a web app called Yelpcamp, which is essentially a campsite rating and discussion site. You can see the current…
-1
votes
1 answer

Mapbox GL layer vertical offset

I have a 3d map with building extrusion and need to place some images on rooftops. But I can't find out how to set layer or object vertical offset. It is positioned on the ground level only.
-1
votes
1 answer

cannot set initial bounds of vuemapbox map

I am using mapbox-gl and vue-mapbox [https://soal.github.io/vue-mapbox/api/#props] in my vuejs app to display a map. I would like to initialize the map with boundaries that encompass the continental US and when the map loads, I'd like to zoom in to…
GNG
  • 1,341
  • 2
  • 23
  • 50
-1
votes
1 answer

how to implement a basic mapbox gl in react

Hi I used the code example in mapbox but it shows nothing (width=0) please guide me, how to implement a map in react js. here is my index.js file: mapboxgl.accessToken = "My token"; class Application extends React.Component { constructor(props)…
-1
votes
1 answer

Filtering polygons based on text input in mapbox

I'm trying to work out a variation on the mapbox code provided in this tutorial here: https://docs.mapbox.com/mapbox-gl-js/example/filter-markers-by-input/ But instead of filtering individual points, I'm trying to figure out how to filter polygons…
-1
votes
1 answer

Draw a circle in Map box / Turf JS surrounding a group of points

I have a group of locations on a map-box map that i want to surround with a circle that covers all points - with a padding / border / buffer if possible. Using buffer (turfjs) i can get an area around each point, using the convex/concave i can get a…
RyanMnM
  • 9
  • 2
-1
votes
1 answer

How to show data in a div outside of the map whenever a marker is clicked in the map of mapbox?

Whenever a marker is clicked on the map I need to show data of that marker in a div which outside of the map. I am trying with Html Dom element. map.on('click', 'places', function (e) { var coordinates =…