Note that there are some explanatory texts on larger screens.

plurals
  1. POMap is not displaying correctly in android MapView
    primarykey
    data
    text
    <p>I am showing using MapView but when I change view using methods </p> <pre><code>map_view.setStreetView(true); map_view.setSatellite(false); </code></pre> <p>My map shows white square boxes on map.like</p> <p><img src="https://i.stack.imgur.com/o8QYi.png" alt="enter image description here"></p> <p>I am not getting why it is happening? Any idea, please Help.</p> <p>My XML Layout is</p> <pre><code>&lt;FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;com.google.android.maps.MapView android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" android:apiKey="0zkSIDXrbRRAbgiBkpRyxVR-5WWN6Jce_Sed6AQ" android:clickable="true" /&gt; &lt;/RelativeLayout&gt; &lt;FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_gravity="bottom"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:paddingTop="0dip" android:layout_height="40dip" android:id="@+id/linearLayout3" android:layout_gravity="center_horizontal" android:paddingBottom="0dip" android:background="@drawable/ttitle_bar"&gt; &lt;RadioGroup android:layout_width="match_parent" android:id="@+id/rgMap" android:layout_height="match_parent" android:orientation="horizontal" android:layout_marginTop="5dip" android:layout_marginLeft="10dip" android:checkedButton="@+id/rbtnMapSetManualLocOnMap"&gt; &lt;RadioButton android:layout_width="100dip" android:layout_height="30dip" android:layout_marginRight="0dip" android:gravity="center" android:id="@+id/rbtnMapSetManualLocOnMap" android:button="@drawable/radio_selector_map" /&gt; &lt;TextView android:layout_width="2dip" android:layout_height="30dip" /&gt; &lt;RadioButton android:layout_marginLeft="0dip" android:layout_marginRight="0dip" android:layout_width="100dip" android:layout_height="30dip" android:gravity="center" android:id="@+id/rbtnSetteliteSetManulaLocOnMap" android:button="@drawable/radio_selector_setellite" /&gt; &lt;TextView android:layout_width="0.5dip" android:layout_height="30dip" /&gt; &lt;RadioButton android:layout_marginLeft="0dip" android:layout_width="100dip" android:layout_height="30dip" android:gravity="center" android:id="@+id/rbtnHybridSetManulaLocOnMap" android:button="@drawable/radio_selector_hybrid" /&gt; &lt;/RadioGroup&gt; &lt;/LinearLayout&gt; &lt;/FrameLayout&gt; &lt;/FrameLayout&gt; </code></pre> <p>EDIT I have used three RadioButton which swithces views.Actually I wanted to change view to Hybrid view,Map view and Satellite view.</p> <p>So my method for changing view is </p> <pre><code>@Override public void onCheckedChanged(RadioGroup group, int checkedId) { // TODO Auto-generated method stub switch (checkedId) { case R.id.group_purchasing_on_map_radiobtn_map: map_view.setStreetView(true); map_view.setSatellite(false); break; case R.id.group_purchasing_on_map_radiobtn_hybrid: map_view.setStreetView(true); map_view.setSatellite(true); break; case R.id.group_purchasing_on_map_radiobtn_satellite: map_view.setStreetView(false); map_view.setSatellite(true); break; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload