我将图片作为重叠放在Android谷歌地图上。图像是否在坐标处对齐图像的原点?有没有办法控制它?如果我希望图像的中心位于叠加坐标,我该怎么办?
非常感谢
答案 0 :(得分: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);
.
.
.
}