From e4429e5f6d4df6f5f322e10d8ed2c85791096e3a Mon Sep 17 00:00:00 2001 From: echarp Date: Mon, 23 May 2016 01:11:22 +0200 Subject: [PATCH] Missing marker on the event display --- app/assets/javascripts/maps.js.coffee | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/maps.js.coffee b/app/assets/javascripts/maps.js.coffee index 25c86671..467b409b 100644 --- a/app/assets/javascripts/maps.js.coffee +++ b/app/assets/javascripts/maps.js.coffee @@ -59,13 +59,11 @@ $(document).ready -> else url += location.search - if location.pathname.startsWith('/moderations/') - # Marker with the proper icon - marker = L.AwesomeMarkers.icon - prefix: 'fa', - icon: 'calendar', - markerColor: 'cadetblue' - L.marker([coord[0], coord[1]], icon: marker).addTo map + # Marker with the proper icon + marker = L.AwesomeMarkers.icon + prefix: 'fa', + icon: 'calendar' + L.marker([coord[0], coord[1]], icon: marker).addTo map $.getJSON url, (json) -> layer = L.markerClusterGroup(maxClusterRadius: 30).addLayer L.geoJson json,