<?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 Re: JS API Error upgrading to 3.16+ from 3.11 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-error-upgrading-to-3-16-from-3-11/m-p/607599#M56839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per my favorite ESRI analyst:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;I tested it and I noticed that the issue is actually coming from the js/locator.js file in line 698, , acutally there is a code defect, since sometime map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id) is undefined, and in&amp;nbsp; js api 3.11,it is not that sensitive, but in 3.18 it is more restrict on the code, so what you will need to do is just add another if statement outside of this if, so then it should look like this(I highlited the code that I added in line 697) :&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 696 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i in neighbourHoodLayerInfo) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 697 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (neighbourHoodLayerInfo.hasOwnProperty(i)&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;&amp;amp;&amp;amp;map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id)&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 698 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id).maxScale &amp;lt;= ((mapScale) ? mapScale : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Number(dojo.byId("divShareContainer").getAttribute("mapScale"))) &amp;amp;&amp;amp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id).minScale &amp;gt;= ((mapScale) ? mapScale :&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Number(dojo.byId("divShareContainer").getAttribute("mapScale")))) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 699 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PopulateNeighbourHoodInformation(neighbourHoodLayerInfo&lt;I&gt;, mapPoint, null);&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;That fixed it!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 16:32:46 GMT</pubDate>
    <dc:creator>ChuckBenton</dc:creator>
    <dc:date>2016-11-04T16:32:46Z</dc:date>
    <item>
      <title>JS API Error upgrading to 3.16+ from 3.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-error-upgrading-to-3-16-from-3-11/m-p/607598#M56838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-size: 14px; margin-bottom: 16px;"&gt;I'm developing an App based on the Tax Parcel Viewer solution:&amp;nbsp;&lt;A class="link-titled" href="http://solutions.arcgis.com/local-government/help/tax-parcel-viewer/" title="http://solutions.arcgis.com/local-government/help/tax-parcel-viewer/"&gt;Tax Parcel Viewer | ArcGIS for Local Government&lt;/A&gt;&amp;nbsp;. &amp;nbsp;My variant&amp;nbsp;has been running using JS API 3.11.&lt;/P&gt;&lt;P style="color: #333333; font-size: 14px; margin-bottom: 16px;"&gt;I now need to add a multi-property report, and FeatureTable capability as used in&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/featuretable_custommenu.html" style="color: #4078c0;"&gt;https://developers.arcgis.com/javascript/3/jssamples/featuretable_custommenu.html&lt;/A&gt;&amp;nbsp;is an ideal solution. The featureTable functionality requlred is not available in 3.11, but is in 3.16+.&lt;/P&gt;&lt;P style="color: #333333; font-size: 14px; margin-bottom: 16px;"&gt;I've tried to get my variant of TaxParcelViewer running under 3.16, 3.17, and 3.18.&lt;/P&gt;&lt;P style="color: #333333; font-size: 14px; margin-bottom: 16px;"&gt;In all cases I get the following error: Type Error: a.id.match is not a function.&lt;/P&gt;&lt;P style="color: #333333; font-size: 14px; margin-bottom: 16px;"&gt;This is at map.addLayer on line 457, which runs without error under 3.11.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/255734_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/255735_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to resolve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-error-upgrading-to-3-16-from-3-11/m-p/607598#M56838</guid>
      <dc:creator>ChuckBenton</dc:creator>
      <dc:date>2016-11-01T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: JS API Error upgrading to 3.16+ from 3.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-error-upgrading-to-3-16-from-3-11/m-p/607599#M56839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per my favorite ESRI analyst:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;I tested it and I noticed that the issue is actually coming from the js/locator.js file in line 698, , acutally there is a code defect, since sometime map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id) is undefined, and in&amp;nbsp; js api 3.11,it is not that sensitive, but in 3.18 it is more restrict on the code, so what you will need to do is just add another if statement outside of this if, so then it should look like this(I highlited the code that I added in line 697) :&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 696 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i in neighbourHoodLayerInfo) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 697 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (neighbourHoodLayerInfo.hasOwnProperty(i)&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 12px;"&gt;&amp;amp;&amp;amp;map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id)&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 698 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id).maxScale &amp;lt;= ((mapScale) ? mapScale : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Number(dojo.byId("divShareContainer").getAttribute("mapScale"))) &amp;amp;&amp;amp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;map.getLayer(neighbourHoodLayerInfo&lt;I&gt;.id).minScale &amp;gt;= ((mapScale) ? mapScale :&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Number(dojo.byId("divShareContainer").getAttribute("mapScale")))) {&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;line 699 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PopulateNeighbourHoodInformation(neighbourHoodLayerInfo&lt;I&gt;, mapPoint, null);&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR style="color: #000000; font-size: 12px;" /&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;That fixed it!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-error-upgrading-to-3-16-from-3-11/m-p/607599#M56839</guid>
      <dc:creator>ChuckBenton</dc:creator>
      <dc:date>2016-11-04T16:32:46Z</dc:date>
    </item>
  </channel>
</rss>

