Mapbox - Issue with elements disappearing at certain zoom level - mapbox

First time posting here.
I am using Mapbox to create styles for maps. I have set Buildings layer to have a constant color and opacity across all zoom levels but the buildings still disappear when I zoom out past 15. What am I missing?
I want the buildings to remain visible at all zoom levels. Is there a global setting that I'm missing somewhere?

Related

How can I show bathymetry data on all zoom levels in my custom style?

I have no idea how to make the bathymetry layer show on the most zoomed out zoom layer. It only seems to activate when I go above level 3 zoom.
I don't have any opacity changes based on zoom, it's just set to 1, so I don't know why it's not showing. Is it because we can't view complex data when fully zoomed out or zomething?
zoom at 2.9
zoom at 3.1
Presumably, your bathyrmetry tileset only exists at zoom levels 3 and above. There's nothing you can do to make it appear at levels below its minimum.

Mapbox studio : how to display building at any zoom level

I'm using mapbox studio to customize a map and I haven't found the way to display building-outline layer at any zoom level.
If I'm under of 16 zoom level, this layer disappears... even if I force opacity to 1.
Any idea ?
Thank you in advance
The minimum zoom level for the buildings layer in the current tileset (Mapbox Streets v8) is 13.
This means that if you zoom out further (from 12 to 0) the buildings layer will not be rendered on the map.
See documentation:
https://docs.mapbox.com/vector-tiles/reference/mapbox-streets-v8/#layer-reference
The reason for this restriction is that if you requested your browser to fetch and render every building polygon in a wider area (like an entire city or country), this would be more than a reasonable amount of data to render.
If you have your own buildings polygon data and you create a tileset from that, you could choose to include your data across more zoom levels. However, you might waste a lot of computing resources drawing shapes that are too tiny to understand at those further zoom levels.

Mapbox - Show point of interest markers regardless of zoom level

I'm filtering on the 'poi-label' layer on the default Mapbox Streets V8 data source. What I'd like to have is that certain maki or class labels like 'fitness-centere' to always be visible (both icon and label) regardless of the zoom level.
I see no clear documentation on how to do this using Mapbox studio. Can it be done in that tool?
It is generally not possible to have layers in vector tile sources display at "all zoom levels" because they don't exist at all zoom levels within the vector tile sources.
Generally, the Mapbox tilesets are heavily optimised and only include data at the zoom levels that they are intended to display at in the corresponding Mapbox styles.

How to show smaller roads one zoom level later?

I am using Mapbox studio.
I use the default OSM road data.
If I zoom in at level 10 I only see major roads.
At zoom level 11 then suddenly lots of smaller roads appear.
I would like to show these roads at a later zoom level. I want to move everything one zoom level behind, so the small roads would show up at level 12.
How can I do that? I can not figure it out.
Thank you
You can change the layers' zoom extent. select or filter layers and move the "Select data" tab on the styling pannel.
Then, swipe the Min slider.

Leaflet zoom in further and stretch tiles

When I zoom in far enough on my map, the TileLayer disappears and I see a bunch of tiles that say "Map data not yet available". I believe these tiles may be coming from the provider, but I am not sure (I am using ESRI WorldImagery dataset).
Is there any way to, at a certain zoom level, just force the tiles to stretch, instead of requesting the tiles for that zoom level? I am ok with some blur, but I do need to zoom in further.
I tried playing around with the zoomOffset option, but whenever I put something there other than 0, my tiles just never load (all grey).
Thanks!
This can be solved by using two of the options of L.TileLayer.
First, set maxNativeZoom to the highest zoom level your tiles provide (the last zoom level before the "Map data not available" starts to appear - this tells Leaflet to stop requesting new tiles when zooming in beyond this level; stretched tiles will be used instead.
Second, set maxZoom to whatever zoom is appropriate; you might not want this to be more than a couple of levels higher than maxNativeZoom, since the stretched tiles will start to look pretty horrible.
You can find out more about the details by checking under "Options" in the documentation for L.TileLayer: http://leafletjs.com/reference.html#tilelayer