开发者

Android update ONE marker ONLY in Mapview, how?

开发者 https://www.devze.com 2023-04-01 00:28 出处:网络
Is there a way to update one of my marker\'s position 开发者_如何学编程on a mapview? How? thanks,

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

精彩评论

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

关注公众号