ios - open infowindow on google maps marker when app launch -
i'm new ios development google maps sdk ios.
i'm working on iphone application & want open info window of google map markers when app launching. (pop info window default, without clicking on marker balloon).
is there way accomplish task?
here code:
gmsmarker *marker = [[gmsmarker alloc] init]; marker.flat = yes; marker.appearanimation=yes; marker.position = cllocationcoordinate2dmake(lt,ln); marker.title = name; marker.snippet = type; [self.mapview setselectedmarker:marker]; marker.map = self.mapview;
where calling code? might want try putting in viewwillappear
or viewdidappear
. may setting selected marker doesn't work until after map has started rendering.
Comments
Post a Comment