zeta243 / osmdroid

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

mScale in Overlay not necessary #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use Overlay or any Subclass.
2. display some markers
3. may be influenced by whether or not you are using different image files ind 
the drawable-hdpi folder and similar.

What is the expected output? What do you see instead?
On Phones with different resolution densities(I tested hdpi(motodefy) and 
ldpi(xperia 10 mini pro)) the markers should be about the same size.

Instead i see that on ldpi-phones all markers are displayed far too small on 
the screen and on hdpi-phones markers are really big. When I subclassed 
ItemizedOverlayWithFocus and Overrode the boundToHotspot() method, so that 
mScale would be ignored, all markers were displayed in a reasonable size.

What version of the product are you using? On what operating system?
I'm using osmdroid 3.0.7 on Android 2.1 and 2.2

Original issue reported on code.google.com by bastis...@googlemail.com on 4 Apr 2012 at 7:36

GoogleCodeExporter commented 8 years ago
the problem still persist in 3.0.8. the "scale factor" is applied to the marker 
intrinsic size which already takes the density into account.

patch attached

Original comment by schizosfera@gmail.com on 8 May 2012 at 10:49

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1099.

Original comment by neilboyd on 9 May 2012 at 5:38