2

I am working on an Android app where players battle each on their phones in real-time based on their location. On Google maps, you can see where you are, in what direction you are facing, and where you are moving, all from a little blue dot. My question is: How can I integrate something like that in my app, so when the player moves, you can see it on the Google Maps fragment?

Edit: Currently, my application drops a new pin every time your location updates. I'm looking for something that moves the pin rather then adding a new one.

Nathan Bird
  • 910
  • 1
  • 9
  • 23
  • @halfer Yes, what I'm doing right now is re-centering the map every time the user's lat/long changes. What I need is something that doesn't just represent the camera, but represents the user. – Nathan Bird Oct 03 '16 at 22:55
  • I will try not to! For newbies, I agree Stack Overflow is rather different - people correct spellings/case in other people's posts, trim and change them - but it is actually intended to be helpful, and makes them more readable, succinct or whatever other improvement. We try to discourage voting commentary in posts and sigs/thanks - they are longstanding editing/writing guidelines and you're not being singled out. – halfer Oct 04 '16 at 07:47

1 Answers1

1

I found a temporary solution! What I'm doing now is calling map.clear(), and then adding new markers to the places I need... I decided this was best because I am dynamically creating new ones, and not just working with an array, or single marker.

Nathan Bird
  • 910
  • 1
  • 9
  • 23