2

情報ウィンドウのテキストと背景のスタイルを設定する方法を知っている人はいますか。ピンに触れたときに表示されるロリポップですか?

また、プログラムで情報ウィンドウを強制的に表示するクリエイティブな方法を探しています。助言がありますか?

ありがとう...

psイェーイ!ここにあります!

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 に答える