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

  • RdeBoer committed 879d7b2 on 7.x-1.x
    Issue #2355163: Suport for clustering geojson layer. Thanks quiron"
    
RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Status: Active » Fixed

Thanks 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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.