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
1
vote
1 answer

Searching GPS icon never disappears on retained Fragment in Android with MyLocationOverlay (osmdroid)

This is the situation: I have an activity with a PagerAdapter containing three fragments. This activity allows you to change the screen orientation. One of those fragments has mapView created with the osmdroid library, and this fragment is retained…
1
vote
1 answer

Maps V2 myLocation blue dot callback

I want to be able to click the blue dot (my location) that is shown on the map. Is there anyway to get a callback from that click? Thanks, Martijn
1
vote
1 answer

MyLocationOverlay causes endless redraws

I am experiencing an unusual behavior on my MapView, i am using RoboGuice by the way i am not sure it could influence the issue. The problem is, if i enable a MyLocationListener on my map, then every overlay on it gets continually redrawn ad…
TeamBanana
  • 179
  • 1
  • 10
1
vote
1 answer

android google maps my location

I have google maps activity where i would like to get my location but im facing NullPointerException... locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,…
windblow
  • 7
  • 5
1
vote
1 answer

getting location from service but myLocationOverlay doesn't work

I have a MapActivity that have to display my current position on the map using myLocationOverlay i get the location from a service. Here is my Activity: public class ShowMapActivity extends MapActivity { private MapController mapController; private…
Kalimero95
  • 43
  • 1
  • 9
1
vote
1 answer

Clickable MyLocationOverlay

Is it possible to make the MyLocationOverlay marker clickable? I have to launch a spinner when the overlay marker is clicked. myLocationOverlay.setTouchEventListener(new OverlayTouchEventListener() { @Override public void…
1
vote
0 answers

Android: Compass too far in map

In Android I use the MyLocationOverlay to enable the Compass, but the problem is, that on a HTC Wildfire, the compass is too far into the screen (see screenshot). On a larger screen, for example the Galaxy S3, the compass is exactly in the top…
user934779
  • 303
  • 1
  • 8
  • 14
1
vote
2 answers

Get MyLocationOverlay from osmdroid MapView

Im creating an app where you can toggle the FollowLocation on and off using MyLocationOverlay. My problem is, when i've already set the MyLocationOverlay earlier, and want to turn on the FollowLocation, but i cant seem to find/get the…
Drublic
  • 660
  • 1
  • 9
  • 23
1
vote
1 answer

Stop myLocationOverLay.runOnFirstFix

how can i stop the locationoverlay.runonfirstfix when pass 30 seconds? I think with a handler but how can implement that on this? miPunto.runOnFirstFix(new Runnable() { @Override public void run() …
colymore
  • 11,776
  • 13
  • 48
  • 90
1
vote
1 answer

MyLocationOverlay in osmdroid

I'm working in an android mapping application using osmdroid mapping API, until now I'm being able to show the map(using MapView class) ,but I want to know how I can show my location on the map ,after I read about it I know that there is a class…
harhouf
  • 117
  • 3
  • 9
0
votes
1 answer

Android Mapview MyLocationOverlay Always drawn on top

I have a mapview, with the MyLocationOverlay, and other overlays. MyLocationOverlay is drawn under the other overlays, I want it on top. How can I change that? Is there any option to sort the overlays?
Senén
  • 21
  • 2
  • 9
0
votes
1 answer

Can't get geopoint when using class MyLocationOverlay

I can't marker current location... Apps always get messeger "Cannot determine location". I run app on Samsung galaxy mini and i was turn on GPS :( Class FixedMyLocationOverlay public class FixedMyLocationOverlay extends MyLocationOverlay { …
bulubuloa
  • 597
  • 1
  • 10
  • 21
0
votes
1 answer

How to access MyLocationOverlay's canvas?

I override the drawMyLocation of MyLocationOverlay to display an arrow as marker instead of the normal blue dot. However, I also need to change the direction to which the pointer is pointing depending on the sensor of the phone. I decided to call…
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
2 answers

Return null with myLocationOverlay.getMyLocation();

Im trying to get milocation with the method myLocationOverlay.getMyLocation(); but it always return me null, i tried with gps enabled,disabled,network enabled, both enabled but always return null. Anyone can help me? I put all my class if this can…
colymore
  • 11,776
  • 13
  • 48
  • 90
0
votes
1 answer

mylocationoverlay disappears first time it find location

I am trying to setup a mylocationoverlay. Unfortunately, it is acting quite strangely. It works fine, except it does not appear until after I leave the MapActivity and come back in my application. Initially the map appears and there is a blue…
akhalsa
  • 2,303
  • 3
  • 25
  • 43