ArcGIS for SharePoint allows you to develop functionality for the ArcGIS Map Web Part. To learn more about this capability, see About extending the Map Web Part. Custom functionality, referred to as add-ins, is packaged in a compiled Silverlight application or .xap file. To make add-ins available to the Map Web Part, ArcGIS for SharePoint provides a document library, called ArcGIS Mapping Extensions, where Map Web Part add-in packages are stored.
The Map Web Part provides two techniques for add-ins to expose functionality—commands and behaviors. Commands offer a simple way to plug logic into the ArcGIS Map Web Part that should be initiated by the user. Behaviors provide a way to surface logic that should be initiated as soon as the web part is loaded.
To get started with add-ins, the first step is to write and compile a command or behavior into a .xap file. For information on creating a command, see Writing commands. For information on creating a behavior, see Writing map behaviors.
Making add-ins available to the Map Web Part
Making add-ins available to the Map Web Part requires adding the compiled Silverlight application that contains the add-in code to the ArcGIS Mapping Extensions document library as shown in the following steps:
- Navigate to the Site Settings page by opening the Site Actions menu and clicking Site Settings:
- Under the ArcGIS for SharePoint Administration heading, click Extensions:
- Click Add Document. The Upload Document dialog box appears.
- Click the Browse button to open the Choose file to Upload dialog box.
- Locate and select the .xap file containing the extension and click Open:The .xap file will be uploaded to the library. Once this is done, the commands and behaviors within the add-in package will be available when adding tools to ArcGIS Map Web Parts within the same site collection.