<?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: Trying to get a WFSLayer to use the bbox parameter. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155466#M76711</link>
    <description>&lt;P&gt;I have same question or similar.&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/483159" target="_blank"&gt;@LewInMadrid&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; asks about get bbox dynamically, getting service on demand dynamically. When you are over it in map view&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Mar 2022 17:33:28 GMT</pubDate>
    <dc:creator>igarcia_genasys</dc:creator>
    <dc:date>2022-03-19T17:33:28Z</dc:date>
    <item>
      <title>Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1154665#M76685</link>
      <description>&lt;P&gt;Hi ESRI Community.&lt;/P&gt;&lt;P&gt;We would like our WFS requests from the JavaScript library to use the bbox parameter, requesting just the features in the current window. Currently the request brings back all the features which for a some layers is not viable as it could mean requesting 100s of Mbytes.&lt;/P&gt;&lt;P&gt;We thought that the mode parameter might help but get a read-only exception when doing the following.&lt;/P&gt;&lt;P&gt;// create and add a WFSLayer to the map&lt;BR /&gt;const layer = new WFSLayer({&lt;BR /&gt;url: "&lt;A href="https://geobretagne.fr/geoserver/ows" target="_blank"&gt;https://geobretagne.fr/geoserver/ows&lt;/A&gt;", // url to your WFS endpoint&lt;BR /&gt;name: "fma:bvme_zhp_vs_culture", // name of the FeatureType&lt;BR /&gt;copyright: "GéoBretagne",&lt;BR /&gt;&lt;STRONG&gt;mode:1&lt;/STRONG&gt;&lt;BR /&gt;});&lt;BR /&gt;map.add(layer);&lt;/P&gt;&lt;P&gt;Any ideas how to get around this problem?&lt;/P&gt;&lt;P&gt;We're using MapServer to provide the WFS service.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 10:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1154665#M76685</guid>
      <dc:creator>LewInMadrid</dc:creator>
      <dc:date>2022-03-17T10:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155411#M76709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/483159"&gt;@LewInMadrid&lt;/a&gt;&amp;nbsp;- you can use the customParameters property to use the bbox parameter. There's an example in the documentation here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#customParameters" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#customParameters&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 22:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155411#M76709</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-03-18T22:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155466#M76711</link>
      <description>&lt;P&gt;I have same question or similar.&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/483159" target="_blank"&gt;@LewInMadrid&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; asks about get bbox dynamically, getting service on demand dynamically. When you are over it in map view&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 17:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155466#M76711</guid>
      <dc:creator>igarcia_genasys</dc:creator>
      <dc:date>2022-03-19T17:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155607#M76720</link>
      <description>&lt;P&gt;Isaac is right. This only works if the bbox can be sent dynamically as you zoom and scroll around the map. If you have a Gbyte of spatial data it's dynamic bbox or bust.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155607#M76720</guid>
      <dc:creator>LewInMadrid</dc:creator>
      <dc:date>2022-03-21T08:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155792#M76731</link>
      <description>&lt;P&gt;Ah, I see - you can still do this using customParameters - just update the bbox in the customParameters whenever you change the extent of the view and call refresh(). Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/ycabon/pen/GRyqVPp?editors=1000" target="_blank"&gt;https://codepen.io/ycabon/pen/GRyqVPp?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 16:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1155792#M76731</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-03-21T16:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1158848#M76847</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Now I find that it takes a long time to load the WFS, I see that the server is called 3 times, but I do not understand why.&lt;BR /&gt;I would like to be able to call the service only when I move the map or just load it once and then refresh when I move around the map&lt;/P&gt;&lt;P&gt;This is a example of my code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;wfsurl&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'/mapserver?'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;wfsLayer = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;WFSLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&amp;nbsp;example&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;wfsurl&lt;/SPAN&gt;&lt;SPAN&gt;, //&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"wfs_layers"&lt;/SPAN&gt;&lt;SPAN&gt;, //table name of mysql&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;customParameters&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;mapfile&lt;/SPAN&gt;&lt;SPAN&gt;, //my file .map&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;company_id&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;layer_name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&amp;nbsp;cities&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outFields&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;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(wfsLayer&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="igarcia_genasys_0-1648560025145.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37567i1193DA2746A762C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="igarcia_genasys_0-1648560025145.png" alt="igarcia_genasys_0-1648560025145.png" /&gt;&lt;/span&gt;&lt;P&gt;How can I optimize it so that it takes a short time to load, even if it is reducing the number of features?&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1158848#M76847</guid>
      <dc:creator>igarcia_genasys</dc:creator>
      <dc:date>2022-03-29T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get a WFSLayer to use the bbox parameter.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1330592#M82261</link>
      <description>&lt;P&gt;A little bit late here, but it worked for me, and so it may work for others as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can initialize the WFSLayer with a custom parameter of COUNT=1&amp;nbsp;to avoid the massive lookup request from the JSAPI web worker:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new WFSLayer({
  url: "https://geobretagne.fr/geoserver/ows",
  name: "fma:bvme_zhp_vs_culture",
  customParameters: {
    COUNT: 1,
  },
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;You can than reset this parameter when the layer is loaded successfully.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 13:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-a-wfslayer-to-use-the-bbox-parameter/m-p/1330592#M82261</guid>
      <dc:creator>SebastianFrey1</dc:creator>
      <dc:date>2023-09-20T13:28:17Z</dc:date>
    </item>
  </channel>
</rss>

