Skip To Content

Samples

The samples listed below demonstrate basic extensibility functionality available with ArcGIS Maps for SharePoint. Each sample is already in the required extension pack format; download the ZIP file and add it according to the instructions in Add extensions.

See the code usage restrictions for additional information.

Sample apps

Basic Extension Pack (ZIP file)

This sample demonstrates how to configure an extension pack with a custom tool and a behavior.

  • A custom tool that displays a message in the alert dialog box when the tool is clicked
  • A custom behavior that displays a message in the alert dialog box on a map click event

Measure widget (ZIP file)

This sample demonstrates how to configure widgets from the ArcGIS API for JavaScript. The measurement widget is displayed in the Map Contents pane. ArcGIS Maps for SharePoint already contains a Measure tool by default; this sample simply demonstrates how to include a premade widget in the app.

Constrain extent (ZIP file)

This sample demonstrates a behavior that constrains the map extent to a certain geographic location.

Redfin Search (ZIP file)

This sample demonstrates how to integrate the Redfin real estate listing search tool into the map's pop-up toolbar. This tool works with point layers in the map.

SharePoint communication via the JavaScript Client Object Model (ZIP file)

This sample contains a Hello World sample to demonstrate communication with SharePoint via the JavaScript Client Object Model. See the JavaScript API reference for SharePoint 2013 or the JavaScript Class Library (SharePoint 2010) for more information.

This sample applies only to SharePoint on-premises.

Copyright 2015 Esri

All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions. You may freely redistribute and use this sample code, with or without modification, provided you include the original copyright notice and use restrictions.

Code usage restrictions

All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.

You may freely redistribute and use this sample code, with or without modification, provided you include the original copyright notice and use restrictions.

Disclaimer: THE SAMPLE CODE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESRI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) SUSTAINED BY YOU OR A THIRD PARTY, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ARISING IN ANY WAY OUT OF THE USE OF THIS SAMPLE CODE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, 92373 USA

email: contracts@esri.com