private void ShowAllDataPointClustered() { PushpinLayer.Children.Clear(); if (_generatingData) { StatusTbx.Text += "Database is still loading.\r\n"; return; } if (App.MapVM.FilterdImageLocations.Count == 0) { StatusTbx.Text += "No database data found.\r\n"; return; } //Create an instance of the Point Based clustering layer var layer = new PointBasedClusteredLayer(MyMap, _options); //Get the map layer from the clustered layer and add to map PushpinLayer.Children.Add(layer.GetMapLayer()); //Add mock data to cluster layer layer.AddEntities(App.MapVM.FilterdImageLocations.AsEntities()); //StatusTbx.Text += "Point based clustering is enabled.\r\n"; }
private void PointClusterData_Clicked(object sender, RoutedEventArgs e) { MyMap.Children.Clear(); if (_generatingData) { StatusTbx.Text += "Mock data is still generating.\r\n"; return; } if (_mockData == null) { StatusTbx.Text += "No mock data generated.\r\n"; return; } //Create an instance of the Point Based clustering layer var layer = new PointBasedClusteredLayer(MyMap, _options); //Get the map layer from the clustered layer and add to map MyMap.Children.Add(layer.GetMapLayer()); //Add mock data to cluster layer layer.AddEntities(_mockData); StatusTbx.Text += "Point based clustering is enabled.\r\n"; }