anmpout / osmdroid

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

PERSON_ICON not displayed in the correct position #253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
----------------------------------------------------
1. inlude osmdroid-android-3.0.5.jar into project
2. Use MyLocationOverlay
2. enableMyLocation()

What is the expected output? What do you see instead?
------------------------------------------------------------------------
PERSON_ICON should be on the current location, instead it is ~20px too far top 
and ~10px too far left. 

 * this was correct in 3.0.1
 * it is correct when using SimpleLocationOverlay 
 * DIRECTION_ARROW is in the correct place in 3.0.1 and 3.0.5 as well as the 
   accuracy circle.

See attached .png

Original issue reported on code.google.com by marcus.b...@gmail.com on 29 Aug 2011 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
Perhaps you can provide some more information because I tried the latest 
version of the sample app and the man's feet are right in the middle of the 
circle.

Original comment by neilboyd on 2 Sep 2011 at 5:27

Attachments:

GoogleCodeExporter commented 9 years ago
Some more info:

It happens on a Samsung Galaxy S when there is a person.png in 
res/drawable-hdpi which is not 72x72. It worked on 3.0.1, and the direction 
arrow is fine too.
However, if the person.png must be 72x72, then that's how it is. Feel free to 
mark the bug invalid. 

Original comment by marcus.b...@gmail.com on 5 Sep 2011 at 7:33

GoogleCodeExporter commented 9 years ago
person.png is 48x48.  I guess you mean you created one in hdpi which is 72x72.

Seems like a valid bug because so long as the proportions are the same we 
should be able to figure out the correct location.

Original comment by neilboyd on 5 Sep 2011 at 9:26

GoogleCodeExporter commented 9 years ago
I believe this is no longer a problem in the new MyLocation overlay.

Original comment by kurtzm...@gmail.com on 2 May 2013 at 1:03