remove debug console.log, fix comment
This commit is contained in:
parent
79aa71911c
commit
52bce7fa31
@ -136,7 +136,6 @@ window.runOnSmartphonesAfterBoot = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.layerChooser.showLayer = function(id,show) {
|
window.layerChooser.showLayer = function(id,show) {
|
||||||
window.console.log('yeay' + id + show);
|
|
||||||
if (show === undefined) show = true;
|
if (show === undefined) show = true;
|
||||||
obj = this._layers[id];
|
obj = this._layers[id];
|
||||||
if (!obj) return false;
|
if (!obj) return false;
|
||||||
@ -146,7 +145,7 @@ window.runOnSmartphonesAfterBoot = function() {
|
|||||||
//the layer to show is not currently active
|
//the layer to show is not currently active
|
||||||
this._map.addLayer(obj.layer);
|
this._map.addLayer(obj.layer);
|
||||||
|
|
||||||
//if it's an overlay, remove any others
|
//if it's a base layer, remove any others
|
||||||
if (!obj.overlay) {
|
if (!obj.overlay) {
|
||||||
for(i in this._layers) {
|
for(i in this._layers) {
|
||||||
if (i != id) {
|
if (i != id) {
|
||||||
@ -161,6 +160,7 @@ window.runOnSmartphonesAfterBoot = function() {
|
|||||||
this._map.removeLayer(obj.layer);
|
this._map.removeLayer(obj.layer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//below logic based on code in L.Control.Layers _onInputClick
|
//below logic based on code in L.Control.Layers _onInputClick
|
||||||
if(!obj.overlay) {
|
if(!obj.overlay) {
|
||||||
this._map.setZoom(this._map.getZoom());
|
this._map.setZoom(this._map.getZoom());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user