Exemple #1
0
 public Point GetOffsetLocation2(BasicGeoposition origin, double zoomLevel)
 {
     if (OffsetLocation.X == 0)
     {
         OffsetLocation = origin.GetOffsetedLocation(this.GetLocation().Position, zoomLevel);
     }
     return(OffsetLocation);
 }
Exemple #2
0
 public static Point GetOffsetLocation2(this Station station, BasicGeoposition origin, double zoomLevel)
 {
     if (station.OffsetLocation == null)
     {
         station.OffsetLocation = origin.GetOffsetedLocation(new BasicGeoposition()
         {
             Latitude = station.Latitude, Longitude = station.Longitude
         }, zoomLevel);
     }
     return((Point)station.OffsetLocation);
 }
 public static Point GetOffsetLocation2(this Station station, BasicGeoposition origin, double zoomLevel)
 {
     if (station.OffsetLocation == null)
     {
         station.OffsetLocation = origin.GetOffsetedLocation(new BasicGeoposition() { Latitude = station.Latitude, Longitude = station.Longitude }, zoomLevel);
     }
     return (Point)station.OffsetLocation;
 }