<?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: Error in putting point from query on map view in 4.3 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133814#M12457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would test if the graphic is drawn by the follow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;queryTask.execute(query).then(function(results) {&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pPt = results.features[0];&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; putFeaturePointOnMap(pPt.geometry);&amp;nbsp; //I've also tried just passing in pPt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; view.center=&lt;SPAN style="background-color: #ffffff;"&gt;pPt.geometry;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; //view.scale=4000;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; //view.goTo(pPt);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 18:13:20 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2017-06-12T18:13:20Z</dc:date>
    <item>
      <title>Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133808#M12451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I wrote some javascript code to query a point based on input values, and zoom to the location and put a point graphic on the map.&amp;nbsp; The zoom and scale work fine, the query works good, but it will not draw the point on the map.&amp;nbsp; In fact , when I call the function putFeaturePointOnMap the&amp;nbsp;scale&amp;nbsp;and goTo functions don't run, so nothing happens.&amp;nbsp; If I comment out the function call, everything works OK. The alert and console.log statements fire when I run this, so I know that it's going to the function, and the console.log returns the x value of the point, so I know it's not undefined.&amp;nbsp; I've tried passing the feature itself, and the feature geometry, with no luck.&lt;/P&gt;&lt;P&gt;Thanks in advance to anyone who can answer this, I've triple checked everything and cannot understand why this will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function queryAddress() {&lt;BR /&gt;&amp;nbsp; var aVal=document.getElementById("addrNumText").value;&lt;BR /&gt;&amp;nbsp; aVal+=" " + document.getElementById("stDirCbo").value;&lt;BR /&gt;&amp;nbsp; aVal+=" " + document.getElementById("streetCbo").value;&lt;BR /&gt;&amp;nbsp; console.log(aVal);&lt;BR /&gt;&amp;nbsp; queryTask.url="&lt;A href="http://gissvr:6080/arcgis/rest/services/GilbertQuery/MapServer/8"&gt;http://gissvr:6080/arcgis/rest/services/GilbertQuery/MapServer/8&lt;/A&gt;";&lt;BR /&gt;&amp;nbsp; query.returnGeometry=true;&lt;BR /&gt;&amp;nbsp; query.outFields=["*"];&lt;BR /&gt;&amp;nbsp; query.where= "FULLADDR='" + aVal + "'";&lt;BR /&gt;&amp;nbsp; queryTask.execute(query).then(function(results) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pPt = results.features[0];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; putFeaturePointOnMap(pPt.geometry);&amp;nbsp; //I've also tried just passing in pPt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view.scale=4000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view.goTo(pPt);&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;}&lt;BR /&gt;function putFeaturePointOnMap(inPt) {&lt;BR /&gt;&amp;nbsp; window.alert("PutonMap");&lt;BR /&gt;&amp;nbsp; console.log("point=" + inPt.x);&lt;BR /&gt;&amp;nbsp; var smsMarker = new SimpleMarkerSymbol({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: [0,255,0],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; size: 12&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp; var ptGraphic = new Graphic({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry: inPt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol: smsMarker&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp; view.graphics.add(ptGraphic);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133808#M12451</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2017-06-12T16:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133809#M12452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What is the WKID of the returned query point VS the views WKID? If you add query.&lt;SPAN style="color: #4c4c4c; font-weight: 300;"&gt;outSpatialReference = view.&lt;SPAN&gt;spatialReference; then you should be good to go.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133809#M12452</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T17:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133810#M12453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i could be that your query service has different spatial reference. so the search result doesn't match with the view in terms of spatial reference. &amp;nbsp;try add one more statements on your code like this&lt;/P&gt;&lt;P&gt;query.&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#outSpatialReference" style="color: #005e95; background-color: #f8f8f8; font-weight: 300; text-decoration: underline;"&gt;outSpatialReference&lt;/A&gt;=view.&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#outSpatialReference" style="color: #005e95; background-color: #f8f8f8; font-weight: 300; text-decoration: underline;"&gt;outSpatialReference&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133810#M12453</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-12T17:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133811#M12454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.  The query layer and the view are both 2868, but I went ahead and put that line in, probably good practice anyway.  But I still have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133811#M12454</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2017-06-12T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133812#M12455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im also having the same issue with polygons, the function doesn't keep the map from zooming in like the point example, but it still doesn't draw.&amp;nbsp; I've tried passing in the feature, and the feature.geometry here also, without luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function queryQuads() {&lt;BR /&gt;&amp;nbsp; var qVal = document.getElementById("quadCbo").value;&lt;BR /&gt;&amp;nbsp; queryTask.url="&lt;A href="http://gissvr:6080/arcgis/rest/services/GilbertQuery/MapServer/10"&gt;http://gissvr:6080/arcgis/rest/services/GilbertQuery/MapServer/10&lt;/A&gt;";&lt;BR /&gt;&amp;nbsp; query.returnGeometry=true;&lt;BR /&gt;&amp;nbsp; query.outSpatialReference = view.spatialReference;&lt;BR /&gt;&amp;nbsp; query.outFields=["*"];&lt;BR /&gt;&amp;nbsp; query.where = "Quad='" + qVal + "'";&lt;BR /&gt;&amp;nbsp; //console.log("Quad='" + qVal + "'");&lt;BR /&gt;&amp;nbsp; queryTask.execute(query).then(function(results) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view.goTo(results.features);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; putFeatureOnMap(results.features[0]);&lt;BR /&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function putFeatureOnMap(geom) {&lt;BR /&gt;&amp;nbsp; window.alert("putFeatureOnMap");&lt;BR /&gt;&amp;nbsp; var sfsFill = new SimpleFillSymbol({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: [0,255,0],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outline: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: [255,0,0],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp; var polyGraphic = new Graphic({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry: geom,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol: sfsFill&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp; view.graphics.add(polyGraphic);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133812#M12455</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2017-06-12T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133813#M12456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you provide a simplified sample for testing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133813#M12456</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T17:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133814#M12457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would test if the graphic is drawn by the follow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;queryTask.execute(query).then(function(results) {&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pPt = results.features[0];&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; putFeaturePointOnMap(pPt.geometry);&amp;nbsp; //I've also tried just passing in pPt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; view.center=&lt;SPAN style="background-color: #ffffff;"&gt;pPt.geometry;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; //view.scale=4000;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; //view.goTo(pPt);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133814#M12457</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-12T18:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133815#M12458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually got it working, but I’m not sure that it’s the best way to go.  What happened is that the functions are outside of the main.js function where all the modules are brought in, so I had to declare global variables and set them in the main.js, then instead of create new instances of those variables, just reference the ones that I declared and set the properties.  So it works once, then when I do a second query, it does not create a graphic, but the original graphic stays on the map.  I am doing this for the query task also, but I am able to reuse the same query and querytask variables.  It looks like if I remove the graphic from the view, I can create a new one.  So maybe just create a bunch of point and polygon graphic variables?  It seems like there would have to be a better way.  Being fairly new to this method of programming, and javascript, I’m not sure if that’s the best way to achieve this or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//This is an excerpt showing where I declare the variables in the main body where all the esri stuff is accessable&lt;/P&gt;&lt;P&gt;  "esri/widgets/Expand",&lt;/P&gt;&lt;P&gt;  "esri/widgets/LayerList",&lt;/P&gt;&lt;P&gt;  "esri/widgets/Legend",&lt;/P&gt;&lt;P&gt;  "dojo/domReady!"&lt;/P&gt;&lt;P&gt;], function(Map, Color, Graphic,&lt;/P&gt;&lt;P&gt;  MapView, GraphicsLayer, MapImageLayer, TileLayer,&lt;/P&gt;&lt;P&gt;  Extent, Point, Polyline, Polygon,&lt;/P&gt;&lt;P&gt;  SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol,&lt;/P&gt;&lt;P&gt;  QueryTask, Query,&lt;/P&gt;&lt;P&gt;  Expand, LayerList, Legend){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  queryTask = new QueryTask();&lt;/P&gt;&lt;P&gt;  query = new Query();&lt;/P&gt;&lt;P&gt;  pointGraphic=new Graphic();&lt;/P&gt;&lt;P&gt;  polygonGraphic=new Graphic();&lt;/P&gt;&lt;P&gt;  simpleFill = new SimpleFillSymbol({&lt;/P&gt;&lt;P&gt;    color: ,&lt;/P&gt;&lt;P&gt;    outline: {&lt;/P&gt;&lt;P&gt;      color: ,&lt;/P&gt;&lt;P&gt;      width: 2&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//these are the new functions, that just set the properties of those variables defined in the main.js&lt;/P&gt;&lt;P&gt;function putFeatureOnMap(geom) {&lt;/P&gt;&lt;P&gt;  window.alert("putFeatureOnMap");&lt;/P&gt;&lt;P&gt;  polygonGraphic.geometry=geom;&lt;/P&gt;&lt;P&gt;  polygonGraphic.symbol=simpleFill;&lt;/P&gt;&lt;P&gt;  view.graphics.add(polygonGraphic);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function putFeaturePointOnMap(inPt) {&lt;/P&gt;&lt;P&gt;  pointGraphic.geometry=inPt;&lt;/P&gt;&lt;P&gt;  pointGraphic.symbol=sMarker;&lt;/P&gt;&lt;P&gt;  view.graphics.add(pointGraphic);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133815#M12458</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2017-06-12T18:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133816#M12459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put your putFeature.. function in your .require block will do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133816#M12459</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-12T18:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133817#M12460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Heming. But if you can not for some reason then just pass the view into your putFeatures along with the point geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133817#M12460</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133818#M12461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys I think you pointed me in the right direction at least.&amp;nbsp; I put the function in the require block but then the query task that was calling it couldn't find it, I even tried reordering the script files that bring in the js files in the html file.&amp;nbsp; But I see a little more clearly how this all works together now, I will keep going at it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133818#M12461</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2017-06-12T19:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in putting point from query on map view in 4.3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133819#M12462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;query.outSpatialReference = view.spatialReference;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same issue when trying to add a graphic returned from a query&amp;nbsp;in state plain to an esri basemap.&amp;nbsp; Unless the two projections are the same I think you need to set the outSpatialReference to the projection on the features you are querying so the results can be projected on the fly. Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query.outSpatialReference = { wkid:102643 };&amp;nbsp; State plain same as the features I was querying, not set to the view projection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 16:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-in-putting-point-from-query-on-map-view-in-4/m-p/133819#M12462</guid>
      <dc:creator>mattprice</dc:creator>
      <dc:date>2017-06-13T16:49:17Z</dc:date>
    </item>
  </channel>
</rss>

