Not work....please give me an example how to modify cluster using strategy 
cluster or not..thanks

Pada Kamis, 09 Juli 2015 16.32.39 UTC+7, David Hequet menulis:
>
> Hi,
>
> I submited a shouldCluster option PR here: 
> https://github.com/openlayers/ol3/pull/3892
>
> Allow user to add a function that permit clustering features with 
> neighbors:
>
> Usage:
>
>
> var shouldCluster = function (feature,neighbor) {
>    // feature: feature who is looking for neighbors
>    // neighbor: feature within the distance allowed by clustersource
>    // return true/false depending on you're mood
> };
>
>
> var clusterSource = new ol.source.Cluster({
>   distance: 40,
>   source: source,
>   shouldCluster:shouldCluster // optional, otherwise the source will use 
> a return true function
> });
>
>
> Live example:
>
> http://jsfiddle.net/onclebob/L38jzqL6/9/
>
> This is my first contributing on Opensource project ever, tell me if 
> anything is not done in state of art :)
>
> David
>

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/1cdd9742-50d8-4efc-972b-80f7f0d09997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to