My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  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 balazs.b...@gmail.com, 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.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
#1 cyrilmot...@gmail.com
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
#2 marcosml...@gmail.com
i have the same problem. It's possible to render Google Maps on a TextureView? I'm using google maps v2.
Feb 7, 2013
#3 fed...@gmail.com
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.
Aug 27, 2013
Project Member #5 cbro@google.com
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