<esri:FeatureLayer ID="MyTreePts" Url="xyz" DisableClientCaching="True" Mode="OnDemand" Where="COMPLETE_DATE IS NULL" Renderer="{StaticResource MyTreePtRenderer}" MouseLeftButtonDown="FeatureLayer_MouseLeftButtonDown"> <esri:FeatureLayer.Geometry> <esri:Envelope XMin="-113" YMin="27" XMax="-97" YMax="48" > <esri:Envelope.SpatialReference> <esri:SpatialReference WKID="4326"/> </esri:Envelope.SpatialReference> </esri:Envelope> </esri:FeatureLayer.Geometry> <esri:FeatureLayer.OutFields> <sys:String>OBJECTID</sys:String> <sys:String>COMMENTS</sys:String> <sys:String>GLOBALID</sys:String> </esri:FeatureLayer.OutFields> <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"> <TextBlock Text="Tree Point Condition" Foreground="Black" /> <StackPanel Orientation="Horizontal"> <TextBlock Text="Comments: " Foreground="Black" /> <TextBlock Text="{Binding ConverterParameter=COMMENTS, Converter={StaticResource MyDictionaryConverter}, Mode=OneWay}" Foreground="Black" /> </StackPanel> </StackPanel> </Border> </esri:FeatureLayer.MapTip> </esri:FeatureLayer>
I am wondering now if the issue is that the layer is never initialized because that tab was never opened. Could that be the case?
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.