Beispiel #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);
 }
 public FlyoverCamera(
     MKMapView mapView,
     FlyoverCameraConfiguration configuration = null)
 {
     _mapView = mapView;
     if (configuration == null)
     {
         configuration = new FlyoverCameraConfiguration(FlyoverCameraConfigurationTheme.Default);
     }
     Configuration = configuration;
     State         = FlyoverCameraState.Stopped;
     _notificationTokenWillResign      = UIApplication.Notifications.ObserveWillResignActive(ApplicationWillResignActive);
     _notificationTokenDidBecomeActive = UIApplication.Notifications.ObserveDidBecomeActive(ApplicationDidBecomeActive);
 }
Beispiel #3
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;
 }