Exemplo n.º 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;
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 4
0
 static extern bool CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord);
Exemplo n.º 5
0
 public static extern MKCoordinateRegion FromDistance(CLLocationCoordinate2D center, /* CLLocationDistance */ double latitudinalMeters, /* CLLocationDistance */ double longitudinalMeters);
Exemplo n.º 6
0
 // MKCoordinateRegionMake
 public MKCoordinateRegion(CLLocationCoordinate2D center, MKCoordinateSpan span)
 {
     this.Center = center;
     this.Span = span;
 }
Exemplo n.º 7
0
 public static extern MKMapPoint FromCoordinate(CLLocationCoordinate2D coordinate);