Overlay Disappears

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Overlay Disappears

Postby Paranoid » Sun Oct 26, 2008 5:30 pm

I have created a MyLocationOverlay to display the current GPS location on a MapView

it looks something like

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. myLO = new LocationOverlay(this, mapView);
  2.  
  3.                        myLO.enableMyLocation();
  4.  
  5.                        mapView.getOverlays().add(myLO);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


When I start my app it works fine and I can see the blue dot of my location. However if I leave the app running for a period of time the the blue dot eventually disappears.

Does anyone know why this is happening?

*edit* The only way I can get the dot to re-appear is to send new GPS coordinates in.
Paranoid
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sun Oct 19, 2008 5:10 pm

Top

Postby zagrey » Wed Dec 24, 2008 12:24 am

I have the same issue (can't see blue dot). Please, write the best practices here, if you will find a way to resolve this problem.
Thanks.
zagrey
Freshman
Freshman
 
Posts: 2
Joined: Tue Dec 23, 2008 12:21 am

Postby ndroid » Wed Dec 24, 2008 6:11 am

did you write the draw fucntion of the overlay...?
ndroid
Junior Developer
Junior Developer
 
Posts: 15
Joined: Mon Dec 15, 2008 1:29 pm

Postby zagrey » Wed Dec 24, 2008 11:04 pm

Yep. No problem with my own Draw function. But I want to show the big native attracted blue dot.

The same code shows blue dot on G1 device and doesn't show in emulator...

m_myLocationOverlay = new MyLocationOverlay(this, mapView);
mapView.getOverlays().add(m_myLocationOverlay);
m_myLocationOverlay.enableMyLocation();
m_myLocationOverlay.enableCompass();
zagrey
Freshman
Freshman
 
Posts: 2
Joined: Tue Dec 23, 2008 12:21 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest