Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nounous-archives
intranet
Commits
6b0fb73d
Commit
6b0fb73d
authored
Nov 28, 2017
by
Gabriel Detraz
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Icone pour les bornes en test avec os ubnt
parent
0488aad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
wifimap/static/js/wifimap.js
wifimap/static/js/wifimap.js
+7
-4
No files found.
wifimap/static/js/wifimap.js
View file @
6b0fb73d
...
...
@@ -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
)
{
...
...
Gabriel Detraz
@detraz
mentioned in commit
6dab713f
·
Dec 12, 2017
mentioned in commit
6dab713f
mentioned in commit 6dab713fa1a18414fc0c5befc5c14dc9af0cbc4d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment