<?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: FeatureLayer from json: problem with queries and popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391778#M36177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there somebody who can help me to solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2013 13:27:47 GMT</pubDate>
    <dc:creator>SantiagoHorcajo</dc:creator>
    <dc:date>2013-06-19T13:27:47Z</dc:date>
    <item>
      <title>FeatureLayer from json: problem with queries and popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391776#M36175</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;I've tried this code proposed in JSFIDDLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/xnNar/"&gt;http://jsfiddle.net/xnNar/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything "seems" to work fine, but not always. If you go down to the closer scale (level 21 I suppose) and click several times on different points of the line, sometimes you get a popup with the text "(1 of 3)" in the black section of the popup and sometimes you get the text "Buck Creek 3". Once you press in the arrow keys of the popup, this title doesn't return, you will always have the "(x of 3)" text and, besides, the order is a bit strange. Pressing the right arrow, it passes from "Buck Creek 3" to "Buck Creek 2" and after that to "Buck Creek 3" again. It's needed to press the left arrow to get to "Buck Creek 1".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have built a similar example, replacing lines with points in the json. In this case, I never get the "(1 of 3)" text when the popup has just opened. Now, similarly, if I press the arrow keys of the popup, I always get the "(x of 3)" text. And with points I have same problem with the order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if it's possible to modify this behavior? I prefer having the "(1 of 3)" text from the very beginning and see the elements in the right order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 14:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391776#M36175</guid>
      <dc:creator>SantiagoLastra</dc:creator>
      <dc:date>2013-02-13T14:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer from json: problem with queries and popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391777#M36176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;More information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem is related to the matter that the feature layer is coming from a JSON, because if I create it from an ArcGIS Server URL I'm not able to reproduce the problem. But the question is that I need to take the data from the JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The original code was proposed by Derek Swingley (a Senior Member of this forum). I have modified it to addapt it to a JSON of points. To clarify what is happening, I have added an alert. Take a look at the title and position of the popup before and after the alert. Here it is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/santiagohorcajo/fvkeD/9/"&gt;MyJSFIDDLE&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 08:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391777#M36176</guid>
      <dc:creator>SantiagoHorcajo</dc:creator>
      <dc:date>2013-02-15T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer from json: problem with queries and popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391778#M36177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there somebody who can help me to solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 13:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391778#M36177</guid>
      <dc:creator>SantiagoHorcajo</dc:creator>
      <dc:date>2013-06-19T13:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer from json: problem with queries and popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391779#M36178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally, I solved the problem by myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find the code in: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/fvkeD/12/"&gt;http://jsfiddle.net/fvkeD/12/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-from-json-problem-with-queries-and/m-p/391779#M36178</guid>
      <dc:creator>SantiagoHorcajo</dc:creator>
      <dc:date>2013-06-26T14:57:44Z</dc:date>
    </item>
  </channel>
</rss>

