Select to view content in your preferred language

Can't have MGRS grid layer and unaccelerated Element Layers

2243
2
Jump to solution
01-25-2013 07:29 AM
KeithMacIntyre
Deactivated User
The MGRS grid lines can only be displayed when the UseAcceleratedDisplay property is true for the entire map.  However, if it is set to true, then non accelerated layers such as ElementLayer cannot be added to the map.
It would be nice if the MGRS grid lines were a layer or if the setting could be applied in a different way.

<esri:Map UseAcceleratedDisplay="True" x:Name="MyMap">             <esri:Map.AcceleratedDisplay>                 <esri:AcceleratedDisplaySettings GridType="MGRS"></esri:AcceleratedDisplaySettings>             </esri:Map.AcceleratedDisplay>             <esri:AcceleratedDisplayLayers >                 <esri:ArcGISTiledMapServiceLayer ID="World Topo Map"                       Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>                 <esri:MessageLayer SymbolDictionaryType="Mil2525C" x:Name="MilitaryLayer" Initialized="MilitaryLayer_Initialized" ></esri:MessageLayer>             </esri:AcceleratedDisplayLayers> <esri:ElementLayer></esri:ElementLayer>         </esri:Map>
0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor
Hi,

When using on the AcceleratedDIsplayLayers group, you can specify an MGRS grid as follows:

        <esri:Map UseAcceleratedDisplay="False" x:Name="MyMap">             <esri:AcceleratedDisplayLayers>                 <esri:AcceleratedDisplayLayers.AcceleratedDisplay>                 <esri:AcceleratedDisplaySettings GridType="MGRS"/>                 </esri:AcceleratedDisplayLayers.AcceleratedDisplay>             <esri:ArcGISTiledMapServiceLayer ID="World Topo Map"                       Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>             <esri:MessageLayer SymbolDictionaryType="Mil2525C" x:Name="MilitaryLayer"></esri:MessageLayer>         </esri:AcceleratedDisplayLayers>             <esri:ElementLayer></esri:ElementLayer>         </esri:Map>


Note that in your example you were enabling the entire map as accelerated AND creating an accelerated group layer.

I'm also keen to hear what you plan to use the ElementLayer for.


Cheers

Mike

View solution in original post

0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

When using on the AcceleratedDIsplayLayers group, you can specify an MGRS grid as follows:

        <esri:Map UseAcceleratedDisplay="False" x:Name="MyMap">             <esri:AcceleratedDisplayLayers>                 <esri:AcceleratedDisplayLayers.AcceleratedDisplay>                 <esri:AcceleratedDisplaySettings GridType="MGRS"/>                 </esri:AcceleratedDisplayLayers.AcceleratedDisplay>             <esri:ArcGISTiledMapServiceLayer ID="World Topo Map"                       Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>             <esri:MessageLayer SymbolDictionaryType="Mil2525C" x:Name="MilitaryLayer"></esri:MessageLayer>         </esri:AcceleratedDisplayLayers>             <esri:ElementLayer></esri:ElementLayer>         </esri:Map>


Note that in your example you were enabling the entire map as accelerated AND creating an accelerated group layer.

I'm also keen to hear what you plan to use the ElementLayer for.


Cheers

Mike
0 Kudos
KeithMacIntyre
Deactivated User
Thank you!  I tried to do what you suggested before, but must have had something slightly incorrect.
We are still in the planning stages, and needed to know if we would be limited by having the MGRS grid lines on.
0 Kudos