<?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: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561224#M14938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to clarify what you said; your saying the only two work flows that are supported by web app builder are:&lt;/P&gt;&lt;P&gt;1. add services within a web map, that is referenced by the web app builder application or&lt;/P&gt;&lt;P&gt;2. add services into interactions with the widgets themselves. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not a way to add services (a layer) within the web app builder JavaScript code, that same way you would add a layer programmatically like:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="js"&gt;&lt;SPAN class="hljs-built_in"&gt;require&lt;/SPAN&gt;([&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/Map"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/views/SceneView"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/layers/TileLayer"&lt;/SPAN&gt;,&amp;nbsp; &lt;SPAN class="hljs-comment"&gt;// Require the TileLayer module&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"dojo/domReady!"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="hljs-function"&gt;&lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="hljs-params"&gt;&lt;BR /&gt;&amp;nbsp; Map, SceneView, TileLayer&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;) &lt;/SPAN&gt;{&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; transportationLyr = &lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt; TileLayer({&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; url: &lt;SPAN class="hljs-string"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FReference%2FWorld_Transportation%2FMapServer" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; housingLyr = &lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt; TileLayer({&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; url: &lt;SPAN class="hljs-string"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2FnGt4QxSblgDfeJn9%2Farcgis%2Frest%2Fservices%2FNew_York_Housing_Density%2FMapServer" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/New_York_Housing_Density/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/get-started-layers/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/get-started-layers/index.html"&gt;Get started with layers | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 19:56:41 GMT</pubDate>
    <dc:creator>AntoineBartholomew</dc:creator>
    <dc:date>2016-07-28T19:56:41Z</dc:date>
    <item>
      <title>Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561222#M14936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to consume REST services within Web app builder, that are not added into the initially created web map.&amp;nbsp; I want to be able to work with (consume) services without linking the service into the web map.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;If I want to add a REST URL into my map, without adding the REST service into a Web Map (1st); can I use the FeaturelayerServiceBrowser class to accomplish this?&amp;nbsp; &lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/featurelayerservicebrowser.htm"&gt;https://developers.arcgis.com/web-appbuilder/api-reference/featurelayerservicebrowser.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; How can I add data layers to the Web APP without first adding the layer into a web map?&amp;nbsp; Can I directly pull JSON (GeoJSON?) data into the web map like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="http://www.geothread.net/importing-geojson-data-in-arcgis-javascript-maps/"&gt;http://www.geothread.net/importing-geojson-data-in-arcgis-javascript-maps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/17970"&gt;https://community.esri.com/thread/17970&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; All I can find is the link below that says this type of work flow is not supported. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2015/04/06/clarifying-3-questions-about-web-appbuilder-for-arcgis/"&gt;https://blogs.esri.com/esri/arcgis/2015/04/06/clarifying-3-questions-about-web-appbuilder-for-arcgis/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561222#M14936</guid>
      <dc:creator>AntoineBartholomew</dc:creator>
      <dc:date>2016-07-28T18:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561223#M14937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antoine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In WAB 2.1 there is an add data widget&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/widget-add-data.htm#GUID-9DE7CD3B-9A24-43ED-86AB-3E30356B533E" title="https://developers.arcgis.com/web-appbuilder/guide/widget-add-data.htm#GUID-9DE7CD3B-9A24-43ED-86AB-3E30356B533E"&gt;Add Data widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also some custom widgets like the LocalLayer widget&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/119548"&gt;LocalLayerWidget and AccessifizrWidget&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-7629"&gt;AddLayer Widget&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-6263"&gt;Add Service Widget 1.2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no matter what you have to have a WebMap to start with and then the above widgets allow you to add additional services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561223#M14937</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-28T18:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561224#M14938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to clarify what you said; your saying the only two work flows that are supported by web app builder are:&lt;/P&gt;&lt;P&gt;1. add services within a web map, that is referenced by the web app builder application or&lt;/P&gt;&lt;P&gt;2. add services into interactions with the widgets themselves. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not a way to add services (a layer) within the web app builder JavaScript code, that same way you would add a layer programmatically like:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="js"&gt;&lt;SPAN class="hljs-built_in"&gt;require&lt;/SPAN&gt;([&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/Map"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/views/SceneView"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"esri/layers/TileLayer"&lt;/SPAN&gt;,&amp;nbsp; &lt;SPAN class="hljs-comment"&gt;// Require the TileLayer module&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-string"&gt;"dojo/domReady!"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="hljs-function"&gt;&lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="hljs-params"&gt;&lt;BR /&gt;&amp;nbsp; Map, SceneView, TileLayer&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;) &lt;/SPAN&gt;{&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; transportationLyr = &lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt; TileLayer({&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; url: &lt;SPAN class="hljs-string"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FReference%2FWorld_Transportation%2FMapServer" rel="nofollow" target="_blank"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; housingLyr = &lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt; TileLayer({&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; url: &lt;SPAN class="hljs-string"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2FnGt4QxSblgDfeJn9%2Farcgis%2Frest%2Fservices%2FNew_York_Housing_Density%2FMapServer" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/New_York_Housing_Density/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/get-started-layers/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/get-started-layers/index.html"&gt;Get started with layers | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 19:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561224#M14938</guid>
      <dc:creator>AntoineBartholomew</dc:creator>
      <dc:date>2016-07-28T19:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561225#M14939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Antoine,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;No you can add layers by code just as the custom widgets do, but there is no configuration that allows you to specify a certain map service in a json file that the WAB stemApp automatically reads and just adds to the map for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561225#M14939</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-28T20:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561226#M14940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antoine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can add any layer (that is supported by ArcGIS JS API) to the Map object in WAB app the same way you do it using ArcGIS JS API. &lt;/P&gt;&lt;P&gt;If you want to add layer into the map at app startup then put your code in the widget that is configured as&amp;nbsp; "WidgetOnScreen". and put your code to add layer in widget's postCreate or startup function. (can also specify the layer url in the widgets config). Every widget inherited from "jimu/BaseWidget" does have reference to the map object. You can simply add any layer into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make REST service requests from the WAB use "esri.request" or "dojo/request" or any other JS request handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561226#M14940</guid>
      <dc:creator>GirishYadav</dc:creator>
      <dc:date>2016-07-28T20:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to consume REST services within Web app builder that are not included within the Web Map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561227#M14941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that you have to add each service URL individually as an Operational Layer -&amp;gt; &lt;A href="http://resources.arcgis.com/en/help/arcgis-web-map-json/#/operationalLayer/02qt00000006000000/"&gt;http://resources.arcgis.com/en/help/arcgis-web-map-json/#/operationalLayer/02qt00000006000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then once the layers are showing overtop of the base map, create the pop-up -&amp;gt; &lt;A href="http://resources.arcgis.com/en/help/arcgis-web-map-json/#/popupInfo/02qt00000008000000/"&gt;http://resources.arcgis.com/en/help/arcgis-web-map-json/#/popupInfo/02qt00000008000000/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 17:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/does-anyone-know-how-to-consume-rest-services/m-p/561227#M14941</guid>
      <dc:creator>AntoineBartholomew</dc:creator>
      <dc:date>2016-10-06T17:21:45Z</dc:date>
    </item>
  </channel>
</rss>

