<?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: map.infoWindow.setFeatures is not a function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399701#M36806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;map.infoWindow.setFeatures is only callable when you adopt a styled CSS using popup infoWindow, means you must import the popup css, and add the popup in map root dom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this solved your problem.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 06:52:58 GMT</pubDate>
    <dc:creator>JianminYu</dc:creator>
    <dc:date>2011-12-01T06:52:58Z</dc:date>
    <item>
      <title>map.infoWindow.setFeatures is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399699#M36804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using a FeatureLayer and a query task on that FeatureLayer to select features and then show the features in the info window. I've adapted the FeatureLayer Popup sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_popup.html"&gt;here&lt;/A&gt;&lt;SPAN&gt; to my needs, but don't change anything in the map click event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a certain feature layer service that I have, this sample works just fine and I'm able to adapt the infoTemplate to my needs and setFeatures does not throw a script error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I change the feature layer service URL to a different albeit similar service (think production/development services) map.infoWindow.setFeatures throws an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have searched this form and can't find any instance of this same exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about my "live" FeatureLayerservice would cause this same code to throw an error? What does my live service need to do in order to behave correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 20:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399699#M36804</guid>
      <dc:creator>AaronConnolly</dc:creator>
      <dc:date>2011-11-29T20:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: map.infoWindow.setFeatures is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399700#M36805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the url to your service public? If so can you share?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 14:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399700#M36805</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-11-30T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: map.infoWindow.setFeatures is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399701#M36806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;map.infoWindow.setFeatures is only callable when you adopt a styled CSS using popup infoWindow, means you must import the popup css, and add the popup in map root dom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this solved your problem.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 06:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399701#M36806</guid>
      <dc:creator>JianminYu</dc:creator>
      <dc:date>2011-12-01T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: map.infoWindow.setFeatures is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399702#M36807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it is very important to do this, like it is in doku:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
HTML: 
&amp;lt;link [...] popup.css"&amp;gt;

JS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var popup= new esri.dijit.Popup(null,dojo.create("div"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new esri.Map("mapDiv",{infoWindow:popup&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;without this three lines no setFeatures method. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-setfeatures-is-not-a-function/m-p/399702#M36807</guid>
      <dc:creator>RobEck</dc:creator>
      <dc:date>2021-12-11T18:14:58Z</dc:date>
    </item>
  </channel>
</rss>

