<?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 problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627239#M58524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a subclass of ArcGISDynamicMapServiceLayerEx using the dojo.declare() method.&amp;nbsp; Everything works great but when I add it to the Legend, the Legend will not recognize it.&amp;nbsp; Any thoughts on a work around?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 17:01:19 GMT</pubDate>
    <dc:creator>MichaelPorter1</dc:creator>
    <dc:date>2011-07-21T17:01:19Z</dc:date>
    <item>
      <title>problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627239#M58524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a subclass of ArcGISDynamicMapServiceLayerEx using the dojo.declare() method.&amp;nbsp; Everything works great but when I add it to the Legend, the Legend will not recognize it.&amp;nbsp; Any thoughts on a work around?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627239#M58524</guid>
      <dc:creator>MichaelPorter1</dc:creator>
      <dc:date>2011-07-21T17:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627240#M58525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/legend.htm"&gt;doc for the legend dijit&lt;/A&gt;&lt;SPAN&gt; lists the supported legend types:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The legend supports the following layer types: ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, FeatureLayer. If the layer is an ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer created using ArcGIS Server 10.0 SP1 or higher the legend is generated using the REST Map Service legend resource.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm"&gt;KMLLayers&lt;/A&gt;&lt;SPAN&gt; are also supported. We'll update the doc to reflect this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627240#M58525</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-21T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627241#M58526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that even though a subclass of ArcGISDynamicServiceLayer is still an instanceof ArcGISDynamicServiceLayer, the Legend will not recognize it.&amp;nbsp; This does not make sense because the subclass will implement all of the same behaviors, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 01:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627241#M58526</guid>
      <dc:creator>MichaelPorter1</dc:creator>
      <dc:date>2011-07-22T01:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627242#M58527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand, but at v2.4, you're limited to the classes I listed above. What are you doing in your custom class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627242#M58527</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-22T04:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Legend when subclassing esri.layers.ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627243#M58528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A lot of it has to do with representing the class in object form for a table of contents.&amp;nbsp; I worked around it by adding to esri.layers.ArcGISDynamicMapServiceLayer.prototype, although this is probably not the best solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 15:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-legend-when-subclassing-esri-layers/m-p/627243#M58528</guid>
      <dc:creator>MichaelPorter1</dc:creator>
      <dc:date>2011-07-22T15:20:38Z</dc:date>
    </item>
  </channel>
</rss>

