Questions tagged [mapbox-gl]
A client-side framework for rendering web maps with implementations on native platforms utilizing OpenGL.
120 questions
1 vote
1 answer
585 views
Filter features within map view with MapLibre GL JS
I have an interactive map in which each marker is a location, and each radio button filters those locations by region. By default, the markers are grouped by clusters. Tha map has : an interactive ...
1 vote
0 answers
84 views
How to render marker for each features gotten from vector tile API in Mapbox GL JS?
I am using Mapbox GL JS in my vuetify project. I have a vector tile API. This API will return points for each tile (xyz). I use addSource and addLayer to render the features gotten from the vector ...
1 vote
0 answers
296 views
maplibregl/mapboxgl color transitions get lost after setPaintProperty
I want my features to smoothly transition different to colors based on its data. For this I apply a new map.setPaintProperty but then the 'fill-color-transition' property becomes lost, forever.. Some ...
0 votes
2 answers
104 views
Mapbox GL JS relations
I have three layers as follows; ski areas (polygons) ski lifts (ways) ski rund (ways) There is a unique ID that makes it relate back to the ski area. This is an example: ski areas (polygons) // id=...
0 votes
1 answer
2k views
Implementing H3-JS in Mapbox based map to Openlayers based map
In the H3-JS example I have, it is implemented in mapbox. But I would like to integrate the H3-JS binning as part of Openlayers map instead. This is the example I want to implement in OpenLayers. ...
1 vote
0 answers
814 views
Mapbox vector tile disappears at lower zoom levels
I am currently working with self-hosted vector tiles. These tiles are hosted on S3 and rendered on the map. The zoom levels are from 0 to 10 and generally load on all levels since maxzoom has been ...
0 votes
1 answer
899 views
Using Mapbox expressions to paint color depending on two different data fields
I'm visualizing geospatial data that has an attribute table with fields like this: id | main_type | sub_type In Mapbox GL, I can use expressions to paint the polygons according to main_type: ...
2 votes
2 answers
2k views
Mapbox layer doesn't update on variable change | react-map-gl
I have a map with a custom layer. Right now I have a problem that when points state get updated the map doesn't rerender. How can I force a rerender of the map layer when points changes? Codesandbox: ...
1 vote
0 answers
121 views
Using QGIS to filter some levels on the Ordnance Survey boundaries data
I am working on a full UK map and I need the postcode level 1 and 2 (areas and districts) and while I have gotten the postcode level 1 data, I need the postcode level 2 (postcode districts) data that ...
1 vote
0 answers
1k views
Adding a new point at user click while modifying an existing line or polygon geometry using Mapbox-gl-draw?
I would like to have an edit option for my user to edit an existing line or polygon plotted in a map. The edit option should allow user to add new vertices where user clicks. I have tried using Mapbox-...
2 votes
0 answers
2k views
Fit label text-size within the polygon Mapbox GL JS symbol-layer
I want to make the text-label in the symbol layer fit within the polygon. Change the position and size of the text-label according to zoom and polygon. It is required for Mapbox GL JS. const map = new ...
0 votes
1 answer
1k views
Add/remove radius circle after fitting map to radius with Mapbox
I am trying to add a range slider to zoom in and out of a Mapbox map to a radius in miles. I have the map and the slider working and I can sort of zoom in and out of the map by getting the bounds of ...
1 vote
1 answer
701 views
Filtering substring from a geojson string column in Mapbox GL JS
I am trying to filter my Mapbox map based on a substring filter. I have a column called COUNTY which has strings like Kern,Ventura,Los Angeles. My current code is as follows - map.addLayer({ id: &...
0 votes
1 answer
210 views
Stream GPS coordinates using D3 and Mapbox
I’m currently working on a project to stream GeoJSON data using D3 and Mapbox. But, I wasn’t able to plot my data based on their types. Basically, I have three different types of GPS data, when using ...
3 votes
2 answers
4k views
Deleting previous mapboxgl.Popup() existing on mapbox map
Before adding new mapboxgl.Popup(), I have to delete the existing ones if there are any. My code is: const popup = new mapboxgl.Popup() .setLngLat(middleCoordinates) .setHTML(`Distance:...