Beispiel #1
0
 public unsafe CLLocationCoordinate2D[] GetCoordinates(int first, int count)
 {
     var range = new NSRange (first, count);
     var target = new CLLocationCoordinate2D [count];
     fixed (CLLocationCoordinate2D *firstE = &target [0]){
         GetCoords ((IntPtr) firstE, range);
     }
     return target;
 }
Beispiel #2
0
        public static unsafe MKPolygon FromCoordinates(CLLocationCoordinate2D [] coords, MKPolygon [] interiorPolygons)
        {
            if (coords == null)
                throw new ArgumentNullException ("coords");
            if (coords.Length == 0)
                return _FromCoordinates (IntPtr.Zero, 0);

            fixed (CLLocationCoordinate2D *first = &coords [0]){
                return _FromCoordinates ((IntPtr) first, coords.Length, interiorPolygons);
            }
        }
Beispiel #3
0
        public static unsafe MKGeodesicPolyline FromCoordinates(CLLocationCoordinate2D [] coords)
        {
            if (coords == null)
                throw new ArgumentNullException ("coords");
            if (coords.Length == 0)
                return PolylineWithCoordinates (IntPtr.Zero, 0);

            fixed (CLLocationCoordinate2D *first = &coords [0]){
                return PolylineWithCoordinates ((IntPtr) first, coords.Length);
            }
        }
Beispiel #4
0
 static extern bool CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord);
Beispiel #5
0
 public static extern MKCoordinateRegion FromDistance(CLLocationCoordinate2D center, /* CLLocationDistance */ double latitudinalMeters, /* CLLocationDistance */ double longitudinalMeters);
Beispiel #6
0
 // MKCoordinateRegionMake
 public MKCoordinateRegion(CLLocationCoordinate2D center, MKCoordinateSpan span)
 {
     this.Center = center;
     this.Span = span;
 }
Beispiel #7
0
 public static extern MKMapPoint FromCoordinate(CLLocationCoordinate2D coordinate);