[英]Gmap.net, marker Clustering
Has anyone done anything with marker clustering in Gmap.net? 有没有人对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. 我正在使用Windows窗体。
I would hook into the gmapControl.OnMapZoomChangedEvent and then write some logic to manage your markers inside that delegate eg 我将挂接到gmapControl.OnMapZoomChangedEvent,然后编写一些逻辑来管理该委托中的标记,例如
gMapControl.OnMapZoomChanged += GMapControl_OnMapZoomChanged;
private void GMapControl_OnMapZoomChanged()
{
if (gMapControl.Zoom > 10)
{
// split markers
}
else
{
// group markers
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.