Show / Hide Table of Contents

Constructor Basemap

Basemap()

Initializes a new instance of the Basemap class. Layers need to be added to the basemap before it can be used.

Declaration
public Basemap()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1

Basemap(Layer)

Initializes a new instance of the Basemap class with the specified layer.

Declaration
public Basemap(Layer baseLayer)
Parameters
Type Name Description
Layer baseLayer

The base layer to add to the BaseLayers collection.

Exceptions
Type Condition
ArgumentNullException

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1
Relevant samples
Edit and sync features: Synchronize offline edits with a feature service.
Export tiles: Download tiles to a local tile cache file stored on the device.
Generate geodatabase: Generate a local geodatabase from an online feature service.

Basemap(IEnumerable<Layer>, IEnumerable<Layer>)

Initializes a new instance of the Basemap class with a set of base and reference layers.

Declaration
public Basemap(IEnumerable<Layer> baseLayers, IEnumerable<Layer> referencelayers = null)
Parameters
Type Name Description
IEnumerable<Layer> baseLayers

The base layers to add to the BaseLayers collection.

IEnumerable<Layer> referencelayers

The reference layers to add to the ReferenceLayers collection.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.1

Basemap(Uri)

Initializes a new instance of the Basemap class with a Uri to a portal item which is a web base map.

Declaration
public Basemap(Uri uri)
Parameters
Type Name Description
Uri uri

The base map URI, commonly the that of a web map portal item.

Remarks

The uri parameter may be a direct Uri to web map JSON content or the Uri of a portal item. Examples of supported portal item Uri values:

  • http://www.arcgis.com/home/item.html?id=<web_map_id>
  • http://www.arcgis.com/home/webmap/viewer.html?webmap=<web_map_id>
  • http://www.arcgis.com/sharing/rest/content/items/<web_map_id>/data

If the specified URI is a portal item URL (see PortalItem(String, ArcGISPortal) for the supported URL formats), the underlying PortalItem will be created and accessible through Item.

See Also
PortalItem
PortalItem(String, ArcGISPortal)
Item

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.1
Relevant samples
Perform valve isolation trace: Run a filtered trace to locate operable features that will isolate an area from the flow of network resources.
Trace utility network: Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces.

Basemap(Item)

Initializes a new instance of the Basemap class with a portal item of type WebMap.

Declaration
public Basemap(Item item)
Parameters
Type Name Description
Item item

A web map PortalItem.

Remarks

The PortalItem automatically loads when the base map loads. If the loaded Item is not a portal item of type WebMap, the basemap fails to load.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1

Basemap(BasemapStyle)

Initializes a new instance of the Basemap class with a BasemapStyle. These basemaps are secured and access requires either an API key or a named user.

Declaration
public Basemap(BasemapStyle style)
Parameters
Type Name Description
BasemapStyle style

The basemap style.

Remarks

These basemaps are secured and access requires either an ApiKey or a named user.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.10 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Android100.10 - 100.15
iOS100.10 - 100.15
UWP100.10 - 200.1
In This Article
Back to top Copyright © 2022 Esri.