Select to view content in your preferred language

Turn off background grid

3755
2
Jump to solution
12-16-2014 09:36 AM
JohnSelkirk
Regular Contributor

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
Deactivated User

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
Deactivated User

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
Regular Contributor

Worked like a charm. Thanks Antti!

0 Kudos