[Solved] Marker clustering

classic Classic list List threaded Threaded
3 messages Options
Nikkitta Nikkitta
Reply | Threaded
Open this post in threaded view
|

[Solved] Marker clustering

This post was updated on .
Hi,

I want to implement marker (objects) clustering in osgEarth. I need something like this shown on google maps.

As far as I understood I need a dynamic grid which change its size while zooming in or out. Then I check markers in each cell, group them and define how to visualize grouped marker.

My question is - maybe there are some prebuilt plugins/features in osgEarth for such functionality?
If no, then while creating grid should I link somehow to the grid of tiles or should I create a separate grid?
Best regards,
Nikita Petrov
emminizer emminizer
Reply | Threaded
Open this post in threaded view
|

Re: Marker clustering

Hi Nikita,

Did you look at the clustering example?  https://github.com/gwaldron/osgearth/blob/master/src/applications/osgearth_cluster/osgearth_cluster.cpp

It looks similar to what you're looking to do.

 - Dan
Nikkitta Nikkitta
Reply | Threaded
Open this post in threaded view
|

Re: Marker clustering

Yes, just found it, thanks a lot, that's exactly what I was looking for!
Best regards,
Nikita Petrov