更新时间:2023-11-19 15:11:46
You can set it in your XML layout also (sets the middlish of North America):
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map"
android:name="pl.mg6.android.maps.extensions.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
map:cameraBearing="0"
map:cameraTargetLat="53.938305"
map:cameraTargetLng="-112.763672"
map:cameraTilt="30"
map:cameraZoom="2" />
I'm using the android maps extension in that example. Great library BTW. I really like this approach as it loads it right away and you never see Africa. IMO it seems to be the best.
Note! I should warn you that I get a compile error until I make a space and then save the file again when I start Eclipse up after I'm done for the day... Anyone know why this is?