Completed
Last Updated: 08 Mar 2018 16:34 by ADMIN
ADMIN
Petar Mladenov
Created on: 06 Mar 2018 14:49
Category: UI for WPF
Type: Bug Report
0
Map: The Bounds of the ClusterData's object has wrong East value when AutoCalculateBounds is True.
User can set AutoCalculateBounds to True by the following way:

 public class CustomClusterGenerator : DefaultClusterGenerator
    {
        public override ClusterData CreateCluster(Location center, object item)
        {
            var clusterData = base.CreateCluster(center, item);
            clusterData.AutoCalculateBounds = true;
            return clusterData;
        }
    }

  this.VisualizationLayer1.ClusterGenerator = new CustomClusterGenerator();

When clustering 4 points:

ObservableCollection<DataItem> items = new ObservableCollection<DataItem>()
            {
                new DataItem() {MapLocation = new Telerik.Windows.Controls.Map.Location(20, 30) },
                new DataItem() {MapLocation = new Telerik.Windows.Controls.Map.Location(20, 34) },

                new DataItem() {MapLocation = new Telerik.Windows.Controls.Map.Location(22, 32) },
                new DataItem() {MapLocation = new Telerik.Windows.Controls.Map.Location(18, 32) },
            };

            this.VisualizationLayer1.ItemsSource = items;

EXPECTED:  ClusterData's Bounds must  be:

WEST: 30 and EAST: 34.

Actual Values are 30 and 30 (29.9999 and 30).

1 comment
ADMIN
Ralitsa
Posted on: 08 Mar 2018 16:34
Hi,

The fix for the issue will be available in next LIB version (2018.1.312). It will also be included in our next official version – R2 2018, scheduled for the middle of May.

Best regards,
Ralitsa Kumanova