I am trying to add markercluster into leaflet.
var markers = L.markerClusterGroup();
My header file include:
script(src='https://unpkg.com/[email protected]/dist/leaflet.js')
link(type='text/css', rel='stylesheet', href='/stylesheets/MarkerCluster.css')
link(type='text/css', rel='stylesheet', href='/stylesheets/MarkerCluster.Default.css')
script(src=/javascripts/leaflet.markercluster-src.js')
But I keep getting the error of : L.markerClusterGroup is not a function
I am not sure why I get that error.