Leaflet.markercluster and Leaflet v1.0beta1

457 views
Skip to first unread message

jurgend...@gmail.com

unread,
Aug 8, 2015, 8:14:04 AM8/8/15
to Leaflet
Hello to the forum,

how to install the plugin Leaflet.markercluster without bower or npm? I copied the files leaflet.markercluster.js, leaflet.markercluster-src.js and their corresponding CSS-files into the Leaflet folder included them in my HTML files. Running my script I only get the error message:
Uncaught TypeError: Cannot read property 'trim' of undefined /Leaflet/leaflet-src.js:136

I think something like a library is missing.

Thanks in advance for the answers

Best regards


Corry Webster

unread,
Sep 4, 2015, 4:36:30 AM9/4/15
to Leaflet
You probably have wrong path to the libraries. 
You can try to include css files in the <head> tag in this order:


Corry Webster

unread,
Sep 4, 2015, 4:38:39 AM9/4/15
to Leaflet
And of course, don't forget to include leaflet files.


On Saturday, August 8, 2015 at 2:14:04 PM UTC+2, jurgend...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages