开发者

Android draw marker in runtime or at on LocationChange?

开发者 https://www.devze.com 2023-01-14 22:51 出处:网络
It is possible to draw markers in runtime or at onLocationChange event,开发者_JAVA百科 not on Create event?If by \"draw markers at runtime\", you mean \"add items to an ItemizedOverlay on a MapView\",

It is possible to draw markers in runtime or at onLocationChange event,开发者_JAVA百科 not on Create event?


If by "draw markers at runtime", you mean "add items to an ItemizedOverlay on a MapView", then, yes, you can update these whenever you want. Just call populate() again on your ItemizedOverlay. Here is a sample project that demonstrates loading overlay items asynchronously.

0

精彩评论

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