开发者

gps marker on google maps android

I am developing an application which shows the current location of the user. I want to display a marker on the current location of the user.

I have used an image as marker to display current location. But i want to display an animated arrow show开发者_运维知识库ing the range just like in the google maps android app. Can anyone please tell me how to achieve this. Any sample code will be of great help...


try this tricky solution... if u use javascript, try setInterval() to cahnge image if .gif doesn't work.

function runAnimation(callback){ setInterval(function(){ // set new marker here // var newVal = callback(); <-- use callback to get new value } , 500); // interval in millisec }

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜