Android地图叠加精确坐标

时间:2012-05-22 06:22:24

标签: android map overlay

我将图片作为重叠放在Android谷歌地图上。图像是否在坐标处对齐图像的原点?有没有办法控制它?如果我希望图像的中心位于叠加坐标,我该怎么办?

非常感谢

1 个答案:

答案 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); 
    .
    .
    .

}
相关问题