Skip to content

Latest commit

 

History

History
 
 

Sample Table Of Contents

Maps

  • Change viewpoint

    This sample demonstrates different ways in which you can change the viewpoint or visible area of the map.

  • Map rotation

    This sample demonstrates how to rotate a map.

  • Display drawing status

    This sample demonstrates how to use the DrawStatus value of the MapView to notify user that the MapView is drawing.

  • Display layer view state

    This sample demonstrates how to get view status for layers in a map.

  • Take Screenshot

    This sample demonstrates how you can take screenshot of a map. Click 'take screenshot' button to take a screenshot of the visible area of the map. Created image is shown in the sample after creation.

  • Show magnifier

    This sample demonstrates how you can tap and hold on a map to get the magnifier. You can also pan while tapping and holding to move the magnifier across the map.

  • Show callout

    This sample illustrates how to show callouts on a map in response to user interaction.

  • Display a map

    This sample demonstrates how to display a map with a basemap.

  • Open map (URL)

    This sample demonstrates loading a webmap in a map from a Uri.

  • Open mobile map (map package)

    This sample demonstrates how to open a mobile map from a map package.

  • Search a portal for maps

    This sample demonstrates searching a portal for web maps and loading them in the map view. You can search ArcGIS Online public web maps using tag values or browse the web maps in your account. OAuth is used to authenticate with ArcGIS Online to access items in your account.

  • Set Min & Max Scale

    This sample demonstrates how to set the minimum and maximum scale of a Map. Setting the minimum and maximum scale for the Map can be useful in keeping the user focused at a certain level of detail.

  • Access load status

    This sample demonstrates how to access the Maps' LoadStatus. The LoadStatus will be considered loaded when the following are true: The Map has a valid SpatialReference and the Map has an been set to the MapView.

  • Set initial map location

    This sample creates a map with a standard ESRI Imagery with Labels basemap that is centered on a latitude and longitude location and zoomed into a specific level of detail.

  • Set initial map area

    This sample demonstrates how to set the initial viewpoint from envelope defined by minimum (x,y) and maximum (x,y) values. The map's InitialViewpoint is set to this viewpoint before the map is loaded into the MapView. Upon loading the map zoom to this initial area.

  • Set map spatial reference

    This sample demonstrates how you can set the spatial reference on a Map and all the layers would project accordingly.

  • Change basemap

    This sample demonstrates how to dynamically change the basemap displayed in a Map.

  • Manage Bookmarks

    This sample demonstrates how to access and add bookmarks to a map.

  • Author a map

    This sample demonstrates how to author and save a map as an ArcGIS portal item (web map). Saving a map to arcgis.com requires an ArcGIS Online login.

Layers

  • ArcGIS tiled layer (URL)

    This sample demonstrates how to add an ArcGISTiledLayer as a base layer in a map. The ArcGISTiledLayer comes from an ArcGIS Server sample web service.

  • ArcGIS vector tiled layer (URL)

    This sample demonstrates how to create a ArcGISVectorTiledLayer and bind this to a Basemap which is used in the creation of a map.

  • Export tiles

    This sample demonstrates how to export tiles from a map server.

  • ArcGIS map image layer (URL)

    This sample demonstrates how to add an ArcGISMapImageLayer as a base layer in a map. The ArcGISMapImageLayer comes from an ArcGIS Server sample web service.

  • Change sublayer visibility

    This sample demonstrates how to show or hide sublayers of a map image layer.

  • WMTS layer

    This sample demonstrates how to display a WMTS layer on a map via a Uri and WmtsLayerInfo.

  • ArcGIS raster layer (service)

    This sample demonstrates how to show a raster layer on a map based on an image service layer.

  • ArcGIS raster function (service)

    This sample demonstrates how to show a raster layer on a map based on an image service layer that has a raster function applied.

  • Raster layer (file)

    This sample demonstrates how to use a raster layer created from a local raster file.

  • Raster rendering rule

    This sample demonstrates how to create an ImageServiceRaster, fetch the RenderingRules from the service info, and use a RenderingRule to create an ImageServiceRaster and add it to a raster layer.

Features

Display Information

  • Add graphics (SimpleRenderer)

    This sample demonstrates how you add graphics and set a renderer on a graphic overlays.

  • Identify graphics

    This sample demonstrates how to identify graphics in a graphics overlay. When you tap on a graphic on the map, you will see an alert message displayed.

  • Sketch graphics on the map

    This sample demonstrates how to interactively sketch and edit graphics in the map view and display them in a graphics overlay. You can sketch a variety of geometry types and undo or redo operations.

  • Render simple markers

    This sample adds a point graphic to a graphics overlay symbolized with a red circle specified via a SimpleMarkerSymbol.

  • Render picture markers

    This sample demonstrates how to create picture marker symbols from a URL and embedded resources.

  • Render unique values

    This sample demonstrate how to use a unique value renderer to style different features in a feature layer with different symbols. Features do not have a symbol property for you to set, renderers should be used to define the symbol for features in feature layers. The unique value renderer allows for separate symbols to be used for features that have specific attribute values in a defined field.

  • Simple renderer

    This sample demonstrates how to create a simple renderer and add it to a graphics overlay. Renderers define the symbology for all graphics in a graphics overlay (unless they are overridden by setting the symbol directly on the graphic). Simple renderers can also be defined on feature layers using the same code.

Analysis

  • Analyze hotspots

    This sample demonstrates how to execute the GeoprocessingTask asynchronously to calculate a hotspot analysis based on the frequency of 911 calls. It calculates the frequency of these calls within a given study area during a specified constrained time period set between 1/1/1998 and 5/31/1998.

  • Analyze viewshed

    This sample demonstrates how to use GeoprocessingTask to calculate a viewshed using a geoprocessing service. Click any point on the map to see all areas that are visible within a 1 kilometer radius. It may take a few seconds for the model to run and send back the results.

  • List geodatabase versions

    This sample demonstrates how to use GeoprocessingTask to get available geodatabase versions from the enterprise geodatabase. Geoprocessing task will return the versions as a table that is shown to the user in a list. This is a good example how to use geoprocessing on mapless application.

Network Analysis

  • Find a route

    This sample demonstrates how to solve for the best route between two locations on the map and display driving directions between them.

Scenes

  • Distance composite symbol

    This sample demonstrates how to create a DistanceCompositeSceneSymbol with unique marker symbols to display at various distances from the camera.

  • ArcGIS Scene layer (URL)

    This sample demonstrates how to add an ArcGISSceneLayer as a layer in a Scene.

  • Display scene

    Demonstrates how to display a scene with an elevation data source. An elevation data source allows objects to be viewed in 3D, like this picture of Mt. Everest.

Location

  • Display Device Location

    This sample demonstrates how you can enable location services and switch between different types of auto pan modes.

Search

  • Working with Places

    This sample demonstrates how you can use the LocatorTask API to geocode an address and display it with a pin on the map. Tapping the pin displays the reverse-geocoded address in a callout.

    This sample demonstrates how to use geocode functionality to search for points of interest, around a location or within an extent.

Tutorial