Tuesday, August 28, 2012

MapPolyGon Performance Issue

MapPolyGon Performance Issue

I have a Bing Maps Silverlight Control application.

Let's assume I have 50 Pushpins and I want to display a geofence for each pushpin dependent on the zoomlevel and if the geofence intersects with the current view.

With my old CodeBehind solution I solved this problem with the viewchange events and display the list dependent on the intersects method.

Now I have the whole application written with MVVM and I found no solution how to render these polygons dependent on the zoom level and intersection.

I tried to implement a mapzoom converter, but it does not look for the intersection.

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)     {         double zoom = System.Convert.ToDouble(value);          if (zoom > 12) return Visibility.Visible;         else return Visibility.Collapsed;     } 

Any ideas for this?

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog