Commit 3365e0e0 authored by ConstiDami's avatar ConstiDami
Browse files

affiche marqueurs

parent 3993644c
......@@ -61,10 +61,10 @@
}
});
//instanciation des variantes de marqueurs (différentes couleurs)
var blueIcon = new MapIcon({iconUrl:'static/img/marker/marker-icon-blue.png' }),
redIcon = new MapIcon({iconUrl: 'static/img/marker/marker-icon-red.png'}),
greenIcon = new MapIcon({iconUrl: 'static/img/marker/marker-icon-green.png'}),
greyIcon = new MapIcon({iconUrl: 'static/img/marker/marker-icon-grey.png'});
var blueIcon = new MapIcon({iconUrl:'{{ url_for('static', filename='img/marker/marker-icon-blue.png')}}'}),
redIcon = new MapIcon({iconUrl: '{{ url_for('static', filename='img/marker/marker-icon-red.png')}}'}),
greenIcon = new MapIcon({iconUrl: '{{ url_for('static', filename='img/marker/marker-icon-green.png')}}'}),
greyIcon = new MapIcon({iconUrl: '{{ url_for('static', filename='img/marker/marker-icon-grey.png')}}'});
L.marker(['{{langue.geolat}}','{{langue.geolng}}'],
//test pour savoir s'il existe un audio
......@@ -91,7 +91,7 @@
var div = L.DomUtil.create('div', 'info-legend'),
types = ['sans enregistrement sonore', 'langue', 'variante de prononciation', 'dialecte'],
markers = ['static/img/marker/marker-icon-grey.png', 'static/img/marker/marker-icon-green.png','static/img/marker/marker-icon-blue.png', 'static/img/marker/marker-icon-red.png'];
markers = ['{{ url_for('static', filename='img/marker/marker-icon-grey.png')}}', '{{ url_for('static', filename='img/marker/marker-icon-green.png')}}','{{ url_for('static', filename='img/marker/marker-icon-blue.png')}}', '{{ url_for('static', filename='img/marker/marker-icon-red.png')}}'];
for (var i = 0; i < types.length; i++) {
div.innerHTML +=
......
Supports Markdown
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