Zooming further in leaflet - leaflet

I have a wmts server where the highest zoom level seem to be 9.
This is because if I add in attribute maxZoom something higher than 9, then no tails are fetched and I see 404 in console.
So I found out that the files on the server are from level 0 to level 9.
Now, I want to zoom further in the tiles.
I saw for example this question:
http://stackoverflow.com/questions/18687120/leaflet-zoom-in-further-and-stretch-tiles
So adding:
maxNativeZoom: 10
should make the trick, right?
However, if I double click or click on the zoom in (which is disabled, as by default the zoom is already at 9) nothing happens I cannot see the tiles zoomed in.
What am I doing wrong?

Judging by the information provided, you should set maxNativeZoom to 9, not to 10.

Related

Getting railways to show up at lower zoom levels

I need to highlight a country's railways at zoom level ~4, and I'd like to do so just using the mapbox-streets-v8 data, but not matter what I seem to do, in Mapbox Studio, in the style JSON, or in the code, I can't seem to get the road/railways layer to be visible at a zoom level under 8.
It looks like, from tinkering around in Mapbox Studio, the source isn't even loaded until zoom 8, since the features don't appear as "filtered out", they just don't appear at all. I've set the "zoom extent" down to 5 on the layer (as low as it will go), but nothing I do seems to actually get it to appear at zoom 5, let alone at a level more zoomed out:
It's not possible. The data doesn't exist at that zoom level in those vector tiles. You would need to prepare your own vector tiles from your own data source.

Truly smooth zooming in Leaflet

For a few days, I've been trying to find out how to make Leaflet have fluid zoom, and by that I mean the one that can be found in for example OpenSeadragon. I've been playing around with the zoomSnap, wheelDebounceTime and wheelPxPerZoomLevel settings on the Map object, but all to no avail.
Fluid zoom has a huge 'wow'-factor and on top of that I would like to use Leaflet Draw to have users annotate tiled old maps, for storytelling purposes.
Is there anyone that has successfully achieved OpenSeadragon-style zooming? The .flyTo() method seems to relatively be able to smoothly zoom in and out, as does the TouchZoom handler. Also, when clicking the zoom-buttons the image zooms in smoothly. But I can't for the life of me figure out how to use that on scroll events.
Can anyone point me in the right direction?
A demo of the problem can be found here.
There is a Leaflet plugin called SmoothWheelZoom that has partial zoom levels for a smoother looking effect when zooming in or zooming out. SmoothWheelZoom is not listed on Leaflet's plugins page.
(It looks exactly like the OpenLayers smooth zoom.)
Leaflet now has partial zoom levels:
A feature introduced in Leaflet 1.0.0 was the concept of fractional zoom. Before this, the zoom level of the map could be only an integer number (0, 1, 2, and so on); but now you can use fractional numbers like 1.5 or 1.25.
Fractional zoom is disabled by default. To enable it, use the map’s zoomSnap option. The zoomSnap option has a default value of 1 (which means that the zoom level of the map can be 0, 1, 2, and so on).
[...]
zoomSnap can be set to zero. This means that Leaflet will not snap the zoom level.
This works especially well with pinch-zoom on smartphone, but it isn't as reactive as what I've seen on MapBox or OpenLayers.
See this article for a live demo with explanations

How to set the initial zoom settings in leaflet/mapbox as a fractional value?

I was using this
L.mapbox.map('map-canvas', 'mapbox.streets',{legendControl:{postion: 'bottomright'}}).setView([1.35, 103.8], 11);
You can see the last 11 as the zoom factor, 11 is a bit bigger for my div and when I try 10 it becomes a bit too smaller. I used 10.x but then the behaviour of the map is changing and only a part of the map in the center is being shown.
Please answer if you know some other way to set initial zoom settings which could help me.Thanks
I believe current L.mapbox version is based on Leaflet version 0.7, which does not support fractional zoom level.
Leaflet version 1.0.0 (still at release candidate state) will provide such support. Mapbox will surely update its version once it is released.

renderd rendering tiles only in [6 - 9] zoom range

I recently installed an OSM tile server using these instructions.
Everything works fine except that tiles are only rendered with a zoom between 6 and 9, outside of this range I've pink tiles.
in /etc/renderd.conf min and max zoom are set to respectively 6 and 19 and
in the stylesheet to 0-20.
Can these settings be coded somewhere else? (i don't have a /usr/local/etc/renderd.conf file)
Ok, my bad, I set these settings for debugging purpose, i had to restart apache for applying the new settings.

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