<?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 How to display popup on mouse-over, not on click? in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824032#M171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to display a pop-up on mouse-over rather than click.&amp;nbsp; Currently using the bindPopup method to display the information dynamically from a feature layer.&amp;nbsp; However, not certain as to the correct way to get this to work on a mouse-over instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also noticing that when I click the icon, the popup sometimes extends past the top of the page.&amp;nbsp; Any idea as to how to prevent this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, any advice how to fix the zoom and map position so that the user is unable to scroll or pan the map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsfiddle.net/BizGeographer/e37Ldsgb/" title="https://jsfiddle.net/BizGeographer/e37Ldsgb/"&gt;JSFiddle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Live:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://aquagear.site44.com/" title="http://aquagear.site44.com/"&gt;http://aquagear.site44.com/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2017 18:21:04 GMT</pubDate>
    <dc:creator>JeffTucker</dc:creator>
    <dc:date>2017-10-01T18:21:04Z</dc:date>
    <item>
      <title>How to display popup on mouse-over, not on click?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824032#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to display a pop-up on mouse-over rather than click.&amp;nbsp; Currently using the bindPopup method to display the information dynamically from a feature layer.&amp;nbsp; However, not certain as to the correct way to get this to work on a mouse-over instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also noticing that when I click the icon, the popup sometimes extends past the top of the page.&amp;nbsp; Any idea as to how to prevent this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, any advice how to fix the zoom and map position so that the user is unable to scroll or pan the map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsfiddle.net/BizGeographer/e37Ldsgb/" title="https://jsfiddle.net/BizGeographer/e37Ldsgb/"&gt;JSFiddle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Live:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://aquagear.site44.com/" title="http://aquagear.site44.com/"&gt;http://aquagear.site44.com/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 18:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824032#M171</guid>
      <dc:creator>JeffTucker</dc:creator>
      <dc:date>2017-10-01T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup on mouse-over, not on click?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824033#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your fiddle seems to not be working but I think I understand what you are trying to do.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;locations&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;bindPopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/*Insert your popup information*/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; maxWidth&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;560&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; maxHeight&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;500&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Popup object has options that are found in the leaflet documentation:&amp;nbsp;&lt;A href="https://leafletjs.com/reference-1.3.2.html#popup-l-popup" rel="nofollow noopener noreferrer" target="_blank"&gt;https://leafletjs.com/reference-1.3.2.html#popup-l-popup&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824033#M172</guid>
      <dc:creator>WinstonHoyle</dc:creator>
      <dc:date>2021-12-12T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display popup on mouse-over, not on click?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824034#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're asking too many different questions in a single geonet post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. instead of calling bindPopup(), you'll need to implement your own logic within featureLayer.on("mouseover") / featureLayer.on("mouseout") (&lt;A href="http://esri.github.io/esri-leaflet/examples/styling-feature-layer-polylines.html"&gt;example&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;2. by default, the popup option &lt;A href="https://leafletjs.com/reference-1.3.2.html#popup-autopan"&gt;autoPan&lt;/A&gt; is set to true. this should ensure that the popup is displayed even if the map has to be recentered.&lt;/P&gt;&lt;P&gt;3. check out the leaflet map constructor option &lt;A href="https://leafletjs.com/reference-1.3.2.html#map-maxbounds"&gt;maxBounds&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-display-popup-on-mouse-over-not-on-click/m-p/824034#M173</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2018-07-17T16:46:41Z</dc:date>
    </item>
  </channel>
</rss>

