ของผมโค้ดประมาณนี้ครับ
อันนี้คือ maps.xml นะครับ cameraTargetLat/Lng คือพิกัดเริ่มต้น cameraZoom คือระดับการซูมเริ่มต้น
แล้วเวลาโหลดก็ใช้
โค้ด เลือก
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"
map:mapType="normal"
map:cameraTargetLat="13"
map:cameraTargetLng="100"
map:cameraZoom="11"
map:uiCompass="false" />อันนี้คือ maps.xml นะครับ cameraTargetLat/Lng คือพิกัดเริ่มต้น cameraZoom คือระดับการซูมเริ่มต้น
แล้วเวลาโหลดก็ใช้
โค้ด เลือก
setContentView(R.layout.maps);
GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();



![Roll Eyes :]](https://www.thaiseoboard.com/Smileys/default/rolleyes.gif)