Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mapSW = [0, 4096],
- mapNE = [4096, 0];
- var map = L.map('map').setView([0,0],1);
- L.tileLayer('maps/emptyGrid/{z}/{x}/{y}.png', {
- minZoom: 1,
- maxZoom: 4,
- continousWorld: false,
- noWrap:true,
- crs: L.CRS.Simple,
- }).addTo(map)
- map.setMaxBounds(new L.LatLngBounds(
- map.unproject(mapSW, map.getMaxZoom()),
- map.unproject(mapNE, map.getMaxZoom())
- ));
Add Comment
Please, Sign In to add comment