From 32c4e79d5f1f7e37862a98bec4123e41feb5482a Mon Sep 17 00:00:00 2001 From: Xelio Date: Thu, 2 May 2013 14:41:10 +0800 Subject: [PATCH] Plugin Keys On Map: Change to use window.addLayerGroup() to handle plugin layer --- plugins/keys-on-map.user.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/keys-on-map.user.js b/plugins/keys-on-map.user.js index 0cf301b5..43aa1338 100644 --- a/plugins/keys-on-map.user.js +++ b/plugins/keys-on-map.user.js @@ -106,9 +106,7 @@ window.plugin.keysOnMap.setupCSS = function() { } window.plugin.keysOnMap.setupLayer = function() { - window.layerChooser.addOverlay(window.plugin.keysOnMap.keyLayerGroup, 'Keys'); - if(isLayerGroupDisplayed('Keys')) - map.addLayer(window.plugin.keysOnMap.keyLayerGroup); + window.addLayerGroup('Keys', window.plugin.keysOnMap.keyLayerGroup, false); } var setup = function() {