Default show the title of marker in Google Map API
Asked Answered
N

1

5

I have added a marker as the following:

marker = [GMSMarker markerWithPosition:desLocation];
marker.title = @"Title";
marker.appearAnimation = kGMSMarkerAnimationPop;
marker.snippet = @"Snippet";
[marker setMap:mapView];

It's OK!! But if i want to show the title and snippet of this marker, i have to tap on the marker. So, how could the GMSMapView show the marker's title and snippet automatically without tapper.

Tks for all help!!

Nocuous answered 19/12, 2013 at 17:35 Comment(0)
D
9

Just call:

[mapView setSelectedMarker:marker];

That should do what you want.

Duppy answered 19/12, 2013 at 19:21 Comment(1)
You can't show the title of multiple markers with this.Ticklish

© 2022 - 2024 — McMap. All rights reserved.