|Issue 4782:||Bug: Rotating the MapView around the X or Y axis doesn't work|
|13 people starred this issue and may be notified of changes.||Back to list|
Create a rotation animation and apply it to the MapView. The map's content is not rotated at all (it always stays facing the "up"). It's probably caused by the vector maps. It can be a problem when you have two screens and you want to switch between them by flipping the views. Code sample: FlipDirection dir = FlipDirection.LEFT_RIGHT; float centerX = mMapView.getWidth() / 2.0f; float centerY = mMapView.getHeight() / 2.0f; Animation outFlip= new FlipAnimation(dir.getStartDegreeForFirstView(), dir.getEndDegreeForFirstView(), centerX, centerY, FlipAnimation.SCALE_DEFAULT, FlipAnimation.ScaleUpDownEnum.SCALE_DOWN); outFlip.setDuration(1000); outFlip.setInterpolator(new AccelerateInterpolator()); mMapView.startAnimation(outFlip); Use the FlipAnimation class from here: http://android-3d-flip-view-transition.googlecode.com/svn-history/r2/trunk/src/com/tekle/oss/android/animation/FlipAnimation.java
Jan 9, 2013
I think this issue comes from the fact Google Maps Android API v2 relies on SurfaceView to display the map. SurfaceView is a pretty special View that can't be animated. Using a TextureView would probably have solved the problem...
Jan 10, 2013
i have the same problem. It's possible to render Google Maps on a TextureView? I'm using google maps v2.
Feb 7, 2013
Also, would this help with giving us the ability to access the view so that we can allow the user to share the current view? Android Google Maps V1 used to have this ability. But it appears that V2 does not. The goal is to allow the user to share the map view. They can already do this using the operating system screenshot capability (Power key + volume down) but we want to make it easier. Thanks.
Feb 7, 2013
I posted a separate issue here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=4898
Aug 27, 2013
We just pushed an update that changes the base view of the map to a TextureView on Jelly Bean 4.1+ (API 16+) devices. This should resolve several issues, including black rectangles when a map view is moved on the screen. Please see Issue 4659 for more details. Post any discussion about TextureView there, please.
|► Sign in to add a comment|