[ios, macos] Updated MGLImageSource example

Ran make darwin-update-examples to ensure that headers reflect the tested example code.
This commit is contained in:
Minh Nguyễn
2017-12-21 00:29:09 -08:00
committed by Minh Nguyễn
parent 1b407e85e9
commit 3685cb3589

View File

@@ -38,11 +38,8 @@ MGL_EXPORT
bottomLeft: CLLocationCoordinate2D(latitude: 37.936, longitude: -80.425),
bottomRight: CLLocationCoordinate2D(latitude: 37.936, longitude: -71.516),
topRight: CLLocationCoordinate2D(latitude: 46.437, longitude: -71.516))
let source = MGLImageSource(identifier: "radar-source", coordinateQuad: coordinates, url: URL(string: "https://www.mapbox.com/mapbox-gl-js/assets/radar.gif")!)
let source = MGLImageSource(identifier: "radar", coordinateQuad: coordinates, url: URL(string: "https://www.mapbox.com/mapbox-gl-js/assets/radar.gif")!)
mapView.style?.addSource(source)
let layer = MGLRasterStyleLayer(identifier: "radar-layer", source: source)
style.addLayer(layer)
```
*/
MGL_EXPORT