Esempio n. 1
0
        public PointLatLng FromLocalToLatLng(int x, int y)
        {
            if (MapScaleTransform != null)
            {
                var tp = MapScaleTransform.Inverse.Transform(new System.Windows.Point(x, y));
                x = (int)tp.X;
                y = (int)tp.Y;
            }

            if (IsRotated)
            {
                var f = rotationMatrixInvert.Transform(new System.Windows.Point(x, y));

                x = (int)f.X;
                y = (int)f.Y;
            }

            return(Core.FromLocalToLatLng(x, y));
        }