<?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 Issue with mapPoint precision for IdentifyTask operation in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244639#M22636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an issue selecting features in my web map for an IdentifyTask operation. I have a dynamic map service that contains a few sublayers that I would like to be able to click and have a popup or infowindow display the attribution for the selected feature. Currently onclick of the "map", the IdentifyTask execution fires off. The problem is that the precision of the map click seems to be off. When I click a feature with the cursor, the feature is not selected and the InfoWindow displays 'No Results' way below where I clicked the cursor. The InfoWindow typically is supposed to display where a user clicks the cursor right? I have to click above the intended feature in order to actually select the feature and have the IdentifyTask recognize it. Its weird. I played around with the tolerance values for the IdentifyParameters object but no luck. Has anybody ever had a similar issue? Is there a way to specify the precision for a mapClick event? Any help would be greatly appreciated. Below is the code I'm using to show the results of the IdentifyTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//Create IdentifyTask object
userConfig.identifyTask = new esri.tasks.IdentifyTask(currentServiceUrl);

//Create and setup IdentifyParameters
userConfig.identifyParams = new esri.tasks.IdentifyParameters();
userConfig.identifyParams.height = userConfig.map.height;
userConfig.identifyParams.width = userConfig.map.width;
userConfig.identifyParams.mapExtent = userConfig.map.extent;
userConfig.identifyParams.tolerance = 3;
userConfig.identifyParams.returnGeometry = true;

//Define the layers to identify
var layersToId = [];
if (currentUtilId == "barksdale") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.barksdaleService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "malmstrom") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.malmstromService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "minot") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.minotService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "whiteman") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.whitemanService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "warren") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.warrenService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
userConfig.identifyParams.layerIds = layersToId;
userConfig.identifyParams.geometry = evt.mapPoint;

var deferred = userConfig.identifyTask.execute(userConfig.identifyParams);

deferred.addCallback(function (response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Response is array of identify result objects
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return an array of features.
&amp;nbsp;&amp;nbsp;&amp;nbsp; return dojo.map(response, function (result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attribution = feature.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templateString = "";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Parse and print the key-value pairs in the attribution object
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (prop in attribution) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateString = templateString + "&amp;lt;b&amp;gt;" + prop + "&amp;lt;/b&amp;gt;: " + attribution[prop] + "&amp;lt;br&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setTitle("Identify Results");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setContent(templateString);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setInfoTemplate(infoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});

userConfig.map.infoWindow.setFeatures([deferred]);
userConfig.map.infoWindow.show(evt.mapPoint);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 03:47:34 GMT</pubDate>
    <dc:creator>CoreyMoten</dc:creator>
    <dc:date>2013-08-29T03:47:34Z</dc:date>
    <item>
      <title>Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244639#M22636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an issue selecting features in my web map for an IdentifyTask operation. I have a dynamic map service that contains a few sublayers that I would like to be able to click and have a popup or infowindow display the attribution for the selected feature. Currently onclick of the "map", the IdentifyTask execution fires off. The problem is that the precision of the map click seems to be off. When I click a feature with the cursor, the feature is not selected and the InfoWindow displays 'No Results' way below where I clicked the cursor. The InfoWindow typically is supposed to display where a user clicks the cursor right? I have to click above the intended feature in order to actually select the feature and have the IdentifyTask recognize it. Its weird. I played around with the tolerance values for the IdentifyParameters object but no luck. Has anybody ever had a similar issue? Is there a way to specify the precision for a mapClick event? Any help would be greatly appreciated. Below is the code I'm using to show the results of the IdentifyTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//Create IdentifyTask object
userConfig.identifyTask = new esri.tasks.IdentifyTask(currentServiceUrl);

//Create and setup IdentifyParameters
userConfig.identifyParams = new esri.tasks.IdentifyParameters();
userConfig.identifyParams.height = userConfig.map.height;
userConfig.identifyParams.width = userConfig.map.width;
userConfig.identifyParams.mapExtent = userConfig.map.extent;
userConfig.identifyParams.tolerance = 3;
userConfig.identifyParams.returnGeometry = true;

//Define the layers to identify
var layersToId = [];
if (currentUtilId == "barksdale") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.barksdaleService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "malmstrom") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.malmstromService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "minot") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.minotService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "whiteman") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.whitemanService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
else if (currentUtilId == "warren") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layers = userConfig.warrenService.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layers.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layers&lt;I&gt; != 27 &amp;amp;&amp;amp; layers&lt;I&gt; != 40 &amp;amp;&amp;amp; layers&lt;I&gt; != 82) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layersToId.push(layers&lt;I&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; } //End loop
}
userConfig.identifyParams.layerIds = layersToId;
userConfig.identifyParams.geometry = evt.mapPoint;

var deferred = userConfig.identifyTask.execute(userConfig.identifyParams);

deferred.addCallback(function (response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Response is array of identify result objects
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return an array of features.
&amp;nbsp;&amp;nbsp;&amp;nbsp; return dojo.map(response, function (result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attribution = feature.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templateString = "";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Parse and print the key-value pairs in the attribution object
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (prop in attribution) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateString = templateString + "&amp;lt;b&amp;gt;" + prop + "&amp;lt;/b&amp;gt;: " + attribution[prop] + "&amp;lt;br&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setTitle("Identify Results");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setContent(templateString);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setInfoTemplate(infoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});

userConfig.map.infoWindow.setFeatures([deferred]);
userConfig.map.infoWindow.show(evt.mapPoint);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 03:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244639#M22636</guid>
      <dc:creator>CoreyMoten</dc:creator>
      <dc:date>2013-08-29T03:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244640#M22637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you checked the values for layersToID to see if they're valid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For showing the infoWindow, try using &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a difference between evt.screenPoint and evt.mapPoint&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 12:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244640#M22637</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-08-29T12:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244641#M22638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ken&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The values in layersToId appear to be valid. When the IdentifyTask executes it actually does bring the correct data back from the server. But clicking on the actual feature where it appears on the map results in the InfoWindow coming back with "No Results", basically as if I clicked an empty spot (spot with no feature present) in the map. I have to click well above the intended feature before the feature is selected and the IdentifyTask can do its thing. But when this is done the correct results come back from the map service. It seems like the problem is some kind of click precision issue within the map. I click anywhere in the map and its as if the map sees the click several screen pixels below where I actually clicked. I also tried changing from evt.mapPoint to evt.screenPoint with no luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 23:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244641#M22638</guid>
      <dc:creator>CoreyMoten</dc:creator>
      <dc:date>2013-08-29T23:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244642#M22639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to move setFeatures and show inside the callback of identify task. Otherwise, the code may hit the setFeatures when identify task not complete. That may explain you may get nothing returned sometime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var evtCopy = evt;
userConfig.identifyTask.execute(userConfig.identifyParams, function(response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Response is array of identify result objects
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return an array of features.
&amp;nbsp;&amp;nbsp;&amp;nbsp; var features = dojo.map(response, function (result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attribution = feature.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templateString = "";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Parse and print the key-value pairs in the attribution object
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (prop in attribution) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateString = templateString + "&amp;lt;b&amp;gt;" + prop + "&amp;lt;/b&amp;gt;: " + attribution[prop] + "&amp;lt;br&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setTitle("Identify Results");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate.setContent(templateString);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setInfoTemplate(infoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp; userConfig.map.infoWindow.setFeatures(features);
&amp;nbsp;&amp;nbsp;&amp;nbsp; userConfig.map.infoWindow.show(evtCopy.mapPoint);
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244642#M22639</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-11T12:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244643#M22640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried your code suggestion and that resulted in the info window not displaying at all no matter where I clicked in the map. The issue isn't really with the results returned in the info window. The results come back from the IdentifyTask correct whenever a feature is selected in the map. The issue is with the precision of the map click. I can't for the life of me figure out why the map click is being seen or "registered" by the map as being several screen pixels below where I actually click on the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2013 00:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244643#M22640</guid>
      <dc:creator>CoreyMoten</dc:creator>
      <dc:date>2013-08-31T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244644#M22641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check the layout of your page; I had a similar issue when I placed the toolbar (with the 'identify' function) in the 'div' of the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244644#M22641</guid>
      <dc:creator>GabrielaBota</dc:creator>
      <dc:date>2014-01-14T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with mapPoint precision for IdentifyTask operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244645#M22642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you resolved this issue?&amp;nbsp; I am having the same exact problem and would be happy to know anything else to check.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 22:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-mappoint-precision-for-identifytask/m-p/244645#M22642</guid>
      <dc:creator>KathieLivesley1</dc:creator>
      <dc:date>2014-03-05T22:20:11Z</dc:date>
    </item>
  </channel>
</rss>

