Correct latitude (y) and longitude (x) coordinates of map

I had them reversed.
This commit is contained in:
jordi fita mas 2024-01-25 02:15:51 +01:00
parent 623f0af2ab
commit dc7098daf3
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
const svg = container.childNodes[0]; const svg = container.childNodes[0];
svg.remove(); svg.remove();
const latLngBounds = L.latLngBounds([[0, 0], [1500, 1192]]); const latLngBounds = L.latLngBounds([[0, 0], [1192, 1500]]);
const map = L.map(container, { const map = L.map(container, {
center: latLngBounds.getCenter(), center: latLngBounds.getCenter(),
zoom: 4, zoom: 4,