public Point GetOffsetLocation2(BasicGeoposition origin, double zoomLevel) { if (OffsetLocation.X == 0) { OffsetLocation = origin.GetOffsetedLocation(this.GetLocation().Position, zoomLevel); } return(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); }
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; }