<?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: Mapview and hitTest with MapImageLayer  ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536739#M85643</link>
    <description>&lt;P&gt;the solution is perhaps to add each feature layer of the mapimage layer to the view map ...&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 08:04:22 GMT</pubDate>
    <dc:creator>LionelGOUBET</dc:creator>
    <dc:date>2024-09-10T08:04:22Z</dc:date>
    <item>
      <title>Mapview and hitTest with MapImageLayer  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536479#M85634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a mapView with a MapImageLayer and I try on a click on mapview the hitTest function&lt;/P&gt;&lt;P&gt;mapView.hitTest(event).then(function(response) {&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;if (response.results.length &amp;gt; 0) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response.results.forEach(function(result) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if (result.graphic) {&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;console.log("Feature sous le clic:", result.graphic.attributes);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;console.log("Aucun enregistrement trouvé sous le clic.");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;No results ... it doesn't work&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If I change the&amp;nbsp; MapImageLayer with a FeatureLayer (of my service MapImageLayer) on my mapview =&amp;gt; &lt;STRONG&gt;it works&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If I use a web map with my url from my MapImageLayer =&amp;gt; &lt;STRONG&gt;it works&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Is is normal ? the MapImageLayer is not&amp;nbsp; planned ?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;What is the solution ? use QueryTask when I use a MapImageLayer ?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sample ! &lt;A href="https://codepen.io/lgoubet/pen/YzoBaMJ" target="_blank"&gt;https://codepen.io/lgoubet/pen/YzoBaMJ&lt;/A&gt; and change bHitTest variable&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Thanks for your help&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536479#M85634</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2024-09-09T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mapview and hitTest with MapImageLayer  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536739#M85643</link>
      <description>&lt;P&gt;the solution is perhaps to add each feature layer of the mapimage layer to the view map ...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536739#M85643</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2024-09-10T08:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapview and hitTest with MapImageLayer  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536785#M85646</link>
      <description>&lt;P&gt;It seems that identify is the solution&lt;/P&gt;&lt;P&gt;see :&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/td-p/1329444" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-hittest/td-p/1329444&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-and-hittest-with-mapimagelayer/m-p/1536785#M85646</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2024-09-10T12:24:38Z</dc:date>
    </item>
  </channel>
</rss>

