Commit 8a4d3b7c authored by Daniel STAN's avatar Daniel STAN
Browse files

[wifimap/sort/filtrage] on filtre non placé

parent 64207d86
......@@ -112,6 +112,12 @@ WifiMap = {
//Clean up last marker
var old = this.marker;
var highlighted = this.highlighted;
var type = "on";
if( xml.hasAttribute('offline'))
type = "off";
this.layer = that.bornesLayers[type]; //On définit layer même
//S'il n'est pas sûr qu'on placera la borne sur la carte
if(old) {
this.highlight(false);
this.layer.removeMarker(old);
......@@ -134,9 +140,6 @@ WifiMap = {
this.mapPosition = new OpenLayers.LonLat(x,y);
this.mapPosition.transform(that.projections.gps,that.projections.map);
var type = "on";
if( xml.hasAttribute('offline'))
type = "off";
//On va compter le nombre de client et en déduire la taille
var counts = xml.getElementsByTagName('client_count');
......
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