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

tiles property not supported on Mapbox source SDK

Using "@mapbox/mapbox-sdk": "^0.13.2" to create a style. I want to add a WMS source to my style as this example shows https://docs.mapbox.com/mapbox-gl-js/example/wms/ This works fine in the browser but when I try and add 'wms-test-source', {…
paul blackmore
  • 191
  • 2
  • 13
-1
votes
1 answer

Mapbox GL JS set color on the specific searched address

I am looking for a way to paint a specific address when searched on map. I cannot find a way around. I tried Mapbox Studio but could not find this specific feature. I am attaching a reference image. Any help will be appreciated. Checkout this image
Umer
  • 33
  • 2
-1
votes
2 answers

Only be able to edit mapbox-gl-draw shapes when clicked

I am trying to create a web application using mapbox-gl with react. My goal is to have users draw multiple shapes and be able to edit them when desired. However, using map boxes default, a user can edit/move any draw feature inside a Draw…
-1
votes
1 answer

ERROR Mapbox error {com.xxx}[Style]: Failed to load source composite: HTTP status code 403

I am not able to load the map and getting below error ERROR Mapbox error {com.xxx}[Style]: Failed to load source composite: HTTP status code 403 {"level": "error", "message": "{com.xxx}[Style]: Failed to load source composite: HTTP status code 403",…
-1
votes
1 answer

Identifying feature polygons along a GeoJSON LingString (MapBox)

I've got the whole world divided into polygons (GEOJSON - FeatureCollection - MultiPolygon). Those polygons are FIRs (Flight Information Regions). Placed a LineString on the map I need to understand through which polygons it passes through. The…
Adam M.
  • 1,071
  • 1
  • 7
  • 23
-1
votes
1 answer

Is it possible to add new available routes (based on markers) into a mapbox? We are using the javascript sdk

We have a private area that does not have any route in it and we would like to connect some markers as a new possible route. Is it possible to do that using mapbox javascript sdk?
adriana r
  • 1
  • 1
-1
votes
1 answer

Error with Mapbox GL integration when adding markers: "Cannot read property 'coordinates' of undefined"

I've been working on creating a dynamically updated Mapbox GL integration inside Webflow's CMS. I've succeeded in creating an array of features that can be read by Mapbox's API, but these features won't show on the map because the coordinates are…
pari
  • 3
  • 3
-1
votes
1 answer

Mapbox draw Optimized Route with coordinates

I am using this tutorial: https://docs.mapbox.com/help/tutorials/optimization-api/#getting-started and it allows a user to add points when they click on the map. Does anyone know how to instead pass coordinates and then a route would be drawn?
mpora
  • 1,411
  • 5
  • 24
  • 65
-1
votes
2 answers

Problems in using Autodesk forge with mapbox

Now I am using the Autodesk forge to render the 3D buildings on the website. I am using React.js as a front-end framework. Things were going well but one thing is really difficult to implement. My goal is on the forge view, render the 3D building on…
-1
votes
1 answer

Mapbox compile offline tool on Linux

I am trying to compile the Mapbox GL offline tool (mbgl-offline) on Linux to generate a database with offline data for a specific region. Steps followed as posted in github repository to compile the offline tool on Linux but it failed: git clone…
pc-pacman
  • 33
  • 2
  • 6
-1
votes
2 answers

Threebox how do I get all 3d objects on the map?

I need to get an array or object with all 3D models that have been added to the Mapbox map, as it is on the screenshot below. How can I get these objects? I was trying to do something like this code but it didn't work. const buildings3DModels =…
bohdan baida
  • 389
  • 1
  • 5
  • 20
-1
votes
1 answer

React Native Mapbox GL give UserLocation custom position

react-native-mapbox-gl provides a UserLocation component to display the location of the user via builtin Geolocation tracking: https://github.com/react-native-mapbox-gl/maps/blob/master/docs/UserLocation.md However I would like to leverage all the…
ako977
  • 692
  • 7
  • 8
-1
votes
1 answer

Mapbox - add source and layers via GL JS vs Mapbox studio

Are there any differences between: a) Displaying map with custom style created in Mapbox Studio with some custom tileset (created and uploaded in Studio) as layer. vs b) Displaying map with some style (without created data),then add…
radekdob
  • 127
  • 1
  • 3
  • 9
-1
votes
1 answer

React mapbox gl draw how to change the value in controls

Hey i am trying to change the props I am adding to controls but I can't seem to access the type. controls?: Partial<{ …
-1
votes
1 answer

Mapbox Directions, custom route source

Is it possible to retreive from Mapbox Directions API, routes (for specified points) which are restricted to my own routes source ? Now I receive good routes, but in my case, I have my own layers with pathes and sometimes Mapbox gives me route which…
radekdob
  • 127
  • 1
  • 3
  • 9