From 2bcac67dec43bcac91cac2383c167fad8f932475 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 11 May 2023 12:34:39 +0200 Subject: [PATCH] Use flyTo option in locate if map settings aks for it --- umap/static/umap/js/umap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 605598e1..e58226a9 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -261,7 +261,8 @@ L.U.Map.include({ // but the control breaks if we don't specify a class here, so a fake class // will do. icon: 'umap-fake-class', - iconLoading: 'umap-fake-class' + iconLoading: 'umap-fake-class', + flyTo: this.options.easing }); this._controls.fullscreen = new L.Control.Fullscreen({title: {'false': L._('View Fullscreen'), 'true': L._('Exit Fullscreen')}}); this._controls.search = new L.U.SearchControl();