Skip to content

Latest commit

 

History

History
 
 

feature-layer-shapefile

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Feature Layer Shapefile

Open a shapefile stored on the device and display it as a feature layer with default symbology.

Feature Layer Shapefile App

How to use the sample

Run the sample and accept read permissions.

How it works

  1. Create a ShapefileFeatureTable a path to a shapefile (.shp) on loaded onto the device.
  2. Use the ShapefileFeatureTable to create a FeatureLayer
  3. Add the FeatureLayer to the ArcGISMap as an operational layer, using default symbology and rendering.

Relevant API

  • FeatureLayer
  • ShapefileFeatureTable

Offline Data

  1. Download the data from ArcGIS Online.
  2. Extract the contents of the downloaded zip file to disk.
  3. Open your command prompt and navigate to the folder where you extracted the contents of the data from step 1.
  4. Execute the following command: adb push . /sdcard/ArcGIS/Samples/ShapeFile/Aurora_CO_shp/
Link Local Location
Public Art Shapefile <sdcard>/ArcGIS/Samples/ShapeFile/Aurora_CO_shp/Public_Art.shp

Tags

Layers