Skip to content
Snippets Groups Projects
Commit 16f591a3 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Replace space by '-' for provider id on the map

parent 4fb1ee0a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@
var name = marker[0];
marker[1].forEach(function(LatLng) {
L.marker(LatLng).addTo(map)
.bindPopup('<a href="#' + name.toLowerCase() + '">' + name + '</a>');
.bindPopup('<a href="#' + name.toLowerCase().replace(/ /g, '-') + '">' + name + '</a>');
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment