Oleg Bolshakov
Oleg Bolshakov

Reputation: 11

Google Maps iOS custom UIView instead of a marker

I'm looking for a way to use a custom UIView (not just a custom image) instead of default marker provided by Google Maps iOS SDK. Basically I need a possibility to place my UIView agains proper coordinates of the map, so not necessarily to use markers as they are, just any suitable solution. Any ideas?

Upvotes: 1

Views: 1072

Answers (2)

Muhammad Nayab
Muhammad Nayab

Reputation: 1742

The marker only shows an image. So it cannot take a CustomView. Moreover, if your custom view has some sort of button on it there is no way you can track the events from those button.

In simple words the map renders the markers as UIImage.

Upvotes: 0

Leperkawn
Leperkawn

Reputation: 304

There is not currently a way to do this. You can view the relevent feature request (and star it, to show interest) here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5203

Upvotes: 2

Related Questions