<?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 Query URL Parameters Web Appbuilder in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810606#M6447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with Web Appbuilder Developers Edition 2.0 and am trying to pass query parameter through a URL to select and zoom to a map feature.&amp;nbsp; I was able to get that to work with a map service containing only one layer by following the ESRI example &lt;CODE class="usertext"&gt; query=&amp;lt;layer name&amp;gt;,&amp;lt;field name&amp;gt;,&amp;lt;field value&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a map service with several grouped layers and I want to query one of those.&amp;nbsp; The same ESRI help guide states: For&amp;nbsp; a sublayer in a group of map services, use &lt;CODE class="usertext"&gt;&amp;lt;layer id_sublayer id&amp;gt;&lt;/CODE&gt;&amp;nbsp; as the layer id.&amp;nbsp; This is confusing to me and have tried many different variations but cannot get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is below, where the group layer id = Transportation_9858, the id of the layer (gates) I want to query = 3, followed by the field name, value.&amp;nbsp; I'm not having any luck with this and wonder if I'm missing something.&amp;nbsp; The app refreshes and everything come up minus the map.&amp;nbsp; Feel like I'm close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;portal&amp;gt;/webappbuilder/apps/20?query=Transportation_9858_3,GATEID,44&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have experience querying a sublayer using this method?&amp;nbsp; If so I would love to know how you are doing that and what I might be missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 21:47:03 GMT</pubDate>
    <dc:creator>AdamVellutini</dc:creator>
    <dc:date>2016-05-25T21:47:03Z</dc:date>
    <item>
      <title>Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810606#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with Web Appbuilder Developers Edition 2.0 and am trying to pass query parameter through a URL to select and zoom to a map feature.&amp;nbsp; I was able to get that to work with a map service containing only one layer by following the ESRI example &lt;CODE class="usertext"&gt; query=&amp;lt;layer name&amp;gt;,&amp;lt;field name&amp;gt;,&amp;lt;field value&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a map service with several grouped layers and I want to query one of those.&amp;nbsp; The same ESRI help guide states: For&amp;nbsp; a sublayer in a group of map services, use &lt;CODE class="usertext"&gt;&amp;lt;layer id_sublayer id&amp;gt;&lt;/CODE&gt;&amp;nbsp; as the layer id.&amp;nbsp; This is confusing to me and have tried many different variations but cannot get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is below, where the group layer id = Transportation_9858, the id of the layer (gates) I want to query = 3, followed by the field name, value.&amp;nbsp; I'm not having any luck with this and wonder if I'm missing something.&amp;nbsp; The app refreshes and everything come up minus the map.&amp;nbsp; Feel like I'm close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;portal&amp;gt;/webappbuilder/apps/20?query=Transportation_9858_3,GATEID,44&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have experience querying a sublayer using this method?&amp;nbsp; If so I would love to know how you are doing that and what I might be missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 21:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810606#M6447</guid>
      <dc:creator>AdamVellutini</dc:creator>
      <dc:date>2016-05-25T21:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810607#M6448</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;"&gt;Adam,&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;"&gt; I have found several issues with the sublayer query url param.&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;"&gt;One the layer you are querying has to be the same WKID as the map or you will see a can not project x to 102100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Two query normally fails with complex geometry.&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;"&gt;I find that I can get more consistent results by adding this line to the MapUrlParamsHandler.js&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;query.outSpatialReference = map.spatialReference;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function selectFeatures(map, layer, queryArray){
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var prefix = '';&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not reported this to Tech support though as I do not use this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810607#M6448</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810608#M6449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though this question is answered. I just want to add some comments in case someone else run into this type of issue.&lt;/P&gt;&lt;P&gt;Checked the WAB 2.1 Developer edition file "&lt;SPAN style="background-color: #ffffff;"&gt;MapUrlParamsHandler.js" under jumu.js folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp;line 289:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;//by name first&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;getLayerByNameOrId&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'name'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layerNameOrId&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;getLayerByNameOrId&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'id'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layerNameOrId&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer2 &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;error&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Invalid layer name or id.'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;selectFeatures&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layer2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; queryArray&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;selectFeatures&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; queryArray&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is always prefer the layer' name first and then it's id. Therefore, recommend to put layer's &lt;STRONG&gt;name&lt;/STRONG&gt; after 'query='&lt;/P&gt;&lt;P&gt;For example, if you want to query this layer's &lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;STATE_NAME = 'Alabama':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer: states (ID: 3)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;In your WAB URL you should put like this, because the layer's name is state:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;A class="link-titled" href="http://nwu.esri.com:3344/webappbuilder/apps/4/?query=states,STATE_NAME,Alabama" title="http://nwu.esri.com:3344/webappbuilder/apps/4/?query=states,STATE_NAME,Alabama" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost/webappbuilder/apps/4/?query=states,STATE_NAME,Alabama&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;A class="link-titled" href="http://nwu.esri.com:3344/webappbuilder/apps/4/?query=states,STATE_NAME=%27Alabama%27" title="http://nwu.esri.com:3344/webappbuilder/apps/4/?query=states,STATE_NAME=%27Alabama%27" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost/webappbuilder/apps/4/?query=states,STATE_NAME=%27Alabama%27&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Hope this can help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810608#M6449</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2021-12-12T09:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810609#M6450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is helpful. Any chance you have advice as to whether or not the zoom level can be changed? I'd like my result to not zoom in quite as far&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://webgis.uwm.edu/TransportationServices2/?query=Parking_Lots_2266,lot_number,7" title="http://webgis.uwm.edu/TransportationServices2/?query=Parking_Lots_2266,lot_number,7"&gt;UWM Transportation Services Map - Lot 7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810609#M6450</guid>
      <dc:creator>SuzanneLiebergen1</dc:creator>
      <dc:date>2017-04-06T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810610#M6451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just a workaround solution,&amp;nbsp;and I am not sure why your application keeps throw out the error:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="345620" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345620_pastedImage_1.png" style="width: 620px; height: 258px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So technically, you need to go this file:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://webgis.uwm.edu/TransportationServices2/jimu.js/MapUrlParamsHandler.js?wab_dv=2.3" title="http://webgis.uwm.edu/TransportationServices2/jimu.js/MapUrlParamsHandler.js?wab_dv=2.3"&gt;jimu.js/MapUrlParamsHandler.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you will see that when geometryType is not Point, then do else { ...}&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="345621" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/345621_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;line 388, the code logic here is trying to setup the feature's extent (as long as it is not a point feature) as map extent. What you can do here is adding some extra logic to change the map zoom level. For example, set map current Zoom level and dynamically minus one level out, so that the map looks like&amp;nbsp;"zoom-out", for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Like I said this may not exactly work in your app, however, this should be a breakpoint that you can try to add some code to change the map behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 21:18:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810610#M6451</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-04-06T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810611#M6452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Thanks for pointing this area of the code out. The suggested solution doesn't work. It zooms the map out by one zoom factor from the default extent and not from the zoomed in alternative of the selected feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll play around with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 21:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810611#M6452</guid>
      <dc:creator>SuzanneLiebergen1</dc:creator>
      <dc:date>2017-04-06T21:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810612#M6453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's good to know. Well, I assume each time you gonna using the search widget to query all the parking lot. Therefore, same story, you need to go check the widget/Search/widget.js file and add this line of code around line 690:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;that&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;that&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345653_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty much the same concept with the previous one. Try this way to see what happened, I think you can make it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 22:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810612#M6453</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-04-06T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810613#M6454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to make it work by adding this code below the map.setExtent(resultExtent); line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/346003_changeZoom.PNG" style="width: 620px; height: 291px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810613#M6454</guid>
      <dc:creator>SuzanneLiebergen1</dc:creator>
      <dc:date>2017-04-10T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query URL Parameters Web Appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810614#M6455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear that works! Good Job!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-url-parameters-web-appbuilder/m-p/810614#M6455</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-04-10T17:19:45Z</dc:date>
    </item>
  </channel>
</rss>

