Has anyone done anything with marker clustering in Gmap.net? I have a heap of markers that I need to aggregate with one overall marker containing the number of markers under it. Can't think of a way to do this. I'm using Windows Forms.
I would hook into the gmapControl.OnMapZoomChangedEvent and then write some logic to manage your markers inside that delegate eg
gMapControl.OnMapZoomChanged += GMapControl_OnMapZoomChanged;
private void GMapControl_OnMapZoomChanged()
{
if (gMapControl.Zoom > 10)
{
// split markers
}
else
{
// group markers
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.