<?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 layers don't behave as expected in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/annotation-layers-don-t-behave-as-expected/m-p/384025#M35569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone come across this before?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have a map service containing several different layers.&amp;nbsp; By default I want a few of them switched on.&lt;/LI&gt;&lt;LI&gt;One of these layers is an annotation feature class.&amp;nbsp; It only has one annotation class named Default.&lt;/LI&gt;&lt;LI&gt;In the REST, the two entries that make this annotation up are:&lt;UL&gt;&lt;LI&gt;Type: Annotation Layer&amp;nbsp; -- &lt;SPAN style="line-height: 1.5;"&gt;Geometry Type: esriGeometryPolygon &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;and &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Type: Annotation SubLayer&amp;nbsp; -- &lt;SPAN style="line-height: 1.5;"&gt;Geometry Type: null &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 1.5;"&gt;In order to have the annotation switched on as default, I have ticked both the annotation feature class AND the annotation class (Default) in the mxd.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 1.5;"&gt;In my JavaScript API website I have a custom layer list.&amp;nbsp; This only lists the Annotation Layer and not the Annotation SubLayer.&amp;nbsp; When I switch off the Annotation Layer, nothing happens.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;If I switch off the annotation class in the mxd (but leave the annotation feature class switched on) and republish the map service,&amp;nbsp; the annotation doesn't display by default when the website opens.&amp;nbsp; However, I am now able to switch the annotation on and off.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes no sense to me.&amp;nbsp; Any ideas anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarah Noakes&lt;/P&gt;&lt;P&gt;Cornwall Council&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 11:40:30 GMT</pubDate>
    <dc:creator>SarahNoakes1</dc:creator>
    <dc:date>2015-08-12T11:40:30Z</dc:date>
    <item>
      <title>Annotation layers don't behave as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/annotation-layers-don-t-behave-as-expected/m-p/384025#M35569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone come across this before?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have a map service containing several different layers.&amp;nbsp; By default I want a few of them switched on.&lt;/LI&gt;&lt;LI&gt;One of these layers is an annotation feature class.&amp;nbsp; It only has one annotation class named Default.&lt;/LI&gt;&lt;LI&gt;In the REST, the two entries that make this annotation up are:&lt;UL&gt;&lt;LI&gt;Type: Annotation Layer&amp;nbsp; -- &lt;SPAN style="line-height: 1.5;"&gt;Geometry Type: esriGeometryPolygon &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;and &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Type: Annotation SubLayer&amp;nbsp; -- &lt;SPAN style="line-height: 1.5;"&gt;Geometry Type: null &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 1.5;"&gt;In order to have the annotation switched on as default, I have ticked both the annotation feature class AND the annotation class (Default) in the mxd.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 1.5;"&gt;In my JavaScript API website I have a custom layer list.&amp;nbsp; This only lists the Annotation Layer and not the Annotation SubLayer.&amp;nbsp; When I switch off the Annotation Layer, nothing happens.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;If I switch off the annotation class in the mxd (but leave the annotation feature class switched on) and republish the map service,&amp;nbsp; the annotation doesn't display by default when the website opens.&amp;nbsp; However, I am now able to switch the annotation on and off.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes no sense to me.&amp;nbsp; Any ideas anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarah Noakes&lt;/P&gt;&lt;P&gt;Cornwall Council&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/annotation-layers-don-t-behave-as-expected/m-p/384025#M35569</guid>
      <dc:creator>SarahNoakes1</dc:creator>
      <dc:date>2015-08-12T11:40:30Z</dc:date>
    </item>
  </channel>
</rss>

