I have the following activity called activity_esri_map:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.stevecortis.wmsdemo.MainActivity">
<com.esri.android.map.MapView
android:id="@+id/arcMap"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
mapoptions.MapType="Topo"
mapoptions.ZoomLevel="13"
mapoptions.center="33.666354, -117.903557" />
This is called from the MainActivity:
final MapOptions mStreetsBasemap = new MapOptions(MapOptions.MapType.STREETS);
private MapView arcMapView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_esri_map);
arcMapView = (MapView) findViewById(R.id.arcMap);
arcMapView.setMapOptions(mStreetsBasemap);
}
From the MainActivity I haven't been able to change anything from tha map. It seems like the findViewById(R.id.arcMap) It is not being assigned to the arcMapView.
I have tried to change other things such as Scale, and nothing seems to affect the actual MapView.