<?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: WMS GetFeatureInfo on click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1208044#M78522</link>
    <description>&lt;P&gt;I did it, just added "&lt;SPAN&gt;queryable:&lt;/SPAN&gt; &lt;SPAN&gt;true" under sublayer and it works now like a charm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new WMSLayer({ url,
      sublayers: [
        {
          name: "LR_PARCELS_transparent",
          queryable: true
        }
      ]
    });&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 31 Aug 2022 07:41:45 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2022-08-31T07:41:45Z</dc:date>
    <item>
      <title>WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1207629#M78498</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I want to get WMS layer info on click as we have feature layer popup. Is there any working example i can use, or any suggestion how can i do it? All examples i saw is for old version, i use JS API 4.24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 12:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1207629#M78498</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-08-30T12:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1207710#M78501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp;- You can use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html" target="_self"&gt;esri/request&lt;/A&gt; with the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoUrl" target="_self"&gt;WMSLayer.featureInfoUrl&lt;/A&gt; to get the WMS layer info. Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/richiecarmichael/pen/rNdENop?editors=1001" target="_blank"&gt;https://codepen.io/richiecarmichael/pen/rNdENop?editors=1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 15:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1207710#M78501</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-08-30T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1208036#M78519</link>
      <description>&lt;P&gt;Hi Ann, thanks for replay.&lt;/P&gt;&lt;P&gt;Seems that it works, but when i put my WMS service link i get error :&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Uncaught (in promise)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Object&lt;/SPAN&gt;&lt;SPAN class=""&gt; { &lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"request:server"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;details&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;…&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"JSON.parse: unexpected character at line 1 column 1 of the JSON data"&lt;/SPAN&gt;&lt;SPAN class=""&gt; }, and i do not why, maybe because i use proxy to this WMS layer?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Aug 2022 07:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1208036#M78519</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-08-31T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1208044#M78522</link>
      <description>&lt;P&gt;I did it, just added "&lt;SPAN&gt;queryable:&lt;/SPAN&gt; &lt;SPAN&gt;true" under sublayer and it works now like a charm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new WMSLayer({ url,
      sublayers: [
        {
          name: "LR_PARCELS_transparent",
          queryable: true
        }
      ]
    });&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 07:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1208044#M78522</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-08-31T07:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1247540#M79865</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This example shows how to trigger&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;WMS GetFeatureInfo&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;requests on&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;click&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;for a&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;WMS&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;tile layer. Additionally layer.getData(pixel) is used to change the&amp;nbsp;&lt;A href="https://spacebarcounter.us/" target="_self"&gt; spacebar counter&amp;nbsp;&lt;/A&gt; mouse&amp;nbsp;...&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;I want to get&amp;nbsp;&lt;EM&gt;WMS&lt;/EM&gt;&amp;nbsp;layer info on&amp;nbsp;&lt;EM&gt;click&lt;/EM&gt;&amp;nbsp;as we have feature layer popup. Is there any working example i can use, or any suggestion how can i do it?When I launch this in Chrome, the map with the overlay displays fine and there is no error message in the console. However, there is no response&amp;nbsp;...Leaflet WMS + GetFeatureInfo ... Register a click listener, then do all the upstream WMS things ... Construct a GetFeatureInfo request URL given a point.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1247540#M79865</guid>
      <dc:creator>ameliasarah</dc:creator>
      <dc:date>2023-01-12T07:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: WMS GetFeatureInfo on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1247676#M79876</link>
      <description>&lt;P&gt;You can enable the popup on WMSLayer by setting &lt;FONT face="andale mono,times"&gt;popupEnabled: true&lt;/FONT&gt;, and &lt;FONT face="andale mono,times"&gt;queryable: true&lt;/FONT&gt; on the WMSSublayer. Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/gOjWNKb?editors=100" target="_blank"&gt;https://codepen.io/annefitz/pen/gOjWNKb?editors=100&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 16:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-getfeatureinfo-on-click/m-p/1247676#M79876</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-01-12T16:45:33Z</dc:date>
    </item>
  </channel>
</rss>

