<?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 Adding null geometry to a map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165729#M15375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that when bad data is used to create a Point graphic in a graphicLayer, a point is (seemingly) randomly placed on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, the bad data is that graphic.geometry.x (and .y) is undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default map extent is about 4 when I add the point (in fact, I had a layer, then 5 points to the layer where all x and y are undefined). All points display in the middle of the USA. When I mouse scroll to zoom in/out, the points all move to the top-left visible coordinate of the map. From there, I can pan the map around, and the points stay still. The points reset to wherever the top-left visible x/y coordinate is on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what is happening? Why isn't there some kind of validation to not show anything? Bad data shouldn't result in unexpected visual data, no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I'm adding validation on my end. I found a code path where I'm setting the geometry to the value of a jQuery .val() DOM element. Once I correct it, this isn't an issue. I'm just trying to understand it better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for 3.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 13:41:24 GMT</pubDate>
    <dc:creator>TyroneBiggums</dc:creator>
    <dc:date>2015-10-26T13:41:24Z</dc:date>
    <item>
      <title>Adding null geometry to a map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165729#M15375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that when bad data is used to create a Point graphic in a graphicLayer, a point is (seemingly) randomly placed on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, the bad data is that graphic.geometry.x (and .y) is undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default map extent is about 4 when I add the point (in fact, I had a layer, then 5 points to the layer where all x and y are undefined). All points display in the middle of the USA. When I mouse scroll to zoom in/out, the points all move to the top-left visible coordinate of the map. From there, I can pan the map around, and the points stay still. The points reset to wherever the top-left visible x/y coordinate is on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what is happening? Why isn't there some kind of validation to not show anything? Bad data shouldn't result in unexpected visual data, no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I'm adding validation on my end. I found a code path where I'm setting the geometry to the value of a jQuery .val() DOM element. Once I correct it, this isn't an issue. I'm just trying to understand it better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for 3.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165729#M15375</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2015-10-26T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding null geometry to a map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165730#M15376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the graphics/points acquire a geometry after the zoom in/out event? I had some issue with this a year ago where a map click would query the x,y&amp;gt;create a graphic(invisible)&amp;gt;create a new feature in a feature layer&amp;gt;then applyEdits from the graphic geometry to the newly created feature. I noticed that the mouse location on a pan would update the graphic x,y before the apply edits took effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting how your points jump to the corner when the extent changes. Any updates on your progress?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165730#M15376</guid>
      <dc:creator>williamcarr</dc:creator>
      <dc:date>2015-10-29T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding null geometry to a map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165731#M15377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No update. If the graphic is added to the map with a null x or y, there is no telling where the point will be located. That occurs when the graphic is added, and it gets moved when the extent changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-null-geometry-to-a-map/m-p/165731#M15377</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2015-10-29T16:12:48Z</dc:date>
    </item>
  </channel>
</rss>

