Skip to content
Advertisement

Tag: mapbox-gl-js

Mapbox GL what does ?fresh=true do when loading a tileset?

Mapbox GL what does ?fresh=true do when loading a tileset? We are having trouble loading the map in a react page. Removing ?fresh=true sometimes breaks the page and other times fixes it. I’m wondering what it does because I can’t find anything on it online Answer From https://github.com/mapbox/mapbox-sdk-js/issues/364#issuecomment-617894314: Requests that use this param bypass Mapbox’s caching, and request times can

Mapbox JS GL: Filter points by features

I have a mapbox map that displays a number of points from a GEOJson source with several features and independent categories. I want to be able to filter by these features. Ideally when I click on a checkbox filter only the relevant points should remain visible on the layer. So I guess after a click on a checkbox the map

determining circle-color with nested expressions

I use a GeoJSON as my source, where every entity has a state. I want to draw circles for every entity, where the circle color is based on the state, and whether the circle has been clicked or not. Determining the “clicked-state” is done via setFeatureState() where a feature receives the “click” state when clicked. I tried to first check

mapbox change source property

I want to make a cluster layer with mapbox, yes I made it :D. But I want to be able to turn it off So I’m making a source Now I’m able to set the data: After this I am setting the layers for the clusters and circles. Now clustering is working But now: How can I set the cluster:

Advertisement