Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
UltraGeographicMap Zoom to GeographicSymbolSeries
posted

I'm trying to use the ultraGeographicMap. I'm plotting points, as follows:

            var series = new GeographicSymbolSeries();
            series.LongitudeMemberPath = "X";
            series.LatitudeMemberPath = "Y";
            var geoLocations = new List<Infragistics.Win.DataVisualization.Point>();

            foreach (var point in route)
            {
                geoLocations.Add(new Infragistics.Win.DataVisualization.Point() { X = point.Geocode.DoubleLongitude, Y = point.Geocode.DoubleLatitude });
            }

            series.DataSource = geoLocations;
            this.ultraGeographicMap1.Series.Add(series);

            var geoRegion = new Infragistics.Win.DataVisualization.Rectangle(route.FirstOrDefault().Geocode.DoubleLongitude, route.FirstOrDefault().Geocode.DoubleLatitude, 30, 20);
            this.ultraGeographicMap1.WindowRect = this.ultraGeographicMap1.GetZoomFromGeographic(geoRegion);

Is there a way to zoom to the GeographicSymbolSeries that is being plotted?

Thanks,