Daniel
Daniel

Reputation: 11

iOS How can I move googlemap marker to the front?

I added two marks on Google maps. Now the two markers are overlapping. I want the selected marker to be always in the front. That means when you select a marker this marker covers another marker. I looked at the Google maps development documentation, which does not provide the relevant API.

How can I do this?

the two overlapped markers

Upvotes: 1

Views: 1675

Answers (1)

Silas S. Caxias
Silas S. Caxias

Reputation: 96

A simple resolution is using the propertie zIndex, just set to 1.

customMark.zIndex = 1

For more informations, you can see https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_marker

Upvotes: 4

Related Questions