0
A
回答
1
您可以使用佈局和參數在XML佈局文件來改變大小,位置等。例如,從
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/map_container2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:orientation="horizontal">
<fragment
android:id="@+id/map1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
class="com.google.android.gms.maps.SupportMapFragment"
map:cameraTargetLat="40.72"
map:cameraTargetLng="-74.00"
map:cameraZoom="8"/>
<fragment
android:id="@+id/map2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
class="com.google.android.gms.maps.SupportMapFragment"
map:cameraTargetLat="51.51"
map:cameraTargetLng="-0.12"
map:cameraZoom="8"/>
</LinearLayout>
<LinearLayout
android:id="@+id/map_container2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:orientation="horizontal">
<fragment
android:id="@+id/map3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
class="com.google.android.gms.maps.SupportMapFragment"
map:cameraTargetLat="48.85"
map:cameraTargetLng="2.35"
map:cameraZoom="8"/>
<fragment
android:id="@+id/map4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5"
class="com.google.android.gms.maps.SupportMapFragment"
map:cameraTargetLat="35.69"
map:cameraTargetLng="139.69"
map:cameraZoom="8"/>
</LinearLayout>
</LinearLayout>
:用於示出4個象限屏幕的地圖的4個拷貝谷歌的示例代碼
相關問題
- 1. 谷歌地圖KM邊界框在地圖上重新應用本地縮放
- 2. 可縮放的谷歌地圖覆蓋
- 3. 谷歌API地圖的縮放
- 4. 谷歌地圖的縮放看起來很奇怪
- 5. 谷歌地圖V3縮放設置
- 6. 谷歌地圖自動縮放
- 7. 谷歌地圖縮放不會改變
- 8. 谷歌地圖v3縮放結束
- 9. 谷歌地圖縮放級別
- 10. 谷歌地圖樣式縮放控件
- 11. 縮放谷歌地圖api 3 [ios]
- 12. 限制縮放谷歌地圖
- 13. 動態設置谷歌地圖縮放
- 14. 谷歌地圖縮放效果
- 15. 谷歌地圖事件觸發谷歌地圖重新加載?
- 16. 谷歌地圖標記拖動和縮放地圖問題
- 17. 谷歌地圖縮放控件無法正確顯示
- 18. Mvvmcross Android谷歌地圖,無法綁定縮放級別
- 19. 谷歌地圖縮放功能無法正常工作
- 20. 重新開放谷歌地圖停止我的應用程序
- 21. max放大谷歌地圖
- 22. 重新加載谷歌地圖
- 23. 帶TileProvider的谷歌地圖:縮放時的不同縮放級別
- 24. 谷歌地圖SDK iOS版:重新定位谷歌標誌
- 25. 谷歌地圖發佈應用程序谷歌地圖V2谷歌播放
- 26. 谷歌地圖從外面的地圖拖放對象到谷歌地圖
- 27. 加載,滾動,放大和縮小圖像像谷歌地圖
- 28. 允許谷歌地圖v3衛星視圖進一步縮放
- 29. 谷歌地圖上的kml文件中的縮放級別
- 30. 谷歌地圖與Bootstrap(類 - 縮略圖)