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

Mapbox buildings are separate, not connected or combined in the building layer

I wrote code to when user hovers over the buildings it should be highlighted but some buildings when i hover over them only a part of them get's highlighted. Here is an example building in which one building can be hovered in 3 different ways and my…
Samyar
  • 387
  • 3
  • 15
-1
votes
0 answers

Mapbox not working when enable WebXR in Babylon.js?

I’ve created a project to test Mapbox, everything is fine but the problem is when I switch to VR mode, the page gone blank without any error. Here is my project: https://github.com/minhhoangdo98/TestMapBoxXR Here is the code I test in…
-1
votes
1 answer

how to sum up values in a polygon in mapbox

I tried being very detailed with my problem but instead I got called out for asking for help so Im gonna be very general here. I need to sum up the values of each location in a polygon drawn on Mapbox. I actually have the code for it that inserts…
-1
votes
1 answer

Data analytics on a map for big data using mapbox

I have around 1 million(might increase in future) objects in an array(GeoJSON) which looks like this: [{ "id": 4472, "type": "Feature", "properties": { "id": 1, "key1": 123, "key2":…
-1
votes
1 answer

Is there a way to use IOS API to get Mac os version of my App working?

I am building iOS and MacOS app. Both share Swift code base. Seems like Mapbox does not support MacOS. So currently I am using Mapbox GL JS as a web view. What I found is if I use my styles in Mapbox Ios Preview App, navigations are super smooth and…
artpen
  • 25
  • 7
-1
votes
1 answer

Clear Mapbox-gl fog effect

I've created a Mapbox-gl map with a globe projection. I then use map.setFog({}) to add the fog effect. Is there a way to clear the fog by changing the settings or remove it entirely from the map? Thanks
RichardZ
  • 345
  • 2
  • 6
  • 18
-1
votes
1 answer

Mapbox GL JS interactivity on a Warehouse Floorplan as the base map plausible?

I am trying to figure out if Mapbox GL JS would be applicable or fit for my use case: My base map example has to be made of several components of a warehouse instead of Geospatial map I would like to display a clustering layer representing, for…
-1
votes
1 answer

CORS error uploading file to S3 using mapbox credentials

I am trying to upload a shapefile from my frontend to the temporary bucket provided by mapbox like so: async function upload() { const credentials = await getCredentials(USERNAME, SECRET_KEY); // gets temporary mapbox credentials const…
justanotherguy
  • 395
  • 4
  • 17
-1
votes
1 answer

over labeling and zooming issue mapbox

I created custom mapbox using the dataset of building but it is having issue in some buildings not proper rendering like lines in building there is a labeling issue when the orientation is changed of the map it should it only provide the labels of…
-1
votes
1 answer

Mapbox GL JS Convert Screen (X, Y) coordinates to LngLat

I want to convert a few (X,Y) positions on the mapbox map to their lnglat positions. I know project() converts from lnglat to X, Y. But, I can't find the reverse.
johnbumble
  • 630
  • 1
  • 10
  • 18
-1
votes
1 answer

Mapbox Get Point Raster Layer Color

I want to display a legend slider besides the map to show the color of the custom raster layer, of the hovered territory. Therefore, I need to get the layer pixel color where the cursor is. I have found a solution to get the color of a pixel on the…
-1
votes
1 answer

MapBox: How to render object buried underground in 3d?

When the camera is tilted very close to the ground, I want to make some ground parts transparent to show a buried object like a pipe. libraries I am using: Mapbox Gl Js, Three.js
-1
votes
1 answer

Detect tap on a label in Mapbox map on iOS

I'd like to know if there is a way to best detect a users tap on a label? The new iOS15 Maps app allows a tap on e.g. a cities name and then shows informations about that city. I am now wondering if something similar can be done with mapbox? I know…
Georg
  • 3,664
  • 3
  • 34
  • 75
-1
votes
1 answer

Mapbox Telemetry issue Android 11

These are the mapbox dependencies I have used in build.gradle file implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0' implementation 'com.mapbox.mapboxsdk:mapbox-android-telemetry:6.1.0' implementation…
GBEEE
  • 3
  • 1
-1
votes
1 answer

Show mapbox polygon feature depending on its size in pixels?

I have polygons features on a Mapbox map. Their sizes vary a lot (some are big as streets, others are as little as a tree). Each polygon has an a point feature on it (a circle) that acts as an handle to open a popup related to the polygon data. But…
gordie
  • 1,637
  • 3
  • 21
  • 41