public MapView(LatLon center) { Center = center; }
public MapView(LatLon center, double zoomLevel) { Center = center; ZoomLevel = zoomLevel; }
public static LatLonRect FromNWSE(LatLon nw, LatLon se) => new LatLonRect(nw.Latitude, se.Longitude, se.Latitude, nw.Longitude);
public static IEnumerable <Type> GetSerializationTypes() { Type[] myTypes = new[] { typeof(string), typeof(LatLon), typeof(AlertStatus), typeof(string[]) }; return(myTypes.Union(LatLon.GetSerializationTypes())); }
public static LatLonRect FromPointAndSpan(LatLon sw, LatLon span) { return(new LatLonRect(sw + span, sw)); }
public LatLonRect(LatLon ne, LatLon sw) { NE = ne; SW = sw; }
public LatLonRectMiniaturizationEnumerable(LatLonRect fullRect, LatLon maxSpan) { FullRect = fullRect; MaxSpan = maxSpan; }
public IEnumerable <LatLonRect> Miniaturize(LatLon maxSpan) { return(new LatLonRectMiniaturizationEnumerable(this, maxSpan)); }
public bool ContainsLatLon(LatLon point) => point.Latitude >= SW.Latitude && point.Latitude <= NE.Latitude && point.Longitude >= SW.Longitude && point.Longitude <= NE.Longitude;