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
0
votes
1 answer
alert location services disabled when click mylocation button
I've enabled My Location button with this code in my google map
googleMap.setMyLocationEnabled(true);
When I click on My Location button
If the location services is disabled, related messages ("location services disabled") are not shown for me
I…

user3720375
- 78
- 5
0
votes
8 answers
google maps v2 center mylocation
I am having some prolems with my google maps app. For now the app was only suppost to get my location em zoom in it, but is not working. My location aways ends in the top of the map. Here is my code:
MainActivity:
public class MainActivity extends…

Lucas Legey
- 1
- 1
- 1
0
votes
1 answer
Android google map myLocationOverlay disappears?
I try to add myLocationOverlay to the map. It was not there at first, then when I send the gps position from the ddms, then the blue shining dot appear.
However, after awhile, the blue dot disappear and no where to be found. why?
How can I keep the…

Mak Sing
- 871
- 2
- 9
- 18
0
votes
1 answer
Cant get Geopoints to add to google map due to; Couldn't get connection factory client
I am getting this error while try to plot multiple Geopoint locations onto a google map. I am reading the latitude and longitude from a MySQL database through PHP and JSON. I have looked at the main examples, such as Couldn't get connection factory…

jibbajava
- 17
- 1
- 2
- 6
0
votes
0 answers
OnLocationChanged method not called in MyLocationOverlay when Gps is Off
On the documantation it says mylocationoverlay onlocationchanged method uses both gps and network provider when ACCESS_FINE_LOCATION permission defined. When Gps is on everything is fine, onlocationchanged working but when i close gps…

yturgun
- 183
- 1
- 2
- 10
0
votes
1 answer
Get reference to Android My Location Overlay Blue dot animation
Ok, So I am overwriting MyLocationOverlay in the hopes of removing the blue accuracy ring.
I am overwriting drawMyLocation()
@Override
protected void drawMyLocation(Canvas canvas, MapView mapView, Location lastFix, GeoPoint myLocation,…

Aiden Fry
- 1,672
- 3
- 21
- 45
0
votes
1 answer
MyLocatoinOverlay disableMyLocation or use OverlayItem
I have the following functionality working in my app.
I Use MyLocationOverlay to get my current location.
I extended MyLocationOverlay in order to be able to drop a custom marker instead of the blinking blue marker.
I need help on the last…

Byron
- 3,833
- 9
- 34
- 39
0
votes
1 answer
Android - How to add shadow in a custom MyLocationOverlay
I want to add a shadow to a custom marker for MyLocationOverlay. I have tried this using this question:
@Override
protected void drawMyLocation(Canvas canvas, MapView mapView, Location lastFix, GeoPoint myLocation, long when) {
…

Jorge Gil
- 4,265
- 5
- 38
- 57
0
votes
1 answer
Android: MyLocationOverlay.java -> Understanding issue
The mentioned class has got the following method:
protected void drawCompass(Canvas canvas, float bearing) {
int offset = Math.max(canvas.getHeight(), canvas.getWidth()) / 8;
Rect r = new Rect(0, 0, 2*offset, 2*offset);
…

anonymous
- 1,141
- 3
- 11
- 20
0
votes
2 answers
accuracy circle around the marker
I am working in android mapping application that’s used Osmdroid mapping API until now I am being able to show the map and the user location in the map , but how I can show the accuracy circle around the marker and is that can be testing in the…

harhouf
- 117
- 3
- 9
0
votes
1 answer
using MylocationOverlay in osmdroid
I can't make MyLocationOverlay work, I searched for it and tried many codes but not a single working one. I only get a black screen.
I need it to keep track of the user location.
I managed to track the user location with regular overlay but I notice…

Abdalwhab Bakheet
- 1,133
- 2
- 11
- 17
0
votes
1 answer
Android - Getting coordinates out of GeoPoint-Object
look at this:
MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this, mapView);
myLocationOverlay.enableMyLocation();
myLocationOverlay.enableCompass();
GeoPoint myGeoPoint = myLocationOverlay.getMyLocation();
That works…

user1451207
- 11
- 1
0
votes
1 answer
Make MyLocationOverlay compass point to a particular location
I'm trying to make MyLocationOverlay compass to point to a particular location. I want to show a direction from current user's location to a given location. So far I've managed to calculate a direction and pass it to MyLocationOverlay. But the…

droid8421
- 895
- 1
- 13
- 26
0
votes
3 answers
Draw route by getting my point to destination point
String uri = "http://maps.google.com/maps?saddr=" + src_lat+","+src_lon+"&daddr="+des_lat1+","+des_lon1;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps",…

Android Girl
- 2,074
- 3
- 22
- 29
0
votes
1 answer
To get coordinate from gps with Mylocation.getMyLocation() on a not mapacitivity
I am becoming crazy because i must get my position from gps, throught mMyLocationOverlay.getMyLocation() FROM a ListActivity AND NOT MapActivity. GetMyLocation wants context and mapview that i don't have. I tried to take a mapActivity but i get…

Andrea Catalini
- 152
- 8