lishxi / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Abstract the sensor and menu code out of MyLocationOverlay #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MyLocationOverlay is very cluttered with code to handle the sensors (location 
and compass) and the menu. This code should be extracted out into a separate 
class.
The sensors could be done in a similar way to the way GeoHunter uses 
GeoFixProvider in FixedMyLocationOverlay.
http://code.google.com/p/geohunter/source/browse/trunk/GeoHunter/src/org/geohunt
er/activity/map/FixedMyLocationOverlay.java

Original issue reported on code.google.com by neilboyd on 21 Dec 2011 at 6:05

GoogleCodeExporter commented 9 years ago
Perhaps I should come clean and admit what I'm really trying to do ;-)

What I want to do is a wrapper around mapsforge, similar to the one we have 
around Google. But mapsforge doesn't have a MyLocationOverlay, which means we'd 
need an actual implementation, not just a wrapper. In order to do that, I don't 
want to have to duplicate everything, but to refactor most of the code out into 
shared code.

On a related subject, I think it would make sense to combine the google wrapper 
project into the third party project, and also put the mapsforge wrapper in 
there.

Original comment by neilboyd on 22 Dec 2011 at 6:20

GoogleCodeExporter commented 9 years ago
See also issue 383.

Original comment by neilboyd on 3 Nov 2012 at 11:27

GoogleCodeExporter commented 9 years ago
The MyLocationOverlay was modularized in issue 383 and we have removed the 
mapsforge stuff. This issue can be closed.

Original comment by kurtzm...@gmail.com on 24 Jun 2013 at 12:52