开发者

Can I always keep some static Markers in Android Map?

开发者 https://www.devze.com 2023-04-10 00:46 出处:网络
I\'m a newbie into Android programming... Here\'s what I\'m trying to do for a small academic project:

I'm a newbie into Android programming... Here's what I'm trying to do for a small academic project:

  • A google map displayed on screen: Done
  • Get user's current location and show on the map: Done
  • We've a list of Latitudes and Longitudes coming from a webservice, which forms a pre-defined path. I need to display an always-shown path on the map with static markers as per the list of Lat-Longs given. How?

I tried various ways, and searched various places, but couldn't find a satisfactory code or tut开发者_运维问答orial that has achieved the same. Can someone please point me to an appropriate resource that I can use to get the above?


Download and check for static marker..................

https://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk

http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.html


You need to implement Overlay and draw the path in the draw() method. Use this SO post to get an idea of how to do it.

0

精彩评论

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

关注公众号