MapTileSource.Layer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
- Specify MapTileLayer.BackgroundReplacement as the value of the Layer property of the MapTileSource.
- Specify MapStyle.None as the value of the Style property of the MapControl.