My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  ----
Closed:  Aug 2013

Sign in to add a comment
Reported by, Jan 8, 2013
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.setInterpolator(new AccelerateInterpolator()); 

Use the FlipAnimation class from here:
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.

Aug 27, 2013
Project Member #5
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.
Status: Fixed
Labels: Fixed-Aug2013
Sign in to add a comment

Powered by Google Project Hosting