From c26a037007d3db5c904fc1e398ef9aace7720fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 31 Jan 2023 13:07:44 +0100 Subject: [PATCH] Add comment and cleanup in map --- webapp/pages/map.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index 7c299d471..d036545b1 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -23,10 +23,7 @@ > {{ style.title }} - - @@ -252,6 +247,7 @@ export default { this.loadMarkesIconsAndAddMarkers() }, language(map) { + // example in mapbox-gl-language: https://github.com/mapbox/mapbox-gl-language/blob/master/index.js map.getStyle().layers.forEach(function (thisLayer) { if (thisLayer.id.indexOf('-label') > 0) { // seems to use user language. specific language would be `name_de`, but is not compatible with all maps