summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-12-21 00:29:09 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-12-21 12:02:20 -0800
commit3685cb35898cbcb6d34af2a7f49eff345083f487 (patch)
tree7839507c6ca3fcf615b198c95e794137dedf97c9
parent1b407e85e9ee03124e24b71a856045c254775e6e (diff)
downloadqtlocation-mapboxgl-3685cb35898cbcb6d34af2a7f49eff345083f487.tar.gz
[ios, macos] Updated MGLImageSource example
Ran make darwin-update-examples to ensure that headers reflect the tested example code.
-rw-r--r--platform/darwin/src/MGLImageSource.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLImageSource.h b/platform/darwin/src/MGLImageSource.h
index 5088f6bac0..21487d9739 100644
--- a/platform/darwin/src/MGLImageSource.h
+++ b/platform/darwin/src/MGLImageSource.h
@@ -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