idish
idish

Reputation: 3260

iphone like location marker for android

As I know, iOS has a unique default marker presenting the user location (Marker that flashes some blue color)

Here's a picture: enter image description here

Is there something like it I can do in Android?

Upvotes: 1

Views: 614

Answers (2)

Black Frog
Black Frog

Reputation: 11713

You will have to extent the class MyLocationOverlay and override the drawMyLocation method.

Excerpt from Android Docs:

drawMyLocation - Draw the "my location" dot. By default, draws an animated "blue dot" asset, possibly surrounded by an outlining blue disk to represent accuracy. Also, if the user's position moves near the edge of the screen, and we've been given a MapController in our constructor, we'll scroll to recenter the new reading.

Upvotes: 2

manavo
manavo

Reputation: 1899

You'll need the MyLocationOverlay class. Here's a tutorial: http://joshclemm.com/blog/?p=148

Upvotes: 0

Related Questions