<?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: Creating mouseOver and onClick events in embedded map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-mouseover-and-onclick-events-in-embedded/m-p/1026006#M71744</link>
    <description>&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;hitTest()&lt;/A&gt; method of MapView. I think you can use it to do what you need. Here's a &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/" target="_self"&gt;sample app&lt;/A&gt; with pointer-move event.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 18:50:58 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-02-11T18:50:58Z</dc:date>
    <item>
      <title>Creating mouseOver and onClick events in embedded map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-mouseover-and-onclick-events-in-embedded/m-p/1025973#M71743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am very new to ArcGIS. I have a web page that contains an embedded map of an area that contains several regions. I would like to create onmouseover and onclick events for the regions on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;onmouseover: region polygon becomes visible.&lt;/P&gt;&lt;P&gt;onclick: a new tab opens linked to an information page and gallery of the region.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have worked with SVG on other sites where the path is wrapped in an anchor tag and CSS controls path colour. Example:&lt;/P&gt;&lt;P&gt;CSS:&amp;nbsp;.region-svg:hover { fill: #003366; }&lt;/P&gt;&lt;P&gt;HTML:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="&lt;A href="http://www.somepage.com" target="_blank" rel="noopener"&gt;www.somepage.com&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;svg width="400" height="110"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;rect class="region-svg" width="300" height="100" style="fill:#006600;stroke-width:3;stroke:rgb(0,0,0)" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/svg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/a&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to attain a similar effect with an embedded ArcGIS map? The map is served from a portal and I can edit all sort of attributes, and popups, but I do not want the popup, I want it to highlight the region on mouse over, and on click go to a specific url for each region. Is there a way to do this with ArcGIS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-mouseover-and-onclick-events-in-embedded/m-p/1025973#M71743</guid>
      <dc:creator>DaphneShaed</dc:creator>
      <dc:date>2021-02-11T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating mouseOver and onClick events in embedded map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-mouseover-and-onclick-events-in-embedded/m-p/1026006#M71744</link>
      <description>&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;hitTest()&lt;/A&gt; method of MapView. I think you can use it to do what you need. Here's a &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/" target="_self"&gt;sample app&lt;/A&gt; with pointer-move event.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-mouseover-and-onclick-events-in-embedded/m-p/1026006#M71744</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-02-11T18:50:58Z</dc:date>
    </item>
  </channel>
</rss>

