<Grid.Resources> <esri:FillSymbol x:Key="ResultsFillSymbol" Fill="#880000FF"> <esri:SimpleRenderer x:Key="selectPolygonSymbolRender" Symbol="{StaticResource ResultsFillSymbol}"/> </Grid.Resources>
GraphicsLayer graphicsLayer = MyMap.Layers["Selection Results"] as GraphicsLayer; graphicsLayer.Renderer = LayoutRoot.Resources["selectPolygonSymbolRender"] as SimpleRenderer; foreach (Graphic feature in featureSet.Features) { feature.Symbol = LayoutRoot.Resources["ResultsFillSymbol"] as FillSymbol; graphicsLayer.Graphics.Insert(0, feature); }
if (!MyLegend.LayerIDs.Contains("Selection Results")) { legendIDcount++; MyLegend.LayerIDs.SetValue("Selection Results", legendIDcount); } //legendIDcount is a global variable defined in the beginning.
<esri:Legend x:Name="MyLegend" Map="{Binding ElementName=MyMap}" Grid.Row="2" Background="#FFFFFFCC" BorderBrush="#FFFFFFCC" HorizontalAlignment="Left" Margin="3,3" Width="260" LayerItemsMode="Flat" ShowOnlyVisibleLayers="True" LayerIDs="Visible Layers,a,b,c,d">
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.