Share via


MapTileSource.Layer Property

Definition

Gets or sets the layer that contains the tiles.

public:
 property MapTileLayer Layer { MapTileLayer get(); void set(MapTileLayer value); };
MapTileLayer Layer();

void Layer(MapTileLayer value);
public MapTileLayer Layer { get; set; }
var mapTileLayer = mapTileSource.layer;
mapTileSource.layer = mapTileLayer;
Public Property Layer As MapTileLayer

Property Value

The layer that contains the tiles.

Remarks

You can specify one of the named layers of map content to contain the tiles that you overlay on the map. The values of the MapTileLayer enumeration are similar to a range of z-index values, from foreground to background. If you don't specify a value for the Layer property, the tiles are overlaid in the foreground layer.

To replace the default map entirely:

Applies to

See also