2

Does anyone have ideas of how to style the info window's text and background. They're the lollipops that show when you touch on a pin?

Also, I'm looking for a creative way to programmatically force the info window to display. Any suggestions?

Thanks...

p.s. Yay! It's here!

4

2 回答 2

1

GMSMapView.hGMSMapViewDelegate

/**
* Called when a marker is about to become selected, and provides an optional
* custom info window to use for that marker if this method returns a UIView.
* If you change this view after this method is called, those changes will not
* necessarily be reflected in the rendered version.
*
* The returned UIView must not have bounds greater than 500 points on either
* dimension.  As there is only one info window shown at any time, the returned
* view may be reused between other info windows.
*
* @return The custom info window for the specified marker, or nil for default
*/
- (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(id<GMSMarker>)marker;
于 2013-02-22T18:36:57.010 回答
0

谷歌的文档并没有给出这个明显的答案,因此扩展了上面@s12chung 的指导,这里是如何以编程方式使信息窗口可见(对于其他试图这样做的人)

GMSMarkerOptions *pin = [[GMSMarkerOptions alloc] init];
self.mapView.selectedMarker = [self.mapView addMarkerWithOptions:pin];
于 2013-02-22T21:22:39.353 回答