Plugin Keys On Map: Keys layer stay display/hide as previous session.
This commit is contained in:
@ -90,7 +90,7 @@ window.plugin.keysOnMap.disableMessage = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
window.plugin.keysOnMap.setupCSS = function() {
|
||||||
$("<style>")
|
$("<style>")
|
||||||
.prop("type", "text/css")
|
.prop("type", "text/css")
|
||||||
.html(".plugin-keys-on-map-key {\
|
.html(".plugin-keys-on-map-key {\
|
||||||
@ -103,9 +103,18 @@ var setup = function() {
|
|||||||
-webkit-text-size-adjust:none;\
|
-webkit-text-size-adjust:none;\
|
||||||
}")
|
}")
|
||||||
.appendTo("head");
|
.appendTo("head");
|
||||||
|
}
|
||||||
|
|
||||||
|
window.plugin.keysOnMap.setupLayer = function() {
|
||||||
window.layerChooser.addOverlay(window.plugin.keysOnMap.keyLayerGroup, 'Keys');
|
window.layerChooser.addOverlay(window.plugin.keysOnMap.keyLayerGroup, 'Keys');
|
||||||
map.addLayer(window.plugin.keysOnMap.keyLayerGroup);
|
if(isLayerGroupDisplayed('Keys'))
|
||||||
|
map.addLayer(window.plugin.keysOnMap.keyLayerGroup);
|
||||||
|
}
|
||||||
|
|
||||||
|
var setup = function() {
|
||||||
|
|
||||||
|
window.plugin.keysOnMap.setupCSS();
|
||||||
|
window.plugin.keysOnMap.setupLayer();
|
||||||
|
|
||||||
// Avoid error if this plugin load first
|
// Avoid error if this plugin load first
|
||||||
if($.inArray('pluginKeysUpdateKey', window.VALID_HOOKS) < 0)
|
if($.inArray('pluginKeysUpdateKey', window.VALID_HOOKS) < 0)
|
||||||
|
Reference in New Issue
Block a user