summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2017-01-08 17:08:24 -0800
committerGitHub <noreply@github.com>2017-01-08 17:08:24 -0800
commit226054bf7186bed5269e7de5ca23f2e4bb2df002 (patch)
treed887bb4e42298aa4e7cb591917f6a7be8177ad1c /platform/ios
parent4cee2b1a698e71bfab17a65aab2f873ce50e83c6 (diff)
downloadqtlocation-mapboxgl-226054bf7186bed5269e7de5ca23f2e4bb2df002.tar.gz
Document requirement about adding sources and layers (#7634)
* [ios, macos] Document requirement about adding sources and layers Sources and layers added outside of mapView:didFinishLoadingStyle: and mapViewDidFinishLoadingMap: are not guaranteed to appear since the map may not be fully loaded and ready to accept new sources and layers. This also fixes a compiler warning in iosapp.
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/app/MBXViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index c28ecfbe8c..496c30efc9 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -1613,8 +1613,8 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) {
{
return;
}
-
- MGLPointAnnotation *point = annotation;
+
+ MGLPointAnnotation *point = (MGLPointAnnotation *)annotation;
point.coordinate = [self.mapView convertPoint:self.mapView.center toCoordinateFromView:self.mapView];
}