anhtuanmai / osmdroid

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

osmdroid + SlidingMenu #419

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a MapView on a Fragment and then add to SlidingMenu instance.
2. Show the menu.

What is the expected output?
MapView and all overlays scroll to the side.

What do you see instead?
When the SlidingMenu moves, only the overlays over the MapView moves as well. 
The map itself  doesn't. So the SlidingMenu steps over the Mapview. 

I don't know if this helps, but computeScroll() was called 3 times, but in all 
mScroller.computeScrollOffset() returns false and scrollTo(int x, int y) is 
never called.

Is it becouse the event doesn't come from a gesture? Do you have any idea of 
how to solve this issue?

What version of the product are you using?
3.0.9-SNAPSHOT

Original issue reported on code.google.com by gabriel....@gmail.com on 4 Apr 2013 at 7:41

GoogleCodeExporter commented 8 years ago
Are you sure you have hardware acceleration turned off? What API are you 
building against?

Original comment by kurtzm...@gmail.com on 4 Apr 2013 at 9:36

GoogleCodeExporter commented 8 years ago
Yes, I have disabled hardware acceleration in the manifest at the activity 
level, and I'm using API 17.

I was wrong before, MyLocationOverlay is the only Overlay that moves as well. 
The other Overlays (ItemizedIconOverlay) and the MapView remain still.

And with the menu opened, MyLocationOverlay not is redrawn in successive 
"onLocationChanged" over my location. That make me think it recognises that the 
map moved (because it is drawed where the map should be). But the map is not 
redrawn (at least in the right place, perhaps it does but it happens it the 
very same place).

Regards

Original comment by gabriel....@gmail.com on 5 Apr 2013 at 6:49

GoogleCodeExporter commented 8 years ago
I have a working app with SlidingMenu and MapView with overlays in a Fragment. 
I am not aware of any osm issues involved. Let me know if you want a sample 
project.

Original comment by vit.hrad...@gmail.com on 27 Jul 2013 at 9:56

GoogleCodeExporter commented 8 years ago
please you can get me a sample project slidingmenu an mapview with osmdroid in 
a fragment please.

Original comment by cidarvei...@gmail.com on 27 Mar 2014 at 6:21