Turn off background grid

3271
2
Jump to solution
12-16-2014 09:36 AM
JohnSelkirk
New Contributor III

Is there a way to turn off the grid that is displayed when you don't have a background image/service?

Some of clients just want to display their data with no background and when they zoom to full extent they get the grid in the background.

Grid.PNG

The pink grid is actual data. This Gray background and darker gray grid lines are the canvas that I would like to change.

0 Kudos
1 Solution

Accepted Solutions
AnttiKajanus1
Regular Contributor II

You can do it changing MapView.MapBackground definition

<esri:MapView x:Name="MyMapView"
              LayerLoaded="MyMapView_LayerLoaded">
    <esri:MapView.MapBackground>
        <esri:MapBackground GridColor="Transparent"/>
    </esri:MapView.MapBackground>
<esri:Map >
        <esri:ArcGISDynamicMapServiceLayer ID="Basemap"
            ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"/>
    </esri:Map>
</esri:MapView>

View solution in original post

2 Replies
AnttiKajanus1
Regular Contributor II

You can do it changing MapView.MapBackground definition

<esri:MapView x:Name="MyMapView"
              LayerLoaded="MyMapView_LayerLoaded">
    <esri:MapView.MapBackground>
        <esri:MapBackground GridColor="Transparent"/>
    </esri:MapView.MapBackground>
<esri:Map >
        <esri:ArcGISDynamicMapServiceLayer ID="Basemap"
            ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"/>
    </esri:Map>
</esri:MapView>
JohnSelkirk
New Contributor III

Worked like a charm. Thanks Antti!

0 Kudos