<?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: centerandzoom &amp;amp; onClick event mappoint spatialreference null in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374808#M34801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Edited my previous post...just posting here so you get a notification that the thread was updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 17:09:45 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2010-09-17T17:09:45Z</dc:date>
    <item>
      <title>centerandzoom &amp;amp;amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374804#M34797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a "zoom to county" drop down that uses centerandzoom which works great however all my onclick events fail when I use the zoom because mappoint spatialreference is null until I pan the map. Once I pan the map all my onclick events work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue also affects another function that uses centerandzoom but displays a layer instead. The layer doesn't show up until I pan a little.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is too much code to post so here is a link to the app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dev.geostor.arkansas.gov/G6/Viewer.html"&gt;http://dev.geostor.arkansas.gov/G6/Viewer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All my code is in &lt;/SPAN&gt;&lt;A href="http://dev.geostor.arkansas.gov/G6/js/Viewer.js"&gt;http://dev.geostor.arkansas.gov/G6/js/Viewer.js&lt;/A&gt;&lt;SPAN&gt; and the two functions I'm referring to are zoomCounty() and xyZoom()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 15:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374804#M34797</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T15:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374805#M34798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Glen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took a look but I'm not quite clear on what specifically is failing. Can you elaborate?&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, 17 Sep 2010 16:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374805#M34798</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374806#M34799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I see what you're describing. I think this is where you're spatialReference is getting screwed up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var pnt = new esri.geometry.Point(Number(temp[0]),Number(temp[1],new esri.SpatialReference({ wkid: 26915})));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You've got a paren out of place. Add a closing paren after your second Number() function call on line 598 and take one off of the end of that line in viewer.js.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 16:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374806#M34799</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374807#M34800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's what I tried to do but I couldn't find any way to populate that for a mappoint. I may go ahead and call support but I usually figure it out right after I call them &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 16:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374807#M34800</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374808#M34801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Edited my previous post...just posting here so you get a notification that the thread was updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374808#M34801</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T17:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374809#M34802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice catch! Yep that fixed it, been looking for that one (off and on) for awhile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374809#M34802</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374810#M34803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know it's working now but IMO it shouldn't send a null spatial reference just because I use centerandzoom...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI, you listening?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374810#M34803</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374811#M34804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm guessing someone from Esri will see this but what do you want them to do? I mean, the problem was a syntax error in your code. Granted, it resulted in the API acting kind of strange but the source of the issue was your code. Maybe you should still contact support if you think this is a legitimate bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374811#M34804</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T17:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374812#M34805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I put the spatial references in there to make it work because the events were showing null after I used centerandzoom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you should have to manually re-define the spatial reference just because you use centerandzoom, it should still be defined and not null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my mind, that's a bug...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374812#M34805</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T17:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374813#M34806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the doc for esri.geometry.Point:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/point.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/point.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial reference is listed as required...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 18:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374813#M34806</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T18:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374814#M34807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahhh I see what you're saying now. Because I didn't define the spatial reference on the point when I used centerandzoom the spatial reference was null until I panned some. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sigh. I'm usually pretty good about RTFM'ing too &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for all your time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 18:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374814#M34807</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-09-17T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: centerandzoom &amp; onClick event mappoint spatialreference null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374815#M34808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem, my pleasure to help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 18:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-amp-amp-amp-onclick-event-mappoint/m-p/374815#M34808</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-09-17T18:26:04Z</dc:date>
    </item>
  </channel>
</rss>

