maps: add layer identifier as marker class name (#19599)

This commit is contained in:
Frédéric Péters 2017-10-22 14:01:18 +02:00
parent 4fc4554371
commit d051a37c70
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ $(function() {
marker = L.divIcon({
iconAnchor: [0, 0],
popupAnchor: [5, -45],
html: '<span style="' + markerStyles + '"><i class="leaflet-marker-icon ' +
html: '<span class="layer-' +
feature.properties.layer.identifier +
'" style="' + markerStyles + '"><i class="leaflet-marker-icon ' +
feature.properties.layer.icon + '" style="color:' +
feature.properties.layer.icon_colour +'"></i></span>'
});