AnsweredAssumed Answered

Unknown attribute mapoptions [maven]

Question asked by iMoVe on Dec 10, 2015
Latest reply on Dec 14, 2015 by iMoVe

Hello,

 

I am going through Esri "Hello world" tutorial for android.

 

In my activitymain.xml (layout) I copy and paste this:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
... (cut out)


  <com.esri.android.map.MapView
   android:id="@+id/map"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   mapoptions.MapType="Streets"
   mapoptions.center="34.056215, -117.195668"
   mapoptions.ZoomLevel="16">
  </com.esri.android.map.MapView>
</RelativeLayout>

 

Xml file gives me an error: Unknown attribute mapoptions.MapType...

Looks like xml cant find what is mapotions in maven

When i launch the app, it opens, but with black screen where the map should be

 

Btw I have not downloaded the SDK. Im using Android Studio and the Esri ArcGIS maven repository instead. With dependency 'com.esri.arcgis.android:arcgis-android:10.2.7'

 

What am I doing wrong ?

Outcomes