Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

maxNativeZoom ignored if maxzoom set in tileJson #978

Open
geografa opened this issue Mar 19, 2015 · 1 comment
Open

maxNativeZoom ignored if maxzoom set in tileJson #978

geografa opened this issue Mar 19, 2015 · 1 comment

Comments

@geografa
Copy link
Contributor

The maxNativeZoom option for overzooming is ignored if a maxzoom is set on a MBtile source. Code below is adapted from the example: https://www.mapbox.com/mapbox.js/example/v1.0.0/overzoom/

// The native maximum zoom level for this tile layer is 10
var map = L.mapbox.map('map', 'logos-barry.dev_testRasterSource', {
    tileLayer: {
        maxNativeZoom: 10 // The map will use zoom level 10 tiles for all zoom levels past 10
    }
}).setView([37.6, 35.9], 9);

/cc @jfirebaugh

@drewbo
Copy link

drewbo commented May 15, 2015

@geografa Possibly related to a similar leaflet bug which is fixed in latest master but not 0.7.3. Could either overwrite the private _getTileSize function in tile_layer.js or wait for the next release. Relevant commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants