There is a massive error in Digitizer.
If You draw a Line or Polygon using Digitizer. Than drag/move Map in way that Your Objects will disappear on the top or the left side of Map View, all the App hangs.
The error thrown is: Value does not fall within the expected range.
The problem is within:
DeepEarth.Map.Core.Filters -> Synchronizer
// ISelfPositionings may not have an attached location so they are always part of the visual tree
// This needs to be optimised. i.e. only arrange element if they are currently visible
if (element is ISelfPositioning)
Point offset = new Point(-locatedPoint.X, -locatedPoint.Y);
DeepEarth.Toolkit.Geometry -> LineString
protected override void Refresh()
PathGeometry pg = new PathGeometry();
var figures = ShapeHelper.CreateSafeFigures(Locations, LocationToPoint, false, MaxBound);
foreach (var figure in figures)
this.Data = pg;
As I understand the "needed" optimization is the problem I described higher.
Funny is that if You move objects right or down over the bottom, App works fine.
I'm trying to find the place to start, but as so far, without any clue.
My first thought was that problem is the point 0,0 (top,left) and drawing over it. F.e. Point (-1,-1). BUT the PathGeometries are build from points like (450, -172) with success.
Problem occurs only if last visible on map point goes by the left or top line, all Path points takes negative values and then after UElement Updated Event -> AppException fires.
What have to be done?
Any one have the same problem?
Regards for Authors!