From 92b98389ada38ed65f23a6a1c352f9d221e833e3 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 18 Sep 2023 17:38:03 -0400 Subject: [PATCH] Faster map initialization --- app/static/app/js/components/Map.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/static/app/js/components/Map.jsx b/app/static/app/js/components/Map.jsx index 810b6666..b93ff561 100644 --- a/app/static/app/js/components/Map.jsx +++ b/app/static/app/js/components/Map.jsx @@ -482,7 +482,11 @@ _('Example:'), }); new AddOverlayCtrl().addTo(this.map); - this.map.fitWorld(); + this.map.fitBounds([ + [13.772919746115805, + 45.664640939831735], + [13.772825784981254, + 45.664591558975154]]); this.map.attributionControl.setPrefix(""); this.setState({showLoading: true});