Created
October 20, 2010 06:19
-
-
Save honjo2/635882 to your computer and use it in GitHub Desktop.
[android maps api] 位置と縮尺を指定して地図を表示する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package honjo; | |
import android.os.Bundle; | |
//import com.google.android.maps.GeoPoint; | |
//import com.google.android.maps.MapActivity; | |
//import com.google.android.maps.MapView; | |
import jp.co.mapion.android.maps.GeoPoint; | |
import jp.co.mapion.android.maps.MapActivity; | |
import jp.co.mapion.android.maps.MapView; | |
public class Slide02Activity extends MapActivity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
MapView mapView = new MapView(this, "APIキー"); | |
mapView.setClickable(true); | |
setContentView(mapView); | |
mapView.setBuiltInZoomControls(true); | |
mapView.getController().setCenter(new GeoPoint((int) (35.7 * 1E6), (int) (139.7 * 1E6))); | |
mapView.getController().setZoom(mapView.getMaxZoomLevel()); | |
} | |
protected boolean isRouteDisplayed() { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment