From 226054bf7186bed5269e7de5ca23f2e4bb2df002 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Sun, 8 Jan 2017 17:08:24 -0800 Subject: 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. --- platform/ios/app/MBXViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/ios') 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]; } -- cgit v1.2.1