<esri:FeatureLayer ID="layer_7" Url="http://**.**.**.**/ArcGIS/rest/services/jd_s_Dynamic/MapServer/7" Initialized="FeatureLayer_Initialized_7" Opacity="0.3" FeatureSymbol="{StaticResource ResultsFillSymbol}" > <esri:FeatureLayer.OutFields> <sys:String>table_1.id</sys:String> <sys:String>table_1.name</sys:String> </esri:FeatureLayer.OutFields> <esri:FeatureLayer.MapTip> <Border CornerRadius="10" BorderBrush="#FF222957" BorderThickness="2" Margin="0,0,15,15"> <Border.Background> <LinearGradientBrush EndPoint="1.038,1.136" StartPoint="0.015,0.188"> <GradientStop Color="#FFD1DFF2"/> <GradientStop Color="#FF62BCDE" Offset="1"/> </LinearGradientBrush> </Border.Background> <Border.Effect> <DropShadowEffect ShadowDepth="10" BlurRadius="14" Direction="300" /> </Border.Effect> <StackPanel Margin="4"> <Grid> <TextBlock Text="Name�?" /> <TextBlock Text="{Binding [table_1\.name]}" FontWeight="Bold" Margin="60,0,0,0"/> </Grid> </StackPanel> </Border> </esri:FeatureLayer.MapTip> </esri:FeatureLayer>
private void FeatureLayer_Initialized_7(object sender, EventArgs e) { ((FeatureLayer)sender).MouseLeftButtonUp += new FeatureLayer.MouseButtonEventHandler(FeatureLayer_MouseLeftButtonUp_7); } private void FeatureLayer_MouseLeftButtonUp_7(object sender, GraphicMouseButtonEventArgs args) { Graphic graphic = args.Graphic; FeatureLayer_level_chick = 7; DataGrid_navigator_dizhi_item_select(graphic); }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.