From 840c955e4660cef3454fbca06b8787f0d8b0e7ac Mon Sep 17 00:00:00 2001 From: fkloft Date: Fri, 17 Jan 2014 09:22:08 +0100 Subject: [PATCH] Leaflet might not be available while booting --- plugins/keys-on-map.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/keys-on-map.user.js b/plugins/keys-on-map.user.js index 4bb8270e..924960f6 100644 --- a/plugins/keys-on-map.user.js +++ b/plugins/keys-on-map.user.js @@ -22,7 +22,6 @@ window.plugin.keysOnMap = function() {}; window.plugin.keysOnMap.keyLayers = {}; -window.plugin.keysOnMap.keyLayerGroup = new L.LayerGroup(); // Use portal add and remove event to control render of keys window.plugin.keysOnMap.portalAdded = function(data) { @@ -112,6 +111,7 @@ window.plugin.keysOnMap.setupCSS = function() { } window.plugin.keysOnMap.setupLayer = function() { + window.plugin.keysOnMap.keyLayerGroup = new L.LayerGroup(); window.addLayerGroup('Keys', window.plugin.keysOnMap.keyLayerGroup, false); }