<?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: Multiple Feature in the &amp;quot;Info&amp;quot; Popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307064#M28186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The default behavior only returns the graphic "on top" I believe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = pointToExtent(map, evt.mapPoint, 10); //buffers click point by number of pixels(10)

&amp;nbsp;&amp;nbsp;&amp;nbsp; var select = featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW);
&amp;nbsp;&amp;nbsp;&amp;nbsp; select.then(function(features) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features result: ", features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures(features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(e.mapPoint);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, function(err) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features error: ", err);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});

//this is just a function that buffers the click point by number of pixels and returns an Extent.
function pointToExtent(map, point, toleranceInPixel) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelWidth = map.extent.getWidth() / map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var toleraceInMapCoords = toleranceInPixel * pixelWidth;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return new esri.geometry.Extent(point.x - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.x + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.spatialReference);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hat tip to Derek Swingley and his help here (&lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/q/22025/5282" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gis.stackexchange.com/q/22025/5282&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:42:23 GMT</pubDate>
    <dc:creator>ChadWilcomb</dc:creator>
    <dc:date>2021-12-11T14:42:23Z</dc:date>
    <item>
      <title>Multiple Feature in the &amp;amp;quot;Info&amp;amp;quot; Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307062#M28184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I'm facing an issue with the Popup window. When I click on a layer with multiple overlapped features I'm not able to display in the same popup window the information related to these features (allowing the user to slide the information for the different overlapped features with arrows button like in the following example &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_popup.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_popup.html&lt;/A&gt;&lt;SPAN&gt;). I'm using the following code to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(featLayer, "onClick", function (evt) {
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures([evt.graphic]);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.mapPoint);
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is able to find all the overlapped features but not to set the correct visualization of their information in the popup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I sort out this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you everybody.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307062#M28184</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2021-12-11T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307063#M28185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi everybody,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I'm facing an issue with the Popup window. When I click on a layer with multiple overlapped features I'm not able to display in the same popup window the information related to these features (allowing the user to slide the information for the different overlapped features with arrows button like in the following example &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_popup.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_popup.html&lt;/A&gt;). I'm using the following code to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(featLayer, "onClick", function (evt) {
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures([evt.graphic]);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.mapPoint);
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;It is able to find all the overlapped features but not to set the correct visualization of their information in the popup.&lt;BR /&gt;&lt;BR /&gt;How can I sort out this issue?&lt;BR /&gt;&lt;BR /&gt;Thank you everybody.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A quick clarification the multiple popUp works properly in another feature layer...in the one where it doesn't work I've sat a definitionExpression to show only some features...can this be the source of the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore I discovered that the evt.graphic contains only one feature although there are two overlapping features. Why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307063#M28185</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2021-12-11T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307064#M28186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The default behavior only returns the graphic "on top" I believe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = pointToExtent(map, evt.mapPoint, 10); //buffers click point by number of pixels(10)

&amp;nbsp;&amp;nbsp;&amp;nbsp; var select = featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW);
&amp;nbsp;&amp;nbsp;&amp;nbsp; select.then(function(features) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features result: ", features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures(features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(e.mapPoint);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, function(err) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features error: ", err);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});

//this is just a function that buffers the click point by number of pixels and returns an Extent.
function pointToExtent(map, point, toleranceInPixel) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelWidth = map.extent.getWidth() / map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var toleraceInMapCoords = toleranceInPixel * pixelWidth;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return new esri.geometry.Extent(point.x - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.x + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.spatialReference);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hat tip to Derek Swingley and his help here (&lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/q/22025/5282" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gis.stackexchange.com/q/22025/5282&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307064#M28186</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2021-12-11T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307065#M28187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've figured out what the problem is! when I change the definition expression in my feature layer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the old features remain on the layer for a while (until I click on another "new" feature), so if I've got overlappend features and I click on a "new" one the function find two feature at the same point (the old one and the new). I don't get this behavior if I first click on a "new" not-overlapped feature and then I click on the "new overlapped"&amp;nbsp; feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I was clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The default behavior only returns the graphic "on top" I believe.&lt;BR /&gt;&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = pointToExtent(map, evt.mapPoint, 10); //buffers click point by number of pixels(10)

&amp;nbsp;&amp;nbsp;&amp;nbsp; var select = featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW);
&amp;nbsp;&amp;nbsp;&amp;nbsp; select.then(function(features) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features result: ", features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures(features);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(e.mapPoint);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, function(err) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("select features error: ", err);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});

//this is just a function that buffers the click point by number of pixels and returns an Extent.
function pointToExtent(map, point, toleranceInPixel) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pixelWidth = map.extent.getWidth() / map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var toleraceInMapCoords = toleranceInPixel * pixelWidth;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return new esri.geometry.Extent(point.x - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y - toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.x + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.y + toleraceInMapCoords,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.spatialReference);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hat tip to Derek Swingley and his help here (&lt;A href="http://gis.stackexchange.com/q/22025/5282" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gis.stackexchange.com/q/22025/5282&lt;/A&gt;)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307065#M28187</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2021-12-11T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307066#M28188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hard to tell why that would be happening, but maybe you just need to do something like this when setting your definition expression?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
map.removeLayer(featureLayer);
featureLayer.setDefinitionExpression(qstring);
map.addLayer(featureLayer);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've figured out what the problem is! when I change the definition expression in my feature layer, &lt;BR /&gt;the old features remain on the layer for a while (until I click on another "new" feature), so if I've got overlappend features and I click on a "new" one the function find two feature at the same point (the old one and the new). I don't get this behavior if I first click on a "new" not-overlapped feature and then I click on the "new overlapped"&amp;nbsp; feature.&lt;BR /&gt;I hope I was clear.&lt;BR /&gt;What do you think about?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307066#M28188</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2021-12-11T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307067#M28189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hard to tell why that would be happening, but maybe you just need to do something like this when setting your definition expression?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
map.removeLayer(featureLayer);
featureLayer.setDefinitionExpression(qstring);
map.addLayer(featureLayer);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cwilcomb, I tested your solution but it doesn't work. However the first solution you suggested should work, but not, and the behavior of the application it's very strange...I think about two chances:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-I'm doing something wrong in the way I use the DefinitionExpression,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-It is a bug in the javascript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, please, someone of the ESRI Support Provide me Help!I'll be glad to you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a special thanks to cwilcomb xD&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307067#M28189</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2021-12-11T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307068#M28190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;cwilcomb, I tested your solution but it doesn't work. However the first solution you suggested should work, but not, and the behavior of the application it's very strange...I think about two chances:&lt;BR /&gt;-I'm doing something wrong in the way I use the DefinitionExpression,&lt;BR /&gt;-It is a bug in the javascript API.&lt;BR /&gt;&lt;BR /&gt;So, please, someone of the ESRI Support Provide me Help!I'll be glad to you!&lt;BR /&gt;&lt;BR /&gt;And a special thanks to cwilcomb xD&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have all of the code that I posted working in my application so it's not a bug in the API. You should probably post a reproduce-able code sample to get more/better responses. I just jumped in because I was working on something very similar this week. You'll get it worked out eventually!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 19:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307068#M28190</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2012-03-29T19:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307069#M28191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have all of the code that I posted working in my application so it's not a bug in the API. You should probably post a reproduce-able code sample to get more/better responses. I just jumped in because I was working on something very similar this week. You'll get it worked out eventually!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code you posted (the first) works very well, the issue I get is the one that comes out only when I've got overlapped features and I change the definitionExpression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've figured out what the problem is! when I change the definition expression in my feature layer, &lt;BR /&gt;the old features remain on the layer for a while (until I click on another "new" feature), so if I've got overlappend features and I click on a "new" one the function find two feature at the same point (the old one and the new). I don't get this behavior if I first click on a "new" not-overlapped feature and then I click on the "new overlapped" feature.&lt;BR /&gt;I hope I was clear.&lt;BR /&gt;What do you think about?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 19:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307069#M28191</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2012-03-29T19:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307070#M28192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cwclimb, I tested the following code, the result is that when the layer has been readded (with the definitionExpression set) are shown all the feature of the layer...In your application is it working correctly?(the definition expression is honored)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.removeLayer(featureLayer);
featureLayer.setDefinitionExpression(qstring);
map.addLayer(featureLayer);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307070#M28192</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2021-12-11T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Feature in the "Info" Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307071#M28193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Cwclimb, I tested the following code, the result is that when the layer has been readded (with the definitionExpression set) are shown all the feature of the layer...In your application is it working correctly?(the definition expression is honored)&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.removeLayer(featureLayer);
featureLayer.setDefinitionExpression(qstring);
map.addLayer(featureLayer);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, this is working as expected in my applications, where qstring represents a valid WHERE statement, like "FIELD_NAME='Value'".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-feature-in-the-amp-amp-quot-info-amp-amp/m-p/307071#M28193</guid>
      <dc:creator>ChadWilcomb</dc:creator>
      <dc:date>2021-12-11T14:42:36Z</dc:date>
    </item>
  </channel>
</rss>

