From 311809520c1ddc5448027b51c6317c81698b20d8 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 21 Aug 2023 10:06:54 +0200 Subject: [PATCH] When map has max bounds, use those bounds for limiting search fix #1264 --- umap/static/umap/js/umap.controls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 7595b710..f48c34e4 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1272,6 +1272,7 @@ L.U.Search = L.PhotonSearch.extend({ initialize: function (map, input, options) { L.PhotonSearch.prototype.initialize.call(this, map, input, options) this.options.url = map.options.urls.search + if (map.options.maxBounds) this.options.bbox = map.options.maxBounds.toBBoxString() }, onBlur: function (e) {