google maps sdk ios - How to change default camera behavior when marker is tapped? -
in release 1.2 of google maps ios sdk default behavior of tapped marker changed. release note says: "the default behavior when marker tapped has been updated pan camera marker's position"
how can old behavior back, i.e. not panning camera center position of marker?
add following method gmsmapview delegate implementation. gmsmapview no longer center on selected marker , brings existing behavior.
- (bool) mapview:(gmsmapview *)mapview didtapmarker:(gmsmarker *)marker { mapview.selectedmarker = marker; return true; }
Comments
Post a Comment