| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
If you follow my suggestion then I think this change makes sense, even if it is breaking. Make sure to add documentation to the interface you're modifying though.
Sorry, something went wrong.
| listener.onMapMarkerClick(airMarker); | ||
| } | ||
| return false; | ||
| return listener.onMakerClickEventIsHandled(); |
There was a problem hiding this comment.
Why not add a return value to onMapMarkerClick instead? Seems more idiomatic.
Sorry, something went wrong.
There was a problem hiding this comment.
I pushed a change that addressed this comment
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR allows adds an option for users to handle onMarkerClick() event, so that the default behavior should not occur. The default behavior is for the camera to move to the marker once it's clicked. (https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMap.OnMarkerClickListener). This is a breaking change because it requires people who uses this library to implement onMarkerClickEventIsHandled()
I'm making a change for Explore Map to disable the behavior where the map centers on a marker once it's clicked. This is how this change looks on the demo map. Note that the map doesn't center on the markers when I click them.