2013-07-11 107 views

回答

0

警告:不是基於Google API docs專家

,聽起來像是你需要調整的軸承,如GroundOverlay#setBearing描述。

公共最終類的GroundOverlay

地面疊加層是固定到地圖圖像。甲地面疊加 具有以下性質:

...

軸承

,圖像應在順時針方向上旋轉的量。旋轉的中心將是圖像的錨點。這個 是可選的,並且默認軸承是0,即,圖像對齊 ,以使得向上是北。

例子:

GoogleMap map = ...; // get a map. 
BitmapDescriptor image = ...; // get an image. 
LatLngBounds bounds = ...; // get a bounds 
// Adds a ground overlay with 50% transparency. 
GroundOverlay groundOverlay = map.addGroundOverlay(new GroundOverlayOptions() 
    .image(image) 
    .positionFromBounds(bounds) 
    .transparency(0.5)); 
+0

其實,這裏是已經發布的SO題爲[Android的旋轉的MapView]答案(http://stackoverflow.com/questions/6028999/android-rotating-mapview)。完成代碼,但與上面一樣。其中一個答案也提到了在android sdk中做這個的示例代碼。祝你好運! – wmorrison365

+0

但我沒有使用MapView。我正在開發新的API。谷歌地圖。 –

+0

啊,好吧,然後道歉誤導環節。在這種情況下,我認爲我的答案中的兩個參考文獻應該提供良好的領導。我會爲答案添加信息。 – wmorrison365

相關問題