Background color for map view

1944
4
Jump to solution
08-17-2016 05:47 AM
BrianHennessey1
New Contributor II

In my previous app built using the .NET API for WPF. I set the Map.Backgound color and added dynamic layers above it. In the 10.2.7 .NET SDK. that property does not exist. I do see it on the MavView object but that doesn't work either. How to I set a background color on the map?

Here's what I'm talking about (attached). I don't want to see the gray backgound with the grids. I want that to be a solid color.

0 Kudos
1 Solution

Accepted Solutions
AnttiKajanus1
Regular Contributor II

You can use MapView.MapBackground property. You can also set LineWidth to 0.

MyMapView.MapBackground = new MapBackground() { Color = Colors.Yellow };‍‍

View solution in original post

4 Replies
AnttiKajanus1
Regular Contributor II

You can use MapView.MapBackground property. You can also set LineWidth to 0.

MyMapView.MapBackground = new MapBackground() { Color = Colors.Yellow };‍‍
Haider_AliFaheem
New Contributor II

I could cound the following property in .Net Sdk v100 ,could you please explain how to change the background in .Net Sdk v100 

Thanks

Haider

0 Kudos
ChadYoder1
Occasional Contributor II

MapView Class 

There is a BackgroundColor property which seems to not be in the documentation.

0 Kudos
Haider_AliFaheem
New Contributor II

Background color property is .net control property, not the replacement of  Mapview.MapBackground .

0 Kudos