Custom My location button of google maps in swift

Viewed 17

Needs to create a custom button to center the map on a marker when user tap on it.

The same behavior as the usual My location Button of google maps but I need to create a custom one, in order to do that I created it inside the view and had the idea to make a function as a parameter for the google maps UIViewRepresentable.

Google Maps Default My Location Button

Google Maps Default My Location Button.

The My Location Button I want to achieve

The My Location Button I want to achieve.

0 Answers
Related