Questions tagged [mylocationoverlay]

An Android Overlay for drawing the user's current location (and accuracy) on the map, and/or a compass-rose inset.

76 questions
0
votes
1 answer

Android: custom compass image only partially redraws

I am looking to draw my own compass image on a MapView by subclassing MyLocationOverlay. The custom image needs to be larger than the default image shown by MyLocationOverlay. I override drawCompass and use my own drawables (bitmaps) to draw the…
stephent
  • 1,355
  • 15
  • 29
0
votes
1 answer

Get coordinate values from myLocationOverlay in Android

I have an app that uses a map to show a certain, fixed, location. With the next update I'd like to show the route from the users current location to this fixed point. I already managed to get the users location via myLocationOverlay. As far as I…
0
votes
1 answer

How to use a custom compass image android

Let me start by saying that I have seen this thread: How can I replace the Compass image of MyLocationOverlay? According to that thread, it tells me that I can't override the icon. Not a big deal. That said, I'm trying to figure out a way to…
Sorean
  • 985
  • 16
  • 27
0
votes
2 answers

MyLocationOverlay disappear problem next time loading activity?

friends, i have noticed one thing when my location is same MyLocationOverlay marker is not displayed on screen. i have tested it when i change emulator location values it is appeared on screen i go to next page then come to same page again and it is…
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
0
votes
1 answer

Is there a way to turn off the blue circle while using MyLocationOverlay in android

I am currently using MyLocationOverlay to display my location. While being on MapView I am forcing the GPS to be turned on as well. However the blue circle around the marker is beyond annoying and I was curious if there's a way to remove it? Thanks…
Rajat Anantharam
  • 495
  • 1
  • 3
  • 17
0
votes
2 answers

using geocoder with myLocationOverlay

i try to get the current zip code from the longitude and latitude which MyLocationOverlay delivers and set this to a EditView on my Activity. The Activity crashs when i try to get the longitude and latitude from MyLocationOverlay. Whats wrong with…
float
  • 1,265
  • 5
  • 22
  • 38
0
votes
2 answers

Modifying mylocationoverlay Color in Android

Is it possible to modify the color scheme of mylocationoverlay I want to conver the blinking dot into red color. Please guide me how can I make it possible.
Siddiqui
  • 7,662
  • 17
  • 81
  • 129
0
votes
0 answers

Runnable for myLocationOverlay.runOnFirstFix not called and getMyLocation() is null

I am trying to get the current location and display it on a OSMdroid map inside an Android application. But I get no location and a Runnable that is supposed to be called the first time the location is found is never called. I have tried different…
bMain
  • 324
  • 3
  • 11
0
votes
1 answer

Take Lat and Long from MyLocationOverlay?

I can see where I am via MyLocationOverlay, but I want use MapController.setCenter(geopoint) to take latitude and longitude of the place where I am. Also is possible to take the upper left corner and bottom right corner coordinates of the…
eddie skywalker
  • 189
  • 1
  • 5
  • 16
0
votes
2 answers

MyLocationOverlay dissappears, is not there onResume

I have a mapView to which I add a MyLocationOverlay. It displays fine when the app starts from scratch (goes through onCreate). If I exit the app (back button) and then start it again (onResume), the overlay is gone. I have tried to fix this for…
paulpooch
  • 651
  • 1
  • 7
  • 15
0
votes
1 answer

Android Gmaps prompt user to enable gps on MyLocationButton click

The problem: MyLocationButton is enabled on Google Maps and GPS is off. When the user clicks on it, it just fails silently. This is a quite bad user interaction. I would like it to prompt the user to change GPS settings (like it actually does on…
ClonedOne
  • 569
  • 4
  • 20
0
votes
2 answers

Receive location updates of OSMdroid's MyLocationNewOverlay

I am using the MyLocationNewOverlay to show the user's current location. I already managed to place a marker, when the location is found for the first time (e.g. when the runOnFirstFix() function is called: /* set start location */ mapController =…
arne.z
  • 3,242
  • 3
  • 24
  • 46
0
votes
0 answers

Google maps padding does not take into account my location

i have applied padding to google maps from bottom , it takes into consideration google logo and my location square button. But unfortunately it does not take into consideration my location blue circle (blue dot at center) it does not move up…
Harshal Bhavsar
  • 1,598
  • 15
  • 35
0
votes
1 answer

OsmDroid MyLocationNewOverlay.enableMyLocation() cause memory leak

There is a memory leak in my app that is using OsmDroid. After some search, I found the leak is caused by the MyLocationNewOverlay.enableMyLocation() method: mMyLocationNewOverlay.enableMyLocation(); If I comment that line out, there will be no…
Benjamin Ting
  • 611
  • 7
  • 16
0
votes
0 answers

How can I be notified when Google Maps My Location layer loses user location?

After calling setMyLocationEnabled(true) on a GoogleMap, I see a blue dot indicating the user's current location. If I disable GPS and enable airplane mode, this blue dot remains visible on the map for 1-2 minutes before disappearing (and,…
stkent
  • 19,772
  • 14
  • 85
  • 111