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