[TASK] Improve labelupdate after mode change
This commit is contained in:
parent
4fbe147bb5
commit
5013ffa814
@ -339,7 +339,7 @@ define(["map/clientlayer", "map/labelslayer",
|
||||
document.querySelector("head").innerHTML += "<link rel='stylesheet' class='css-mode' href='" + e.layer.options.mode + ".css'>";
|
||||
document.querySelector("html").classList.add(e.layer.options.mode);
|
||||
var cssInterval = setInterval(function () {
|
||||
if (document.querySelector(".css-mode").sheet) {
|
||||
if (typeof document.querySelector(".css-mode").sheet.cssRules != 'undefined') {
|
||||
labelsLayer.updateColor();
|
||||
clearInterval(cssInterval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user