Sorry for my english
Hi, I have leaflet.js (image of map 5913x7863) and there L.CRS.Simple
I had
var imageBounds = [[1468.9700,-11.7050], [1968.2705,363.7705]];
var file0 = new L.imageOverlay(imageUrl, imageBounds).addTo(map);and everything was good, but I understood, that L.imageOverlay - it's wrong way and I need tiles. So now I have
L.tileLayer('images/tiles/{z}/{x}/{y}.png', {
continuousWorld: true,
noWrap: true,
maxZoom: 6,
minZoom: 3
}).addTo(map); But I don't know how to do L.tileLayer with this bounds (coordinates) [1468.9700,-11.7050], [1968.2705,363.7705]
Now bounds near this: [0,0], [-123,92], but I need [1468.9700,-11.7050], [1968.2705,363.7705] And I don't understand why is so hard to do bounds with tiles as easy with imageOverlay?
I have tried this:
var southWest = L.latLng(1468.9700,-11.7050),
northEast = L.latLng(1968.2705,363.7705),
mybounds = L.latLngBounds(southWest, northEast);
...
bounds: myboundsbut it have not helped.
If you have a solution for L.CRS.Simple and XY coordinates - pls, help!
P.S. Thanks for answers