This question is locked. New answers and comments are not allowed.
Hi,
I am using Map control with dynamic layer and its working with fee objects, but when I try to load for instance 186 objects it throws ArgumentException with the error: "Value does not fall within the expected range.".
I dont know what it means.
My itemsRequest method is like this:
It throws this exception when I call the callback(objects).
Best regards,
Gonçalo
I am using Map control with dynamic layer and its working with fee objects, but when I try to load for instance 186 objects it throws ArgumentException with the error: "Value does not fall within the expected range.".
I dont know what it means.
My itemsRequest method is like this:
public void ItemsRequest(double minZoom, double maxZoom, Location upperLeft, Location lowerRight, Action<System.Collections.ICollection> callback) { LocationRect locationRect = new LocationRect(upperLeft, lowerRight); List<object> objects = new List<object>(); if (minZoom <= 3) { page.listTrackLayer.ForEach((trackLayer) => { LocationRect rect = trackLayer.MapPolyline.GeographicalBounds; if (rect.Intersect(locationRect)) { objects.Add(trackLayer.MapPolyline); trackLayer.PinPoints.ForEach((point) => { objects.Add(point); }); } }); } if (minZoom >= 9) { page.listTrackLayer.ForEach((trackLayer) => { LocationRect rect = trackLayer.MapPolyline.GeographicalBounds; if (rect.Intersect(locationRect)) { objects.Add(trackLayer.MapPolyline); trackLayer.PinPoints.ForEach((point) => { objects.Add(point); }); } }); } callback(objects); }It throws this exception when I call the callback(objects).
Best regards,
Gonçalo