ArcGIS Vector Tiled Layer URL


The ArcGIS Vector Tiled Layer URL app uses Vector Tiled Layer basemap from an ArcGIS Online service URL. It shows how to inflate a MapView in the layout XML of the activity, creates a ArcGISVectorTiledLayer from an ArcGIS Online service URL and bind that to a Basemap. The Basemap is used to create a Map which is used inside of the MapView. It uses Android Navigation drawer to switch between different Vector Tiled Layers. By default, this map supports basic zooming and panning operations.


  • Basemap
  • ArcGISVectorTiledLayer
  • ArcGISMap

Developer Pattern

// inflate MapView from layout
mMapView = (MapView) findViewById(;

// create new Vector Tiled Layer from service url
mVectorTiledLayer = new ArcGISVectorTiledLayer(

// set tiled layer as basemap
Basemap basemap = new Basemap(mVectorTiledLayer);
// create a map with the basemap
ArcGISMap map = new ArcGISMap(basemap);
// create a viewpoint from lat, long, scale
Viewpoint vp = new Viewpoint(47.606726, -122.335564, 72223.819286);
// set initial map extent
// set the map to be displayed in this view