Exemple #1
0
        public Point GetScaledLocation(Point geoLocation)
        {
            // init appropriate axis scaler parameters
            var x = GeoMap.GetScaledLongitude(geoLocation.X);
            var y = GeoMap.GetScaledLongitude(geoLocation.Y);
            var scaledLocation = new Point(x, y);

            return(scaledLocation);
        }
Exemple #2
0
        public static Point GetScaledLocation(this XamGeographicMap geoMap, GeoLocation geoLocation)
        {
            // init appropriate axis scaler parameters
            var x = geoMap.GetScaledLongitude(geoLocation.Longitude);
            var y = geoMap.GetScaledLongitude(geoLocation.Latitude);
            var scaledLocation = new Point(x, y);

            return(scaledLocation);
        }