ivan.panasiuk
ivan.panasiuk

Reputation: 1259

call onMapReady manualy in Google Map Api ver2 for Android

I'm using Google Map Api ver 2 in Android app. I have implemented drawing marker in call onMapReady(GoogleMap googleMap) and it works fine.

After changing marker cooridnates in the same fragment I would like manually to initialize onMapReady(). Any have idea how to implement this?

Upvotes: 0

Views: 3717

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006644

Step #1: Move the "drawing marker" code into a separate method.

Step #2: Call that method from onMapReady().

Step #3: Call that method "after changing marker coordinates in the same fragment".

Upvotes: 2

Related Questions