Map Class |
Namespace: Esri.ArcGISRuntime.Mapping
The Map type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Map |
Initializes a new instance of the Map class.
|
![]() ![]() | Map(Uri) |
Initializes a new instance of the Map class with a Uri to a web map.
|
![]() ![]() | Map(Basemap) |
Initializes a new instance of the Map class with a Basemap.
|
![]() ![]() | Map(Item) |
Initializes a new instance of the Map class with an ArcGIS Item.
|
![]() ![]() | Map(SpatialReference) |
Initializes a new instance of the Map class with a specified spatial reference.
|
![]() ![]() | Map(BasemapType, Double, Double, Int32) |
Initializes a new instance of the Map class with a Basemap and an initial viewpoint.
|
Name | Description | |
---|---|---|
![]() | AllLayers |
Gets all layers in the order they are rendered (bottom-most first).
|
![]() | BackgroundColor |
Gets or sets the background color of the map.
|
![]() ![]() | Basemap |
Gets or sets the basemap for the Map
|
![]() ![]() | Bookmarks |
Gets the collection of bookmarks in the map.
|
![]() ![]() | InitialViewpoint |
Gets or sets the viewpoint where the map should start up at.
|
![]() ![]() | Item | Gets the ArcGIS Item for the map. |
![]() ![]() | LoadError |
Gets the load error for this instance - if any.
|
![]() | LoadSettings |
Gets or sets the load settings for a map. The load settings class contains a set of properties which controls rendering options
which are applied as the map is loaded.
|
![]() | LoadStatus |
Gets the current load status of the map.
|
![]() ![]() | MaxScale |
Gets or sets the maximum scale for the map.
|
![]() ![]() | MinScale |
Gets or sets the minimum scale for the map.
|
![]() | OfflineSettings |
Gets offline settings configured by the author of an online web map (if appropriate).
|
![]() ![]() | OperationalLayers |
Gets or sets the collection of operational layers in the map.
|
![]() | ReferenceScale | Gets or sets the reference scale for the map. |
![]() ![]() | SpatialReference |
Gets the spatial reference for the map
|
![]() | Tables |
Gets the list of tables in the map.
|
![]() ![]() | TransportationNetworks | Gets the maps transportation networks. |
![]() | UnknownJson |
Gets the unknown JSON from the webmap source JSON in a dictionary of JSON strings. This data will be lost if the webmap gets saved back to JSON.
|
![]() | UnsupportedJson |
Gets the unsupported data from the webmap source JSON from the webmap source JSON in a dictionary of JSON strings. This data will be persisted in the document.
|
![]() | Uri |
Gets the Uri for the map.
|
![]() | Version |
Gets the version for the map when this was authored.
|
Name | Description | |
---|---|---|
![]() | Loaded |
Occurs when this instance is loaded.
|
![]() ![]() | LoadStatusChanged |
Occurs when the instance's LoadStatus has changed.
|
![]() | PropertyChanged |
Occurs when a property value changes.
|
WPF
Example Name: DisplayMap
Display a map with an imagery basemap.
// Copyright 2016 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific // language governing permissions and limitations under the License. using Esri.ArcGISRuntime.Mapping; namespace ArcGISRuntime.WPF.Samples.DisplayMap { [ArcGISRuntime.Samples.Shared.Attributes.Sample( name: "Display map", category: "Map", description: "Display a map with an imagery basemap.", instructions: "Run the sample to view the map. Pan and zoom to navigate the map.", tags: new[] { "basemap", "map" })] public partial class DisplayMap { public DisplayMap() { InitializeComponent(); // Create the UI, setup the control references and execute initialization Initialize(); } private void Initialize() { // Create new Map with basemap Map myMap = new Map(Basemap.CreateImagery()); // Assign the map to the MapView MyMapView.Map = myMap; } } }
<UserControl x:Class="ArcGISRuntime.WPF.Samples.DisplayMap.DisplayMap" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <esri:MapView x:Name="MyMapView"/> </Grid> </UserControl>
Hyperlink to Example | Description |
---|---|
AccessLoadStatus | Determine the map's load status which can be: `NotLoaded`, `FailedToLoad`, `Loading`, `Loaded`. |
AddEncExchangeSet | Display nautical charts per the ENC specification. |
AddFeatures | Add features to a feature layer. |
AddGraphicsRenderer | A renderer allows you to change the style of all graphics in a graphics overlay by referencing a single symbol style. |
AddGraphicsWithSymbols | Use a symbol style to display a graphic on a graphics overlay. |
AnalyzeHotspots | Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots. |
AnalyzeViewshed | Calculate a viewshed using a geoprocessing service, in this case showing what parts of a landscape are visible from points on mountainous terrain. |
Animate3DGraphic | An `OrbitGeoElementCameraController` follows a graphic while the graphic's position and rotation are animated. |
ApplyScheduledUpdates | Apply scheduled updates to a downloaded preplanned map area. |
ArcGISMapImageLayerUrl | Add an ArcGIS Map Image Layer from a URL to a map. |
ArcGISTiledLayerUrl | Load an ArcGIS tiled layer from a URL. |
ArcGISVectorTiledLayerUrl | Load an ArcGIS Vector Tiled Layer from a URL. |
AuthorMap | Create and save a map as an ArcGIS `PortalItem` (i.e. web map). |
BrowseWfsLayers | Browse a WFS service for layers and add them to the map. |
Buffer | Create a buffer around a map point and display the results as a `Graphic` |
BufferList | Generate multiple individual buffers or a single unioned buffer around multiple points. |
ChangeBasemap | Change a map's basemap. A basemap is beneath all layers on a `Map` and is used to provide visual reference for the operational layers. |
ChangeBlendRenderer | Blend a hillshade with a raster by specifying the elevation data. The resulting raster looks similar to the original raster, but with some terrain shading, giving it a textured look. |
ChangeEncDisplaySettings | Configure the display of ENC content. |
ChangeFeatureLayerRenderer | Change the appearance of a feature layer with a renderer. |
ChangeStretchRenderer | Use a stretch renderer to enhance the visual contrast of raster data for analysis. |
ChangeSublayerRenderer | Apply a renderer to a sublayer. |
ChangeSublayerVisibility | Change the visibility of sublayers. |
ChangeTimeExtent | Filter data in layers by applying a time extent to a MapView. |
ChangeViewpoint | Set the map view to a new viewpoint. |
ClipGeometry | Clip a geometry with another geometry. |
ClosestFacility | Find a route to the closest facility from a location. |
ClosestFacilityStatic | Find routes from several locations to the respective closest facility. |
ControlAnnotationSublayerVisibility | Use annotation sublayers to gain finer control of annotation layer subtypes. |
ConvexHull | Create a convex hull for a given set of points. The convex hull is a polygon with shortest perimeter that encloses a set of points. As a visual analogy, consider a set of points as nails in a board. The convex hull of the points would be like a rubber band stretched around the outermost nails. |
ConvexHullList | Generate convex hull polygon(s) from multiple input geometries. |
CreateAndSaveKmlFile | Construct a KML document and save it as a KMZ file. |
CreateFeatureCollectionLayer | Create a Feature Collection Layer from a Feature Collection Table, and add it to a map. |
CreateGeometries | Create simple geometry types. |
CustomDictionaryStyle | Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values. |
CutGeometry | Cut a geometry along a polyline. |
DeleteFeatures | Delete features from an online feature service. |
DensifyAndGeneralize | A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals. |
DictionaryRendererGraphicsOverlay | This sample demonstrates applying a dictionary renderer to graphics, in order to display military symbology without the need for a feature table. |
DisplayAnnotation | Display annotation from a feature service URL. |
DisplayDeviceLocation | Display your current position on the map, as well as switch between different types of auto pan Modes. |
DisplayDrawingStatus | Get the draw status of your map view or scene view to know when all layers in the map or scene have finished drawing. |
DisplayGrid | Display coordinate system grids including Latitude/Longitude, MGRS, UTM and USNG on a map view. Also, toggle label visibility and change the color of grid lines and grid labels. |
DisplayLayerViewState | Determine if a layer is currently being viewed. |
DisplayMap | Display a map with an imagery basemap. |
DisplaySubtypeFeatureLayer | Displays a composite layer of all the subtype values in a feature class. |
DisplayUtilityAssociations | Create graphics for utility associations in a utility network. |
DisplayWfs | Display a layer from a WFS service, requesting only features for the current extent. |
DownloadPreplannedMap | Take a map offline using a preplanned map area. |
EditAndSyncFeatures | Synchronize offline edits with a feature service. |
EditFeatureAttachments | Add, delete, and download attachments for features from a service. |
ExportTiles | Download tiles to a local tile cache file stored on the device. |
FeatureCollectionLayerFromPortal | Create a feature collection layer from a portal item. |
FeatureCollectionLayerFromQuery | Create a feature collection layer to show a query result from a service feature table. |
FeatureLayerDefinitionExpression | Limit the features displayed on a map with a definition expression. |
FeatureLayerDictionaryRenderer | Convert features into graphics to show them with mil2525d symbols. |
FeatureLayerGeodatabase | Display features from a local geodatabase. |
FeatureLayerGeoPackage | Display features from a local GeoPackage. |
FeatureLayerQuery | Find features in a feature table which match an SQL query. |
FeatureLayerRenderingModeMap | Render features statically or dynamically by setting the feature layer rendering mode. |
FeatureLayerSelection | Select features in a feature layer. |
FeatureLayerShapefile | Open a shapefile stored on the device and display it as a feature layer with default symbology. |
FeatureLayerTimeOffset | Display a time-enabled feature layer with a time offset. |
FeatureLayerUrl | Show features from an online feature service. |
FindAddress | Find the location for an address. |
FindPlace | Find places of interest near a location or within a specific area. |
FindRoute | Display directions for a route between two points. |
FindServiceArea | Find the service area within a network from a given point. |
FindServiceAreasForMultipleFacilities | Find the service areas of several facilities from a feature service. |
FormatCoordinates | Format coordinates in a variety of common notations. |
GenerateGeodatabase | Generate a local geodatabase from an online feature service. |
GenerateOfflineMap | Take a web map offline. |
GenerateOfflineMapWithOverrides | Take a web map offline with additional options for each layer. |
GeodatabaseTransactions | Use transactions to manage how changes are committed to a geodatabase. |
GeodesicOperations | Calculate a geodesic path between two points and measure its distance. |
GeoViewSync | Keep the view points of two views (e.g. MapView and SceneView) synchronized with each other. |
HonorMobileMapPackageExpiration | Access the expiration information of an expired mobile map package. |
IdentifyGraphics | Display an alert message when a graphic is clicked. |
IdentifyKmlFeatures | Show a callout with formatted content for a KML feature. |
IdentifyLayers | Identify features in all layers in a map. MapView supports identifying features across multiple layers. Because some layer types have sublayers, the sample recursively counts results for sublayers within each layer. |
IdentifyRasterCell | Get the cell value of a local raster at the tapped location and display the result in a callout. |
IntegratedWindowsAuth | Connect to an IWA secured Portal and search for maps. |
ListRelatedFeatures | List features related to the selected feature. |
ListTransformations | Get a list of suitable transformations for projecting a geometry between two spatial references with different horizontal datums. |
LoadWebTiledLayer | Display a tiled web layer. |
LocalServerFeatureLayer | Start a local feature service and display its features in a map. |
LocalServerGeoprocessing | Create contour lines from local raster data using a local geoprocessing package `.gpk` and the contour geoprocessing tool. |
LocalServerMapImageLayer | Start the Local Server and Local Map Service, create an ArcGIS Map Image Layer from the Local Map Service, and add it to a map. |
ManageBookmarks | Access and create bookmarks on a map. |
ManageOperationalLayers | Add, remove, and reorder operational layers in a map. |
MapImageLayerTables | Find features in a spatial table related to features in a non-spatial table. |
MapImageSublayerQuery | Find features in a sublayer based on attributes and location. |
MapReferenceScale | Set the map's reference scale and which feature layers should honor the reference scale. |
MapRotation | Rotate a map. |
MobileMapSearchAndRoute | Display maps and use locators to enable search and routing offline using a Mobile Map Package. |
NavigateRoute | Use a routing service to navigate between points. |
NavigateRouteRerouting | Navigate between two points and dynamically recalculate an alternate route when the original route is unavailable. |
NearestVertex | Find the closest vertex and coordinate of a geometry to a point. |
OAuth | Authenticate with ArcGIS Online (or your own portal) using OAuth2 to access secured resources (such as private web maps or layers). |
OfflineBasemapByReference | Use the `OfflineMapTask` to take a web map offline, but instead of downloading an online basemap, use one which is already on the device. |
OfflineGeocode | Geocode addresses to locations and reverse geocode locations to addresses offline. |
OfflineRouting | Solve a route on-the-fly using offline data. |
OpenMapURL | Display a web map. |
OpenMobileMap | Display a map from a mobile map package. |
OpenStreetMapLayer | Add OpenStreetMap as a basemap layer. |
PerformValveIsolationTrace | Run a filtered trace to locate operable features that will isolate an area from the flow of network resources. |
Project | Project a point from one spatial reference to another. |
QueryFeatureCountAndExtent | Zoom to features matching a query and count the features in the current visible extent. |
RasterColormapRenderer | Apply a colormap renderer to a raster. |
RasterHillshade | Use a hillshade renderer on a raster. |
RasterLayerFile | Create and use a raster layer made from a local raster file. |
RasterLayerGeoPackage | Display a raster contained in a GeoPackage. |
RasterLayerImageServiceRaster | Create a raster layer from a raster image service. |
RasterLayerRasterFunction | Load a raster from a service, then apply a function to it. |
RasterRenderingRule | Display a raster on a map and apply different rendering rules to that raster. |
RasterRgbRenderer | Apply an RGB renderer to a raster layer to enhance feature visibility. |
ReadGeoPackage | Add rasters and feature tables from a GeoPackage to a map. |
ReadShapefileMetadata | Read a shapefile and display its metadata. |
RenderPictureMarkers | Use pictures for markers. |
RenderSimpleMarkers | Show a simple marker symbol on a map. |
RenderUniqueValues | Render features in a layer using a distinct symbol for each unique attribute value. |
ReverseGeocode | Use an online service to find the address for a tapped point. |
RouteAroundBarriers | Find a route that reaches all stops without crossing any barriers. |
SearchPortalMaps | Find webmap portal items by using a search term. |
SelectEncFeatures | Select features in an ENC layer. |
ServiceFeatureTableCache | Display a feature layer from a service using the **on interaction cache** feature request mode. |
ServiceFeatureTableManualCache | Display a feature layer from a service using the **manual cache** feature request mode. |
ServiceFeatureTableNoCache | Display a feature layer from a service using the **no cache** feature request mode. |
SetInitialMapArea | Display the map at an initial viewpoint representing a bounding geometry. |
SetInitialMapLocation | Display a basemap centered at an initial location and scale. |
SetMapSpatialReference | Specify a map's spatial reference. |
SetMinMaxScale | Restrict zooming between specific scale ranges. |
ShowCallout | Show a callout with the latitude and longitude of user-tapped points. |
ShowLabelsOnLayer | Display custom labels on a feature layer. |
ShowLocationHistory | Display your location history on the map. |
ShowMagnifier | Tap and hold on a map to show a magnifier. |
ShowPopup | Show predefined popups from a web map. |
SimpleRenderers | Display common symbols for all graphics in a graphics overlay with a renderer. |
SketchOnMap | Use the Sketch Editor to edit or sketch a new point, line, or polygon geometry on to a map. |
SpatialOperations | Find the union, intersection, or difference of two geometries. |
SpatialRelationships | Determine spatial relationships between two geometries. |
StatisticalQuery | Query a table to get aggregated statistics back for a specific field. |
StyleWmsLayer | Change the style of a Web Map Service (WMS) layer. |
SymbolizeShapefile | Display a shapefile with custom symbology. |
SymbolsFromMobileStyle | Combine multiple symbols from a mobile style file into a single symbol. |
TakeScreenshot | Take a screenshot of the map. |
TimeBasedQuery | Query data using a time extent. |
TokenSecuredChallenge | This sample demonstrates how to prompt the user for a username and password to authenticate with ArcGIS Server to access an ArcGIS token-secured service. Accessing secured services requires a login that's been defined on the server. |
TraceUtilityNetwork | Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces. |
UpdateAttributes | Update feature attributes in an online feature service. |
UpdateGeometries | Update a feature's location in an online feature service. |
WfsXmlQuery | Load a WFS feature table using an XML query. |
WmsIdentify | Identify features in a WMS layer and display the associated popup content. |
WMSLayerUrl | Display a WMS layer using a WMS service URL. |
WmsServiceCatalog | Connect to a WMS service and show the available layers and sublayers. |
WMTSLayer | Display a layer from a Web Map Tile Service. |