maps: add layer identifier as marker class name (#19599)
This commit is contained in:
parent
4fc4554371
commit
d051a37c70
|
@ -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>'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue