Set up the application layers

Before running the application for the first time, you can specify which layers the application uses. If you choose not to specify which layers to use, the application will use a default list of ArcGIS Online basemap layers when it launches for the first time.

  1. Modify the mapconfig.xml as needed.
  2.         
        ...
        <layers>
            <layer name="Imagery" visible="false" type="TiledMapServiceLayer" basemap="true">
                <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer</url>
            </layer>
            <layer name="Streets" visible="false" type="TiledMapServiceLayer" basemap="true">
                <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</url>
            </layer>
            <layer name="Name of Tile Package" visible="true" type="TiledCacheLayer" basemap="true">
                <datasetpath>file:///mnt/sdcard/SquadLeader/NameofTilePackage.tpk</datasetpath>
            ...
        </layers>
        ...
            
            
  3. For best results, be sure that only one layer's attributes are set to:

    basemap="true" visible="true"
  4. Copy the mapconfig.xml to your device's /mnt/sdcard/SquadLeader/ directory.
  5. After the first launch, the application uses the basemap layers that it loaded previously. If you want to reset the map and re-read mapconfig.xml, you can reset the map. Alternatively, you can manually go to the Android application settings, choose Squad Leader, and choose Clear Data. Then run the application and it will read mapconfig.xml again.
Top