<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Annotation layer not showing in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1208919#M11304</link>
    <description>&lt;P&gt;Using ArcGISRuntime 100.15 and based on the ESRI Display Annotation Layer sample I have an app with the following code for displaying an annotation layer:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var map = new Map(BasemapStyle.ArcGISImagery){
    InitialViewpoint = new Viewpoint(-9167600, 3461570, Scale)};

var annoLayer = new AnnotationLayer(new Uri(UriText));
map.OperationalLayers.Add(annoLayer);
annoLayer.Loaded += (object sender, EventArgs e) =&amp;gt; {
            var al = sender as AnnotationLayer;
            Trace.WriteLine($"{al.Name} loaded; visible: {al.IsVisible}; IsVisibleAtScale: {al.IsVisibleAtScale(Scale)}");
};

MyMapView.Map = map;&lt;/LI-CODE&gt;&lt;P&gt;The 'Loaded' event fires and indicates that the annotation layer loaded without error, but it is not displaying on the map. When loaded, the SublayerContents property is empty, which seems suspicious since the annotation layer does have sublayers.&lt;/P&gt;&lt;P&gt;The annotation layer displays properly in ArcGIS Pro and in the online map viewer.&lt;/P&gt;&lt;P&gt;Any ideas on what might be wrong or what to look at next?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 21:53:28 GMT</pubDate>
    <dc:creator>Paul_K</dc:creator>
    <dc:date>2022-09-01T21:53:28Z</dc:date>
    <item>
      <title>Annotation layer not showing</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1208919#M11304</link>
      <description>&lt;P&gt;Using ArcGISRuntime 100.15 and based on the ESRI Display Annotation Layer sample I have an app with the following code for displaying an annotation layer:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var map = new Map(BasemapStyle.ArcGISImagery){
    InitialViewpoint = new Viewpoint(-9167600, 3461570, Scale)};

var annoLayer = new AnnotationLayer(new Uri(UriText));
map.OperationalLayers.Add(annoLayer);
annoLayer.Loaded += (object sender, EventArgs e) =&amp;gt; {
            var al = sender as AnnotationLayer;
            Trace.WriteLine($"{al.Name} loaded; visible: {al.IsVisible}; IsVisibleAtScale: {al.IsVisibleAtScale(Scale)}");
};

MyMapView.Map = map;&lt;/LI-CODE&gt;&lt;P&gt;The 'Loaded' event fires and indicates that the annotation layer loaded without error, but it is not displaying on the map. When loaded, the SublayerContents property is empty, which seems suspicious since the annotation layer does have sublayers.&lt;/P&gt;&lt;P&gt;The annotation layer displays properly in ArcGIS Pro and in the online map viewer.&lt;/P&gt;&lt;P&gt;Any ideas on what might be wrong or what to look at next?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1208919#M11304</guid>
      <dc:creator>Paul_K</dc:creator>
      <dc:date>2022-09-01T21:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation layer not showing</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1209343#M11307</link>
      <description>&lt;P&gt;What does the &lt;A title="MapView LayerViewStateChanged event" href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.GeoView.LayerViewStateChanged.html" target="_blank" rel="noopener"&gt;MapView LayerViewStateChanged event&lt;/A&gt; report?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1209343#M11307</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-09-02T19:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation layer not showing</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1209404#M11310</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that suggestion. I added event handling code as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;MyMapView.Map = new Map(BasemapStyle.ArcGISStreets);

MyMapView.LayerViewStateChanged += (sender, args) =&amp;gt;
{
    Trace.WriteLine($"Layer:'{args.Layer.Name}' Status:{args.LayerViewState.Status}");
    Trace.WriteIf(args.LayerViewState.Error is not null, $"\tError:{args.LayerViewState.Error}\n");
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, here's the output:&lt;/P&gt;&lt;PRE&gt;Layer:'World_Basemap_v2' Status:NotVisible&lt;BR /&gt;Layer:'' Status:Loading&lt;BR /&gt;Layer:'World_Basemap_v2' Status:Active&lt;BR /&gt;GasGenericAnno loaded; visible: True; IsVisibleAtScale: True&lt;BR /&gt;Layer:'GasGenericAnno' Status:NotVisible&lt;BR /&gt;Layer:'GasGenericAnno' Status:Active&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Sep 2022 21:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/annotation-layer-not-showing/m-p/1209404#M11310</guid>
      <dc:creator>Paul_K</dc:creator>
      <dc:date>2022-09-02T21:02:36Z</dc:date>
    </item>
  </channel>
</rss>

