Select to view content in your preferred language

two questions about v3.2

698
1
12-10-2013 06:07 AM
LanceCrumbliss
Frequent Contributor
1) Will there be any sample(s) illustrating the

  • "Ability to define how labels are displayed within dynamic map service layers via the LabelClass and LabelOptions classes"

2) When will v3.2 of the Toolkit be downloadable? 

Lance
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
1) Will there be any sample(s) illustrating the

  • "Ability to define how labels are displayed within dynamic map service layers via the LabelClass and LabelOptions classes"



Example of labels defined in XAML and depending on the scale:

<esri:Map>
    <esri:ArcGISDynamicMapServiceLayer Url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer">
        <esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions>
            <esri:LayerDrawingOptionsCollection>
                <esri:LayerDrawingOptions LayerID="2" ShowLabels="True">
                    <esri:LayerDrawingOptions.LabelClasses>
                        <esri:LabelClassCollection>
                            <esri:LabelClass LabelExpression="[state_abbr]" MaxScale="15000000">
                                <esri:LabelClass.LabelOptions>
                                    <esri:LabelOptions FontSize="20" Color="Green" />
                                </esri:LabelClass.LabelOptions>
                            </esri:LabelClass>
                            <esri:LabelClass LabelExpression="[state_name] CONCAT NEWLINE CONCAT &quot;Pop2000:&quot; CONCAT [pop2000]" MinScale="15000000">
                                <esri:LabelClass.LabelOptions>
                                    <esri:LabelOptions FontSize="15" Color="Green" />
                                </esri:LabelClass.LabelOptions>
                            </esri:LabelClass>
                        </esri:LabelClassCollection>
                    </esri:LayerDrawingOptions.LabelClasses>
                    <esri:LayerDrawingOptions.Renderer>
                        <esri:SimpleRenderer>
                            <esri:SimpleRenderer.Symbol>
                                <esri:SimpleFillSymbol BorderBrush="#74E01B" BorderThickness="1" Fill="#7074E01B" />
                            </esri:SimpleRenderer.Symbol>
                        </esri:SimpleRenderer>
                    </esri:LayerDrawingOptions.Renderer>
                </esri:LayerDrawingOptions>
            </esri:LayerDrawingOptionsCollection>
        </esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions>
        <esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos>
            <esri:DynamicLayerInfoCollection>
                <esri:DynamicLayerInfo ID="2">
                    <esri:DynamicLayerInfo.Source>
                        <esri:LayerMapSource MapLayerID="2" />
                    </esri:DynamicLayerInfo.Source>
                </esri:DynamicLayerInfo>
            </esri:DynamicLayerInfoCollection>
        </esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos>
    </esri:ArcGISDynamicMapServiceLayer>
</esri:Map>



2) When will v3.2 of the Toolkit be downloadable?


The toolkit is already downloadable from codeplex .
0 Kudos