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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -