|
|
|
@ -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,
|
|
|
|
|