Hi all,
I'm workgin with leaflet + leaflet geojson + leaflet markercluster and I can't foun any way to cluster marks from views geojson.
Is it possible that this isn't supported?
I developed this patch for the stable version:
var cluster = (feature.type === 'json') || (feature.type === 'point') && (!feature.flags || !(feature.flags & LEAFLET_MARKERCLUSTER_EXCLUDE_FROM_CLUSTER));
instead of
var cluster = (feature.type === 'point') && (!feature.flags || !(feature.flags & LEAFLET_MARKERCLUSTER_EXCLUDE_FROM_CLUSTER));
on leaflet_markercluster.drupal.js, line 88. Maybe isn't the best approach but for me worked. Is it planned to develop geojson featureCollection support?
thanks!
Comments
Comment #2
RdeBoerThanks quiron!
I've applied your "patch".
In the future it would be much appreciated if you could mention line numbers at least or better still a real patch, using the "git diff" command.
Rik