Last Updated: 08 Oct 2019 10:15 by ADMIN
Release R3 2019 SP1
Created on: 06 Aug 2019 11:33
Category: Map
Type: Bug Report
RadMap: tooltips are not shown for the clusters when you zoom out

Please refer to the sample project and follow the steps:

1. Run the attached application.
2. Hover over the calendar (custom cluster) 
3. Tooltip is shown.
4. Zoom out once 
5. Hover over the calendar.
6. No tooltip is shown - ToolTipTextNeeded is not called.
7. Zoom out once more.
8. Hover over the calendar.
9. No tooltip is shown - ToolTextNeeded is not called.
10. Zoom out once more. Now two icons are shown.
11. Hover over either calendar. 
12. Tooltip is shown.

1 comment
Dess | Tech Support Engineer, Principal
Posted on: 06 Aug 2019 11:44
Hello, Ken, 

Thank you for reporting this issue.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to override the ViewportChanged method of the custom MapCluster and consider the NumberOfWraparounds when determining whether the cluster is inside the viewport:

public RadForm1()
     RadMapElement.VisualElementFactory = new MyMapVisualElementFactory();
 public class MyMapVisualElementFactory : MapVisualElementFactory
     public override MapCluster CreateCluster()
         MyMapCluster cluster = new MyMapCluster();
         return cluster;
 public class MyMapCluster : MapCluster
     public override void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
         base.ViewportChanged(viewport, action);
         for (int i = 0; i <= viewport.NumberOfWraparounds; i++)
             PointG location = new PointG(this.Location.Latitude, this.Location.Longitude + 360 * i);
             if (viewport.Viewport.Contains(location))
                 typeof(MapCluster).GetField("isInViewport", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(this, true);

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.