Mercurial > gemma
changeset 3109:973312bb77c6
Client: Fixed usage of published config to configure the OSM server URL.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2019 18:39:02 +0200 |
parents | 8a4fb02ee60a |
children | 8db113582f64 |
files | client/src/components/map/Map.vue |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/Map.vue Thu Apr 25 17:50:41 2019 +0200 +++ b/client/src/components/map/Map.vue Thu Apr 25 18:39:02 2019 +0200 @@ -223,9 +223,11 @@ headers: { "X-Gemma-Auth": localStorage.getItem("token") } }) .then(response => { - const { url } = response.data; + const url = response.data["osm-url"]; const config = {}; - if (url) config["osm-url"] = url; + if (url) { + config["url"] = url; + } this.layers.config.unshift( new TileLayer({ id: "OPENSTREETMAP",