<esri:Map x:Name="MapControl" Background="White" IsLogoVisible="False"> <esri:FeatureLayer ID="Poles" Url="http://msnwingisd1/ArcGIS/rest/services/Test1_PoleUpdates/FeatureServer/0" DisableClientCaching="True" AutoSave="True" Mode="OnDemand" MaximumResolution="43.4028" OutFields="OBJECTID,COMPANY,CU"> <esri:FeatureLayer.Clusterer> <esri:FlareClusterer FlareBackground="Orange" FlareForeground="Black" MaximumFlareCount="9" /> </esri:FeatureLayer.Clusterer> <esri:FeatureLayer.MapTip> <Border CornerRadius="10" BorderBrush="#FF222957" BorderThickness="3" Margin="0,0,15,15"> <Border.Background> <LinearGradientBrush EndPoint="1.038,1.136" StartPoint="0.015,0.188"> <GradientStop Color="#FFD1DFF2" /> <GradientStop Color="#FF0088FF" Offset="0.946" /> </LinearGradientBrush> </Border.Background> <Border.Effect> <DropShadowEffect ShadowDepth="10" BlurRadius="14" Direction="300" /> </Border.Effect> <StackPanel Margin="7"> <StackPanel Orientation="Horizontal"> <TextBlock Text="Pole: " Foreground="Black" /> <TextBlock Text="{Binding [OBJECTID]}" FontWeight="Bold" Foreground="Black" /> </StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Text="Company: " Foreground="Black" /> <TextBlock Text="{Binding [COMPANY]}" FontWeight="Bold" Foreground="Black" /> </StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Text="CU: " Foreground="Black" /> <TextBlock Text="{Binding [CU]}" FontWeight="Bold" Foreground="Black" /> </StackPanel> </StackPanel> </Border> </esri:FeatureLayer.MapTip> </esri:FeatureLayer> </esri:Map>
<esri:TemplatePicker x:Name="MyTemplatePicker" Continuous="False" Loaded="MyTemplatePicker_Loaded" Map="{Binding ElementName=MapControl}" ShowAttributesOnAdd="True" />
private void MyTemplatePicker_Loaded(object sender, RoutedEventArgs e) { string[] myLayerIDs = { "Poles" }; MyTemplatePicker.LayerIDs = myLayerIDs; }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.