diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-08-12 14:45:37 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-08-12 14:45:37 -0700 |
commit | 772238a2296d2c0b92c19eefaa97b1e9ea096d95 (patch) | |
tree | 0383cbc60f4b12f3db1b1d1a84bc92dae5bd76ba /include/mbgl | |
parent | d4159d51419ae59824c1a20cb682d2a66150a7ea (diff) | |
download | qtlocation-mapboxgl-772238a2296d2c0b92c19eefaa97b1e9ea096d95.tar.gz |
fixes #2044: add -showAnnotations:animated:
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/ios/MGLMapView.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h index 212a439839..913d497631 100644 --- a/include/mbgl/ios/MGLMapView.h +++ b/include/mbgl/ios/MGLMapView.h @@ -151,6 +151,13 @@ IB_DESIGNABLE * @param animated Specify `YES` to animate the change by smoothly scrolling and zooming or `NO` to immediately display the given bounds. */ - (void)setVisibleCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSUInteger)count edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated; +/** Sets the visible region so that the map displays the specified annotations. +* +* Calling this method updates the value in the visibleCoordinateBounds property and potentially other properties to reflect the new map region. +* @param annotations The annotations that you want to be visible in the map. +* @param animated `YES` if you want the map region change to be animated, or `NO` if you want the map to display the new region immediately without animations. */ +- (void)showAnnotations:(NS_ARRAY_OF(id <MGLAnnotation>) *)annotations animated:(BOOL)animated; + /** The heading of the map (measured in degrees) relative to true north. * * The value `0` means that the top edge of the map view corresponds to true north. The value `90` means the top of the map is pointing due east. The value `180` means the top of the map points due south, and so on. */ |