<?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 defining a new Layer type in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-defining-a-new-layer-type/m-p/462996#M42797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to define a new layer type by subclassing esri.layers.Layer, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.declare('ngdc.PairedMapServiceLayer',[esri.layers.Layer],{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is that when I try to fire the onLoad event, e.g. "this.onLoad(this);", I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: _4e2 is undefined&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 48&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This happens regardless of whether I use the onLoad function inherited from esri.layers.Layer or whether I override it w/ my own definition inside the class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Feb 2011 18:17:45 GMT</pubDate>
    <dc:creator>JohnCartwright</dc:creator>
    <dc:date>2011-02-26T18:17:45Z</dc:date>
    <item>
      <title>problem defining a new Layer type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-defining-a-new-layer-type/m-p/462996#M42797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to define a new layer type by subclassing esri.layers.Layer, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.declare('ngdc.PairedMapServiceLayer',[esri.layers.Layer],{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is that when I try to fire the onLoad event, e.g. "this.onLoad(this);", I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: _4e2 is undefined&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 48&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This happens regardless of whether I use the onLoad function inherited from esri.layers.Layer or whether I override it w/ my own definition inside the class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Feb 2011 18:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-defining-a-new-layer-type/m-p/462996#M42797</guid>
      <dc:creator>JohnCartwright</dc:creator>
      <dc:date>2011-02-26T18:17:45Z</dc:date>
    </item>
  </channel>
</rss>

