Auto initialization overwrites my custom zoom and center settings
Closed this issue · 0 comments
bendera commented
Sample code:
var map = L.map('map', {
minZoom: minZoom,
maxZoom: maxZoom,
crs: L.CRS.Simple,
zoom: 4, //ignored
center: L.latLng(-26.96875, 94.140625) //ignored
});
L.tileLayer.zoomify('Map_of_the_world_1998/', {
width: 11776,
height: 6656,
tolerance: 0.8,
continuousWorld: true,
attribution: 'Lorem Ipsum'
}).addTo(map);
Check the "onAdd" function at line 41.