Tiled layers in GroupLayer draws inorrectly

2189
3
Jump to solution
04-24-2012 01:32 AM
MarkusHjärne
New Contributor
Hi,

we have two ArcGISTiledMapServiceLayers, one with a base map and one with labels. They work as intended when added directly to the map, but when grouping these two layers in a GroupLayer that is added to the map, we cannot get the top most layers with labels to draw correctly. When zooming in and out, the labels for all zoom levels are displayed in the map at the same time, cluttering up the map.

The problem can be reproduced with the following XAML:

[HTML]<UserControl x:Class="TestTiledLayerResolution.TestMap"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">

<Grid x:Name="LayoutRoot">
  <esri:Map Name="map1" WrapAround="True">
   <esri:GroupLayer>
    <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
                                                           Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
    <esri:ArcGISTiledMapServiceLayer ID="Overlay"
                                                           Url="http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/M..." />
   </esri:GroupLayer>
  </esri:Map>
</Grid>
</UserControl>[/HTML]

When zooming into this map to display finer demographic details and then zooming out again, the finer details will remain on the map. If the group layer is removed, the problem does not occur.

We're using Silverlight API 2.4 with Silverlight 4. How do we solve this problem?

Best Regards,

Markus Hjärne
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
Sorry for the confusion. I meant v3.0 Pre-Release already have the fix. As for your concern about moving to Silverlight 5, we are currently considering making v3.0 available for Silverlight 4 as well.

View solution in original post

0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
Thank you for reporting this to us. I was able to reproduce with v2.6. This issue had been fixed. You can try out v3.0 Pre-Release.
0 Kudos
MarkusHjärne
New Contributor
Thanks for confirming this bug, but I got somewhat confused by your answer.

Do you mean that this is a bug in version 2.4 that has been fixed in the pre-release of version 3.0? Or is there really a version 2.6 of the SL API?

As I understand it you have to upgrade to Silverlight 5 to be able to to use version 3.0 of the SL API, is that correct?

We'll probably try to work around the problem by avoiding the use of GroupLayers for now.

/Markus
0 Kudos
JenniferNery
Esri Regular Contributor
Sorry for the confusion. I meant v3.0 Pre-Release already have the fix. As for your concern about moving to Silverlight 5, we are currently considering making v3.0 available for Silverlight 4 as well.
0 Kudos