You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-2Lines changed: 54 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,11 +218,63 @@ let camera = FlyoverCamera(
218
218
```
219
219
220
220
## FlyoverMapView
221
-
`Coming soon`
221
+
The `FlyoverMapView` is a preconfigured `MKMapView` with an embedded `FlyoverCamera`. The `FlyoverMapView` offers various convenience functions for example starting a flyover with a `MKAnnotation` object or setting a supported Flyover `MapType`.
222
222
223
+
```swift
224
+
// Initialize with default configuration theme and standard MapType
225
+
let flyoverMapView =FlyoverMapView()
226
+
227
+
// Or initialize by setting a different theme and the satelliteFlyover MapType
228
+
let flyoverMapView =FlyoverMapView(configurationTheme: .farAway, mapType: .satelliteFlyover)
229
+
```
230
+
231
+
### MapType
232
+
The `FlyoverMapView.MapType` specifies the three supported `MKMapType`'s.
233
+
234
+
| MapType | Description |
235
+
| ------------- | ------------- |
236
+
| standard | A street map that shows the position of all roads and shows 3D buildings |
237
+
| satelliteFlyover | A satellite image of the area with road and road name information layered on top |
238
+
| hybridFlyover | A hybrid satellite image with flyover data where available |
223
239
224
240
### FlyoverMapViewController
225
-
`Coming soon`
241
+
The `FlyoverMapViewController` is an easy and simple way to just present a `UIViewController` with an embedded `FlyoverMapView`. You can use it if you just want to present a 360° flyover on a given `Flyover` type.
242
+
243
+
```swift
244
+
// Initialize a location
245
+
let eiffelTower =CLLocationCoordinate2DMake(48.858370, 2.294481)
246
+
247
+
// Initialize the FlyoverMapViewController with a Flyover object
248
+
let controller =FlyoverMapViewController(flyover: eiffelTower)
249
+
250
+
// Present controller
251
+
self.present(controller, animated: true)
252
+
```
253
+
254
+
Additionally you can initialize the `FlyoverMapViewController` with your own `Configuration` or `Configuration.Theme` and a `MapType`
255
+
256
+
```swift
257
+
// Initialize a location
258
+
let eiffelTower =CLLocationCoordinate2DMake(48.858370, 2.294481)
0 commit comments