From 22781b306c831d051775915170d8ec9261d3f645 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 3 Feb 2017 02:07:31 +0100 Subject: [PATCH] [TASK] Change style in webkit correctly --- lib/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/map.js b/lib/map.js index 74dd6b0..94ca0ca 100644 --- a/lib/map.js +++ b/lib/map.js @@ -337,7 +337,9 @@ define(['map/clientlayer', 'map/labelslayer', labelsLayer.updateLayer(); } if (e.layer.options.mode) { - document.querySelector('.css-mode.' + e.layer.options.mode).media = ''; + var newStyle = document.querySelector('.css-mode.' + e.layer.options.mode); + newStyle.media = ''; + newStyle.appendChild(document.createTextNode('')); labelsLayer.updateLayer(); } });