Skip to content
Snippets Groups Projects
Commit ef892bb8 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add config param MAP_PREVIEW_CENTER

parent adad26f6
No related branches found
No related tags found
1 merge request!509REDMINE_ISSUE-15399| Paramétrage projet - Amélioration de l'ergonomie du choix de l'échelle max
This commit is part of merge request !509. Comments created here will be created in the context of that merge request.
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
"center": [47.0, 1.0], "center": [47.0, 1.0],
"zoom": 4 "zoom": 4
}, },
"MAP_PREVIEW_CENTER" : [46.56397874834413, 3.3283550153590995],
"GEOCODER_PROVIDERS" : { "GEOCODER_PROVIDERS" : {
"ADDOK": "addok", "ADDOK": "addok",
"NOMINATIM": "nominatim", "NOMINATIM": "nominatim",
......
...@@ -697,7 +697,7 @@ export default { ...@@ -697,7 +697,7 @@ export default {
this.INITIATE_MAP({ this.INITIATE_MAP({
el: this.$refs.map, el: this.$refs.map,
zoom: this.project ? this.project.map_max_zoom_level : 22, zoom: this.project ? this.project.map_max_zoom_level : 22,
center: [46.56397874834413, 3.3283550153590995], center: this.$store.state.configuration.MAP_PREVIEW_CENTER,
maxZoom: 22, maxZoom: 22,
controls: [], controls: [],
zoomControl: false, zoomControl: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment