GoogleMap を読み込もうとしています。私は<uses-library android:name="com.google.android.maps" />
ライブラリを使用しています。これは MapView の xml です。
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="AIzaSyDvTjB5XuzifATB4G50qBc7TTRo5luhV9o"
/>
私のアクティビティは .MapActivity as public class Geofencesetup extends MapActivity {}
しかし、コードを実行すると、小さな小さなグリッドしか表示されず、マップが表示されません。私のアプリケーションには2つのxmlがあり、1つは次のように別のマップ表示アプリケーションのフラグメントを持っています
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
Geofencing セットアップのオーバーレイを作成する方が優れているため、MapView を追加したいと考えています。フラグメントではマップ全体が表示されますが、MapView ではグリッドのみが表示されます。私の質問は (1)com.google.android.gms.maps.SupportMapFragment
とcom.google.android.maps.MapView
を同じアプリケーションで使用できますか? (2) MapView でグリッドしか表示されないのはなぜですか? ありがとう