0

Android の Google マップに画像をオーバーレイとして配置しています。画像の原点を座標に合わせて画像が表示されますか? それを制御する方法はありますか?画像の中心をオーバーレイ座標にしたい場合、どうすればよいですか?

どうもありがとう

4

1 に答える 1

1
//This will make the center of the image to be at the coordinates.

public abstract class CustomOverlay<Item extends OverlayItem> extends ItemizedOverlay<Item> {

public CustomOverlay(Drawable defaultMarker, MapView mapView) {
    super(boundCenter(defaultMarker), mapView); 
    .
    .
    .

}
于 2012-05-22T06:32:28.933 に答える