My aim is to cluster many coordinates in the view. This points also can have "connections" between them which I want to show as a LineString.
I tried a lot but I cannot find a way to integrate the Lines into the Cluster.
My current (stable) status can be seen here: Fiddle
var clusterSource = new ol.source.Cluster({
distance: 20,
source: vectorDevices
});
If the two points "merge" into the cluster it would be great if the conntection disappears or is part of the cluster itself.
Can anyone help me?
I tried to add the vectorLine as a source to the Cluster fiddle
var clusterSource = new ol.source.Cluster({
distance: 20,
source: [vectorDevices, vectorLine]
});
or via addFeature fiddle
clusterSource.addFeature(vectorLine);