当前位置图钉大小我有这样的方法来设置当前位置的图钉地图:安卓:根据精度
private void createPushPinOnMap(Canvas canvas, MapView mapView, BOMPushpin pushpin) {
Location location = currentBestLocation;
float accuracy = location.getAccuracy();
Point pointPts = mapView.getProjection().toPixels(new GeoPoint(pushpin.getLatitude(),
pushpin.getLongtitude()),
null);
Bitmap bmp1 = BitmapFactory.decodeResource(
context.getResources(), R.drawable.pushpin);
canvas.drawBitmap(bmp1, pointPts.x-10, pointPts.y-34, null);
}
但我需要更改此代码,所以图钉大小会莫名其妙地等于精度(像在maps.google.com位置图钉中)。