This sample shows how to create a client-side FeatureLayer from a shapefile.

Use Download sample shapefile in the Expand component in the top right to download the ZIP bundled with this sample. Select Choose a ZIP file to upload it or your own zipped shapefile. The sample sends the file to the ArcGIS Online generate operation, adds the resulting features to the map, and displays loading, success, or error feedback in a Calcite notice.

See the Create a FeatureLayer with client-side graphics sample for more information about creating a FeatureLayer from other data sources.

2DFeatureLayerarcgis-maparcgis-expandarcgis-popupcalcite-panelcalcite-buttoncalcite-noticeFeaturesclient-sideGraphicfeatureCollectionCollectionscale-dependentshapefile