Commit 6b0fb73d authored by Gabriel Detraz's avatar Gabriel Detraz

Icone pour les bornes en test avec os ubnt

parent 0488aad2
......@@ -65,14 +65,14 @@ WifiMap = {
this.bornesLayers = {//'ens': new OpenLayers.Layer.Markers("Mixte Ens-Cr@ns"),
'off': new OpenLayers.Layer.Markers("En panne"),
'on': new OpenLayers.Layer.Markers("Fonctionnelle"),
'prev': new OpenLayers.Layer.Markers("Nouvelle couverture"),
'test': new OpenLayers.Layer.Markers("Bornes en test"),
'pont wifi': new OpenLayers.Layer.Markers("Pont Wifi"),
'hl': new OpenLayers.Layer.Markers("Remarquables")
};
//Noms des fichiers images suivant le mode de la borne
var files = {'on': 'marker-green', 'off': 'marker',
'prev': 'marker-blue', 'pont wifi': 'marker-gold'};
'test': 'marker-blue', 'pont wifi': 'marker-gold'};
for( var type in files)
this.bornesLayers[type].markerUrl = '/static/OpenLayers/img/' +
(files[type]) + '.png';
......@@ -166,13 +166,16 @@ WifiMap = {
var type = "on";
if( xml.hasAttribute('offline'))
type = "off";
if( xml.hasAttribute('virtual'))
type = "prev";
for( var child=xml.firstChild; child; child=child.nextSibling) {
if( child.tagName == 'pontwifi')
if( getInnerText(child) == 'pontwifi')
type = "pont wifi";
}
for( var child=xml.firstChild; child; child=child.nextSibling) {
if( child.tagName == 'test')
if( getInnerText(child) == 'test')
type = "test";
}
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) {
......
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