Esempio n. 1
0
 public FlyoverMapViewController(
     Flyover flyover,
     MKMapType mapType = MKMapType.Satellite,
     FlyoverCameraConfiguration configuration = null)
 {
     if (configuration == null)
     {
         configuration = new FlyoverCameraConfiguration(FlyoverCameraConfigurationTheme.Default);
     }
     FlyoverMapView = new FlyoverMapView(mapType, configuration);
     Flyover        = flyover;
     FlyoverMapView.Start(flyover);
 }
Esempio n. 2
0
 public FlyoverMapView(
     MKMapType mapType = MKMapType.Satellite,
     FlyoverCameraConfiguration configuration = null)
 {
     //this.Frame = CGRect.Empty; //super.init(frame: .zero)
     // Set flyover map type
     FlyoverMapType = mapType;
     if (configuration == null)
     {
         configuration = new FlyoverCameraConfiguration(FlyoverCameraConfigurationTheme.Default);
     }
     FlyoverCamera = new FlyoverCamera(this, configuration);
     // Hide compass on iOS
     ShowsCompass   = false;
     ShowsBuildings = true;
 }
        public static MapCartographicMode ToMapCartographicMode(this MKMapType mapType)
        {
            switch (mapType)
            {
            case MKMapType.Standard:
                return(MapCartographicMode.Road);

            case MKMapType.Satellite:
                return(MapCartographicMode.Terrain);

            case MKMapType.Hybrid:
                return(MapCartographicMode.Hybrid);

            default:
                throw new ArgumentException("mapType");
            }
        }
Esempio n. 4
0
 public MKMapTypeMapping(MKMapType mapType, string title, int position)
 {
     this.Position = position;
     this.Title    = title;
     this.MapType  = mapType;
 }