From a0aadf532b8983518ae9825de38e6e0c227d49c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Fri, 17 May 2024 12:01:18 +0200 Subject: [PATCH] Editor / Map / Use main context to have a better default on new extent (#8046) The map configuration was not using a context and the map extent was centered on coordinate 0 0. Use the default map context which will center on the context map extent which depends on each catalogue configuration. --- web-ui/src/main/resources/catalog/js/CatController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-ui/src/main/resources/catalog/js/CatController.js b/web-ui/src/main/resources/catalog/js/CatController.js index e08a07cae1f..284d29531cd 100644 --- a/web-ui/src/main/resources/catalog/js/CatController.js +++ b/web-ui/src/main/resources/catalog/js/CatController.js @@ -845,9 +845,9 @@ geodesicExtents: false }, "map-editor": { - context: "", + context: "../../map/config-viewer.xml", extent: [0, 0, 0, 0], - layers: [{ type: "osm" }] + layers: [] }, "map-thumbnail": { context: "../../map/config-viewer.xml",