public GPoint FromLatLngToLocal(PointLatLng point) { GPoint ret = Core.FromLatLngToLocal(point); if (MapScaleTransform != null) { var tp = MapScaleTransform.Transform(new System.Windows.Point(ret.X, ret.Y)); ret.X = (int)tp.X; ret.Y = (int)tp.Y; } if (IsRotated) { var f = rotationMatrix.Transform(new System.Windows.Point(ret.X, ret.Y)); ret.X = (int)f.X; ret.Y = (int)f.Y; } return(ret); }