PATRIK27 / osmdroid

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

Zooming the map scales Overlays too (and then redraws them when the animation completes) #248

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add Overlays to a MapView (OverlayItem in my case)
2. Zoom the map using pinch to zoom or programatically zooming in or out.
3. The Overlay images are scaled up or down with the tiles.
4. After the animation completes the overlay items are redrawn at the original 
size in their new location.

What is the expected output? 
I was expecting the overlay items to move to the new location like the 
MyLocationOverlay "little man" does. The equivalent items in the Google Maps 
API do behave correctly too.

What do you see instead?
The icons change size and then redraw at the original size in the new location.

What version of the product are you using? On what operating system?
osmdroid 3.0.5 jar, Android 1.6, 2.1, 2.2, 2.3 (all in emulator), 2.2 on my 
phone.

Please provide any additional information below.
The fact that the MyLocationOverlay man icon behaves correctly implies that 
someone has already solved this problem. I've not had a chance to look through 
the code to see what that Overlay does differently.

Original issue reported on code.google.com by netwol...@gmail.com on 2 Aug 2011 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 2 Aug 2011 at 6:52

GoogleCodeExporter commented 8 years ago
Please look through the MyLocationOverlay code for an example of how to prevent 
scaling when zooming. If you need further help, then please contact the google 
group or StackOverflow.

Original comment by kurtzm...@gmail.com on 6 Apr 2012 at 7:11

GoogleCodeExporter commented 8 years ago
(Neil - please re-open, if you think this needs further attention)

Original comment by kurtzm...@gmail.com on 6 Apr 2012 at 7:12

GoogleCodeExporter commented 8 years ago
It's also an issue with the osmdroid overlays that are in the samples, so they 
should be fixed.
I guess you're saying that custom overlays can be written to avoid this 
behavior, but then the samples should give a good example.

Original comment by neilboyd on 6 Apr 2012 at 9:21

GoogleCodeExporter commented 8 years ago
yes I am exactly facing the same problem Some how i managed to solve this issue 
I have made transparent the default scalbar overlay and using my own view for 
that..

Original comment by min2bhan...@gmail.com on 13 May 2013 at 3:26

GoogleCodeExporter commented 8 years ago
See issue 453.

Original comment by kurtzm...@gmail.com on 25 Jul 2013 at 10:16

GoogleCodeExporter commented 8 years ago
A working patch has been posted to issue 453. Please apply to the trunk, test, 
and report back results.

Original comment by kurtzm...@gmail.com on 6 Aug 2013 at 7:11

GoogleCodeExporter commented 8 years ago
I applied your patch, nevertheless when I zoom in / out, everything (including 
overlay with icons on it) is scaled accordingly instead of just being replaced 
on the scaled map.

Original comment by waeselyn...@gmail.com on 14 Aug 2013 at 9:18