l = new FeatureLayer(); l.OutFields.Add("NHN"); l.ID = "MyFeatureLayer"; l.FeatureSymbol = TS; l.Url = "http://testestest"; l.Where = "Pointnumber" testmap.Layers.Add(l);
<Grid.Resources> <esriSymbols:TextSymbol x:Key="LegendTextSymbol"> <esriSymbols:TextSymbol.ControlTemplate> <ControlTemplate> <Border Padding="10,5,10,5" Background="White" BorderBrush="Black"> <TextBlock FontSize="{Binding Symbol.Size}" Text="{Binding Attributes[NameOfTheAttributeUsedForLabeling]}" Foreground="Blue" FontFamily="{Binding Symbol.FontFamily}" HorizontalAlignment="Center" /> </Border> </ControlTemplate> </esriSymbols:TextSymbol.ControlTemplate> </esriSymbols:TextSymbol> </Grid.Resources>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.