开发者

Android update ONE marker ONLY in Mapview, how?

Is there a way to update one of my marker's position 开发者_如何学编程on a mapview?

How?

thanks, Leslie


 public final class CustomdOverlayItem extends OverlayItem {
     void setPoint(GeoPoint point) {
         mPoint = point;
     }
 }

And do not forget to call populate() and draw() methods in your ItemizedOverlay after this thing.

Maybe more useful and safer would be remove previous OverlayItem object, create new one with appropriate coordinates and then apply it to your map?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜