An Android Overlay for drawing the user's current location (and accuracy) on the map, and/or a compass-rose inset.
Questions tagged [mylocationoverlay]
76 questions
14
votes
8 answers
Android MapActivity : Couldn't get connection factory client
I'm trying to get the Map demos working, as provided in the Google API
sample projects. I am using AVDs and have tried with versions 8, 10
and 11 and get the same issue.
I've generated my own debug key and added to the project. I can see
the map…

electricSunny
- 3,229
- 4
- 19
- 21
6
votes
5 answers
Android My Location-Fix
When my map activity is called I make a call in the onCreate to addUserMapPoint. This function contains two instances where I try to get the location information using myOverlay.getMyLocation. On the initial load of this activity the result of the…

ItBHarsH
- 115
- 1
- 2
- 6
6
votes
2 answers
MyLocationOverlay or LocationManager for updating current location
I am using MapView to show current location of a user on a Map. To update the location while the user is on the move, I have to a choice:
I can use MyLocationOverlay to draw the current location and extend it to allow tracking of the users location…

andy
- 484
- 8
- 21
5
votes
2 answers
Google Maps API Android v2 - "ACCESS_FINE_LOCATION" permission required with my-location layer enabled
I want to show the location of the user on a Google Maps enabling my-location layer, but this functionality requires the "ACCESS_FINE_LOCATION" permission to get the location from the GPS.
Is it possible to prevent the GoogleMap from trying to get…

Donkey
- 1,176
- 11
- 19
4
votes
1 answer
How to implement live update on user's current location?
I am using MyLocationOverlay to display the current location. However, it takes a while for the location to get updated. I wanted to implement something like the "follow me" feature on iPhone wherein the location of the user is also moving as the…

Arci
- 6,647
- 20
- 70
- 98
4
votes
2 answers
Turn off auto-recenter feature in MyLocationOverlay component
I have a problem with GoogleMap API for Android component MyLocationOverlay. I want to turn off MyLocationOverlay auto-recenter feature (to current user location) every time device location changes (and user location goes out of the visible part or…

Ignas T.
- 63
- 6
4
votes
1 answer
MyLocationOverlay disableMyLocation() not seeming to work
Just wasted 3 hours trying to figure out why the GPS icon is still showing up in the notification bar when my map activity is paused. I've narrowed it down to having to do with the MyLocationOverlay object I'm using (I also have a LocationListener…

NSjonas
- 10,693
- 9
- 66
- 92
4
votes
1 answer
Android Google Maps API V2: How to change my location icon?
In Google Map API v1, I can change My Location icon by write a class extends MyLocationOverlay. But I don't know how to do it in Google API v2.
Please help me solve this issue.

VAdaihiep
- 521
- 9
- 19
3
votes
3 answers
Update MapView from onLocationChanged()
I have an issue drawing a route when onLocationChanged().
So what I'm trying to do is:
I have a pin (based on carOverlayItem) on the map and MyLocationOverlay showing my current position. I want to draw a route between those two points.
So, each…

Dmitry
- 227
- 3
- 12
3
votes
1 answer
MyLocationOverlay is deprecated, any alternative?
MyLocationOverlay is deprecated. Is there any alternative?
MapView mapView;
MyLocationOverlay myLocationoverlay;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

Behy
- 483
- 7
- 23
3
votes
2 answers
Android: how to check if myLocation is visible on the map at the current zoom level?
I have a Google map where as the user moves around the blue dot (myLocation) moves - standard behaviour. This works well until the user moves beyond the bounds of the current zoom level - and the blue dot disappears off one of the edges of the map.…

Jon
- 7,941
- 9
- 53
- 105
3
votes
0 answers
Mylocation not works in Galaxy tab p1300
This is my map activity class .In this application mylocation works perfectly on Google nexus phone but not works in galaxy tab P3100 .I checked the wifi connection before running the application.And I enabled 1.Use gps satellites,2.Location and…

TamiL
- 2,706
- 4
- 24
- 44
3
votes
0 answers
Android MyLocationOverlay - marker disappear after a period of time
I want to show the user's location on a map view. Therefore I use 'MyLocationOverlay. The marker appears on the map view and will be updated/moved when the location of the user changes.
But if the onLocationChanged method will not be triggered for…

Tobi Weißhaar
- 1,617
- 6
- 26
- 35
3
votes
2 answers
Draw accuracy circle using MyLocationOverlay
I am working on an Android application that shows a map with the user's location, and so far I am able to show the map online and offline. Now I want to know how I can draw an accuracy circle that appears with the marker in osmdroid using…

harhouf
- 117
- 3
- 9
2
votes
2 answers
How can I use a custom bitmap for the "you are here" point in a MyLocationOverlay?
I've poured over the docs and haven't been able to figure this out. Is it even possible?
Please see this

Jeremy Logan
- 47,151
- 38
- 123
- 143