<?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: Adding a point &amp;amp; change extent = &amp;quot;Arg: Illegal input string in Vector2D&amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440669#M40672</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;SPAN&gt;I created a JavaScript map application with a zoom and highlight function and get the same error in IE too. The highlight function adds an marker to the map on the new center point. Both function become executed at the same time. I have noticed that the error comes only if the map is large and if the bounding box around the center is to close. If I add enough space to the center coordinate to zoom to the second LOD of my cached service it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have an idea or bug fix?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 12:00:56 GMT</pubDate>
    <dc:creator>JanTunger</dc:creator>
    <dc:date>2012-06-05T12:00:56Z</dc:date>
    <item>
      <title>Adding a point &amp;amp; change extent = &amp;quot;Arg: Illegal input string in Vector2D&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440660#M40663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have map displayed on my page. I have js function that adds another point and moves the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do either action independently, it works just fine. But if I add a point and change the extent in the same method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the point doesn't show&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- when I drag the mouse, I get the "Arg: Illegal input string in Vector2D" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've made sure to use the same spatialReference throughout, as that's the only thing researching the error yields (projection issues).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code (1) clears existing points, (2) adds the new point (using the map's spatialReference), (3) adds to the existing graphics layer, (4) and then centers the map around the new point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function moveHomePoint(lon, lat) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; homePT = new esri.geometry.Point(lon, lat, homeMap.spatialReference);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var homeG = new esri.Graphic(homePT, hSms, attr, infoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeLayer.add(homeG);

&amp;nbsp;&amp;nbsp;&amp;nbsp; var homeExtent = new esri.geometry.Extent(
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ymin": lat - 0.0025,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xmin": lon - 0.0025,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ymax": lat + 0.0025,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xmax": lon + 0.0025,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "spatialReference": { "wkid": 4326 }
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeMap.setExtent(homeExtent);
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again if I comment out the layer.add line, the extent is set fine. If I comment out the setExtent line, the point shows up - though I have to zoom/pan to get to it if it's not in the current extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to add the point with a JSON type spatialReference as well, with the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 14:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440660#M40663</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-17T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440661#M40664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just tried this with the same result (map moves, but no point, if you pan then you get the error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function moveHomePoint(lon, lat) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; homePT = new esri.geometry.Point(lon, lat, homeMap.spatialReference);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var homeG = new esri.Graphic(homePT, hSms, attr, infoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeLayer.add(homeG);

&amp;nbsp;&amp;nbsp;&amp;nbsp; homeMap.centerAt(homePT);
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, if I comment out the centerAt, the point shows up, but you have to manually move to it, if it's not in the current extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440661#M40664</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2021-12-11T19:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440662#M40665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One more attempt with the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Tried to add it to the map's graphics collection instead of a layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function moveHomePoint(lon, lat) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeLayer.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; homePT = new esri.geometry.Point(lon, lat, homeMap.spatialReference);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var homeG = new esri.Graphic(homePT, hSms, attr, infoTemplate);&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; homeMap.graphics.add(homeG);
&amp;nbsp;&amp;nbsp;&amp;nbsp; homeMap.centerAt(homePT);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440662#M40665</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2021-12-11T19:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440663#M40666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;More strangeness ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My map, when the page starts up, had a point in Florida. With a button click, I remove the point and another one in the same general area (but not in the current Extent) and did a centerAt(). It worked as expected - map moved and my graphic was there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I had the button click change to a point in New York City, then map moved and point didn't show, and when panning I the got the error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, if I take the centerAt() out with the NYC point, then the graphic shows up just fine - you just have to move the map manually.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 15:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440663#M40666</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-17T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440664#M40667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone have an idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 01:13:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440664#M40667</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-19T01:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440665#M40668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm still stuck on this ... am I missing a step?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine sometimes, other times I get the strange error message.&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, 20 Jan 2011 14:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440665#M40668</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-20T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440666#M40669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Am I the only one getting this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any one have an idea of how to debug this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 12:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440666#M40669</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-24T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440667#M40670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps I am going about his wrong ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I am doing something wrong and unique. The only search results about this are people who are mixing different SpatialReference values - but I am keeping them the same throughout. Plus when I set the new extent the map is showing the right area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any examples about removing existing graphics, setting a new extent and add a new graphic - via javascript?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 12:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440667#M40670</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2011-01-26T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440668#M40671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Perhaps I am going about his wrong ...&lt;BR /&gt;&lt;BR /&gt;Obviously I am doing something wrong and unique. The only search results about this are people who are mixing different SpatialReference values - but I am keeping them the same throughout. Plus when I set the new extent the map is showing the right area.&lt;BR /&gt;&lt;BR /&gt;Are there any examples about removing existing graphics, setting a new extent and add a new graphic - via javascript?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting a similar error when adding graphics and changing the map's extent. However I only see the issue in IE8. I'm using version 2.5 of the SDK. The error looks to be coming from the DOJO toolkit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Were you able to make any headway on this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 15:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440668#M40671</guid>
      <dc:creator>AaronConnolly</dc:creator>
      <dc:date>2011-10-04T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a point &amp; change extent = "Arg: Illegal input string in Vector2D"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440669#M40672</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;SPAN&gt;I created a JavaScript map application with a zoom and highlight function and get the same error in IE too. The highlight function adds an marker to the map on the new center point. Both function become executed at the same time. I have noticed that the error comes only if the map is large and if the bounding box around the center is to close. If I add enough space to the center coordinate to zoom to the second LOD of my cached service it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have an idea or bug fix?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 12:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-a-point-amp-amp-change-extent-amp-quot-arg/m-p/440669#M40672</guid>
      <dc:creator>JanTunger</dc:creator>
      <dc:date>2012-06-05T12:00:56Z</dc:date>
    </item>
  </channel>
</rss>

