Skip to content

Instantly share code, notes, and snippets.

@honjo2
Created October 20, 2010 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honjo2/635978 to your computer and use it in GitHub Desktop.
Save honjo2/635978 to your computer and use it in GitHub Desktop.
[android maps api] 地図を回転する
package honjo;
import jp.co.mapion.android.maps.MapActivity;
import jp.co.mapion.android.maps.MapView;
import android.os.Bundle;
public class Slide08Activity extends MapActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MapView mapView = new MapView(this, "APIキー");
setContentView(mapView);
mapView.setRotation(true);
mapView.setDegrees(45.0f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment