<?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: Javascript API - Polygon : Very Urgent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458037#M42279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Define the polygon spatial reference before you add the ring&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. alert (thisLocs) right before you try to use it.&amp;nbsp; My guess is this is a scoping issue and it is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try changing the line to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;on(map, "load", lang.hitch(this, function(){addGraphic();}));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2014 20:32:48 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-04-28T20:32:48Z</dc:date>
    <item>
      <title>Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458035#M42277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find polygon code attached herewith.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works only with hard-coded data and not with data passed through db.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why so? Am I doing anything wrong or Is it a bug with ESRI map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched/googled a lot, even posted on forums 3 times, but didn't get any satisfactory reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please somebody look into this code and send me a sample of working code where data is passed through db, not hardcoded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dipti Sheth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458035#M42277</guid>
      <dc:creator>DiptiSheth</dc:creator>
      <dc:date>2014-04-28T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458036#M42278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have an urgent issue please call support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458036#M42278</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-28T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458037#M42279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Define the polygon spatial reference before you add the ring&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. alert (thisLocs) right before you try to use it.&amp;nbsp; My guess is this is a scoping issue and it is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try changing the line to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;on(map, "load", lang.hitch(this, function(){addGraphic();}));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458037#M42279</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-28T20:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458038#M42280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. Define the polygon spatial reference before you add the ring&lt;BR /&gt;2. alert (thisLocs) right before you try to use it.&amp;nbsp; My guess is this is a scoping issue and it is null&lt;BR /&gt;&lt;BR /&gt;try changing the line to&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;on(map, "load", lang.hitch(this, function(){addGraphic();}));&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks to you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried both the things i.e.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Defining spatial reference before adding ring&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. placing alert(thisLocs) before its use, gives its proper value. Its not null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, I changed my code to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;on(map, "load", lang.hitch(this, function(){addGraphic();}));&lt;/PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but, it doesn't call addGRaphic() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dipti Sheth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 01:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458038#M42280</guid>
      <dc:creator>DiptiSheth</dc:creator>
      <dc:date>2014-04-29T01:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458039#M42281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this is just a guess but i am pretty confident it is your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are hardcoding, you are sending an array.&amp;nbsp; When you pass as a variable, you are sending a string that Looks like an array (you replaced the )) with ]] ) but is not actually an array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you need to actually build an array or convert your string to an array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try calling dojo isArray on the variable. If it is false, that is your problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojo/isArray.html"&gt;http://dojotoolkit.org/reference-guide/1.7/dojo/isArray.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458039#M42281</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-29T11:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API - Polygon : Very Urgent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458040#M42282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;any luck with your polygon?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 12:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-polygon-very-urgent/m-p/458040#M42282</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-30T12:51:03Z</dc:date>
    </item>
  </channel>
</rss>

