<?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: Why does fromArcGISServerUrl not support popups? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719845#M66813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Using a webmap or portalitem is what carries over the popup configuration. Using the url to create a new FeatureLayer has no knowledge of the popup you configured in the web map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 17:34:59 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-03-08T17:34:59Z</dc:date>
    <item>
      <title>Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719844#M66812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can load a feature layer, but the popup data associated with the FeatureLayer does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can load the same item by calling fromPortalItem and it has popups.&amp;nbsp; Is there a way to load a FeatureLayer by URL instead of ID that will allow popups??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a code example of a FeatureLayer I created for a coffee shop in Phoenix.&amp;nbsp; If I query by id, the popup shows, but if I query by the service URL, the coffee shop shows but not the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SANDBOX EXAMPLE&lt;/STRONG&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;FeatureLayer - 4.6&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.6%2Fesri%2Fcss%2Fmain.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.6/esri/css/main.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.6%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.6/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; require([&lt;BR /&gt; "esri/Map",&lt;BR /&gt; "esri/views/MapView",&lt;BR /&gt; "esri/layers/Layer",&lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt;"esri/widgets/Popup",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ],&lt;BR /&gt; function(&lt;BR /&gt; Map, MapView, Layer,&lt;BR /&gt; FeatureLayer, Popup&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt; basemap: "hybrid"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; map: map,&lt;/P&gt;&lt;P&gt;extent: { // autocasts as new Extent()&lt;BR /&gt; xmin: -9177811,&lt;BR /&gt; ymin: 4247000,&lt;BR /&gt; xmax: -9176791,&lt;BR /&gt; ymax: 4247784,&lt;BR /&gt; spatialReference: 102100&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;/********************&lt;BR /&gt; * Add feature layer&lt;BR /&gt; ********************/&lt;/P&gt;&lt;P&gt;// Carbon storage of trees in Warren Wilson College.&lt;BR /&gt; var featureLayer = new FeatureLayer({&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices5.arcgis.com%2FQGM0VeSNqhUanPGN%2Farcgis%2Frest%2Fservices%2FCoffee_Shops__Custom_Data_Sample%2FFeatureServer" rel="nofollow" target="_blank"&gt;https://services5.arcgis.com/QGM0VeSNqhUanPGN/arcgis/rest/services/Coffee_Shops__Custom_Data_Sample/FeatureServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.add(featureLayer);&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 17:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719844#M66812</guid>
      <dc:creator>Travis_L_Riffle</dc:creator>
      <dc:date>2018-03-08T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719845#M66813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Using a webmap or portalitem is what carries over the popup configuration. Using the url to create a new FeatureLayer has no knowledge of the popup you configured in the web map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 17:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719845#M66813</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-08T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719846#M66814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There doesn't seem to be a way to query a portal item by service URL.&amp;nbsp; You can set the URL property of the portal item, but that doesn't return anything.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 18:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719846#M66814</guid>
      <dc:creator>Travis_L_Riffle</dc:creator>
      <dc:date>2018-03-12T18:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719847#M66815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You have completely lost me here. If you want access to the layer popup you configured in Portal/AGOL then you need to use the WebMap ID in your code.&lt;/P&gt;&lt;P&gt;You get a PortalItem from a Portal class query method:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems" title="https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems"&gt;https://developers.arcgis.com/javascript/3/jsapi/portal-amd.html#queryitems&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 22:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719847#M66815</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-12T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719848#M66816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the 4.6 version of the API.&amp;nbsp; We are wanting to use the service URL to retrieve the portal Item.&amp;nbsp; You can retrieve the feature layer without the popup with the fromArcGisServerUrl method or fromPortalItem method which returns the popup.&amp;nbsp; I'm trying to use the service URL to return the portalItem/feature layer with the popup.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 21:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719848#M66816</guid>
      <dc:creator>Travis_L_Riffle</dc:creator>
      <dc:date>2018-03-13T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why does fromArcGISServerUrl not support popups?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719849#M66817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As I have mentioned already the layer.&lt;SPAN style="background-color: #ffffff;"&gt;fromArcGisServerUrl&lt;SPAN&gt;&amp;nbsp;just creates a new layer that has no concept of a popup that was configured using AGOL/Portal. Let me try and break this down for you. The portalItem/WebMap is a json text that stores information like the popup and symbology and other items along with the url to the specific service that is used. A url to a map service does not have access to any of this information as it is just accessing the MapService directly on ArcGIS Server.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Hopefully this clears things up for you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-fromarcgisserverurl-not-support-popups/m-p/719849#M66817</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-14T13:41:45Z</dc:date>
    </item>
  </channel>
</rss>

