Commit 64207d86 authored by Daniel STAN's avatar Daniel STAN
Browse files

[wifimap/sort] filtrage par calque

parent 4788e252
......@@ -455,7 +455,7 @@ WifiMap.ModeSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher,
var j = Math.floor(i/2);
var choice = document.createElement('input');
choice.type = 'radio';
var way = i % 2 ? 'down':'up';
var way = i % 2 ?'up':'down';
choice.className = 'order ' + way;
choice.name = 'order';
choice.checked = way == orders[j].def;
......@@ -470,9 +470,18 @@ WifiMap.ModeSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher,
}
},
updateMap: function() {
this.parentClass.updateMap.apply(this);
for( b in this.wifiMap.listeBornes ) {
var ap = this.wifiMap.listeBornes[b];
var layer = ap.layer || this.wifiMap.bornesLayers.autres;
ap.html_list.style.display = layer.visibility?'':'none';
}
},
updateOrder: function () {
var radios = document.getElementsByName('order');
var res = [this.wifiMap.orders[0].name,'desc'];
var res = [this.wifiMap.orders[0].name,'down'];
for( var i = 0; i < radios.length; i++) {
if( radios[i].checked ) {
res = radios[i].value.split('-');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment