Any Ideas how show two (or more) nearby polylines - leaflet

I ran into a problem when two nearby polylines merge visually.
It looks pretty when zoom is large.
And polylines are merged visually in one line with color mixing when zoom level is small.
I have an idea: polylines must render on a distance between them when zoom level is small and decrease the distance when zoom in.
Does anyone have experience with it?

Related

Mapbox - Issue with elements disappearing at certain zoom level

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?

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.

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

MapKit Show Entire Globe

I am trying to draw the entire globe inside my MKMapView. By pinching to zoom out I am limited to zooming out to a certain level. I would like to be able to zoom out past this level to show the entire globe on the map. This doesn't seem like it would be very difficult, but I have been unable to find any solution.
The map inside an MKMapView doesn't repats on the sides, so you can't zoom out far enough to view the whole world.
Solution: Write your own renderer (very hard task, working with coordinates on a surface like the earth is a pain).