こんにちは私はアンドロイドのGoogleマップにマーカーを表示するために、このマーカーのサイズを変更したバージョン(http://www.clker.com/clipart-orange-pin-4.html)を使用しています。android custom map marker bounds
問題は、マーカーポイントを座標に一致させる方法がわかりません。 矢印ポイントは幅座標の約1/5、高さのMAXです。ここ
は私のクラスである
public class GestionaleItemizedOverlay extends com.google.android.maps.ItemizedOverlay {
public GestionaleItemizedOverlay(Drawable defaultMarker, Context context) {
//super(boundCenterBottom(defaultMarker));
super(boundCenter(defaultMarker));
this.mContext = context;
}
...
そしてこの
this.marker_poi = this.getContext().getResources().getDrawable(R.drawable.marker);
this.marker_poi.setBounds(this.marker_poi.getIntrinsicWidth()/2, this.marker_poi.getIntrinsicHeight(), this.marker_poi.getIntrinsicWidth()/2, 0);
new GestionaleItemizedOverlay(this.poi, this.context);
iは、コンストラクタに渡す前に、マーカーの上にsetBoundsする必要がありますか? super(defaultMarker)がすべてのマーカーを表示しないのはなぜですか?
?! !!左側の境界か正しい位置ですか?この答えは何も説明していない – max4ever