From 185255f8e46dd7ee3b7b4259b3231a580a4edcaa Mon Sep 17 00:00:00 2001 From: Jo Date: Mon, 6 Mar 2023 13:07:19 +0000 Subject: [PATCH] - switched coordinate order, to match Leaflet LatLngBounds object (#1163) https://leafletjs.com/reference.html#latlngbounds --- pygeoapi/templates/collections/tiles/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/templates/collections/tiles/index.html b/pygeoapi/templates/collections/tiles/index.html index 32a1c38..639e8bd 100644 --- a/pygeoapi/templates/collections/tiles/index.html +++ b/pygeoapi/templates/collections/tiles/index.html @@ -131,7 +131,7 @@ .addTo(map); map.on('click', clearHighlight); - bounds = L.latLngBounds([[{{ data['bounds'][0] }},{{data['bounds'][1]}}],[{{ data['bounds'][2] }},{{data['bounds'][3]}}]]) + bounds = L.latLngBounds([[{{ data['bounds'][1] }},{{data['bounds'][0]}}],[{{ data['bounds'][3] }},{{data['bounds'][2]}}]]) map.fitBounds(bounds, maxZoom={{ data['maxzoom']}});