Skip to content

Commit a0aadf5

Browse files
authored
Editor / Map / Use main context to have a better default on new extent (geonetwork#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.
1 parent 83b1ab3 commit a0aadf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-ui/src/main/resources/catalog/js/CatController.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,9 @@
845845
geodesicExtents: false
846846
},
847847
"map-editor": {
848-
context: "",
848+
context: "../../map/config-viewer.xml",
849849
extent: [0, 0, 0, 0],
850-
layers: [{ type: "osm" }]
850+
layers: []
851851
},
852852
"map-thumbnail": {
853853
context: "../../map/config-viewer.xml",

0 commit comments

Comments
 (0)