README.md in ProMotion-map-0.4.2 vs README.md in ProMotion-map-0.5.0
- old
+ new
@@ -175,12 +175,12 @@
#### clear_annotations
Removes all annotations from the `MapScreen`.
-#### zoom_to_fit_annotations(animated=true)
+#### zoom_to_fit_annotations({animated:true, include_user:false})
-Changes the zoom and center point of the `MapScreen` to fit all the annotations.
+Changes the zoom and center point of the `MapScreen` to fit all the annotations. Passing `include_user` as `true` will cause the zoom to not only include the annotations from `annotation_data` but also the user pin in the zoom region calculation.
#### set_region(region, animated=true)
Sets the region of the `MapScreen`. `region` should be an instance of `MKCoordinateRegion`.