From 5aedf51d0cce23df4c79e14917bebde576bcd5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 2 Apr 2024 10:06:33 +0200 Subject: [PATCH] fix: Use `formatNum` from `Leaflet.Util` It was currently looked for in the uMap utils, where it wasn't present. --- umap/static/umap/js/umap.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index bbcf9502..7aa515f9 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1399,10 +1399,10 @@ U.Map = L.Map.extend({ L._('Use current bounds'), function () { const bounds = this.getBounds() - this.options.limitBounds.south = U.Utils.formatNum(bounds.getSouth()) - this.options.limitBounds.west = U.Utils.formatNum(bounds.getWest()) - this.options.limitBounds.north = U.Utils.formatNum(bounds.getNorth()) - this.options.limitBounds.east = U.Utils.formatNum(bounds.getEast()) + this.options.limitBounds.south = L.Util.formatNum(bounds.getSouth()) + this.options.limitBounds.west = L.Util.formatNum(bounds.getWest()) + this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth()) + this.options.limitBounds.east = L.Util.formatNum(bounds.getEast()) boundsBuilder.fetchAll() this.isDirty = true this.handleLimitBounds()