<div dir="ltr">This should work. The logic for switching the cursor back to the default should check if any elements are selected, though. See here:<div><a href="https://opengeoscience.github.io/geojs/tutorials/editor/?src=lZLBTuMwEIbvfYpZQLIjea0S6KoEFQ5Ie1qJ4x4QBxNPSiCJI9sJdFHefcdu2kaVVrAn2..MfDPjmV5ZqFULK1ijkXTjHzOAxmjM4OSU3ieC3jk2Hm0GH-8ZLORCwIbOVC6HYPxjTJ3B1WxIrmc94Yyrf6kNWmJSvMwtKo9R4YxsjNyiX0F6Z.GfvqOdjdjWVBtym0aN.j-3EmfBZW0allBVUiuv-APdAB5C3Zdyuav7YhBjK1c7KT2WLiZe852UDo.iQFzIy2PiD3l-TNxLU2I6IRLwMVbs.KbC-P8AzlvzinemMvTt7KlS-SsTE8vvUvvnDNKploG3HU6V-1blpadMXAsoBbQCXhJY3UArHVaYe9RwC3OZLiCD821kUVbVLu.pfL5kB.n.cBQ2bCdh1RunKYbxSFqz-4aHZcOetkqO85S16RyaHq0Ajr2P2PAVdI-jPGRYxTavyRaBtdFlUaLmyT4RwBlnIdOL-16FRWGJzJ3jLO-sM5YJYGurnsJmDV-rq.NfKKtQlfukrrIA.i2a43om0pkauQ5UvUclCWyX4NMuyuYZbelZZA-xmb8_">https://opengeoscience.github.io/geojs/tutorials/editor/?src=lZLBTuMwEIbvfYpZQLIjea0S6KoEFQ5Ie1qJ4x4QBxNPSiCJI9sJdFHefcdu2kaVVrAn2..MfDPjmV5ZqFULK1ijkXTjHzOAxmjM4OSU3ieC3jk2Hm0GH-8ZLORCwIbOVC6HYPxjTJ3B1WxIrmc94Yyrf6kNWmJSvMwtKo9R4YxsjNyiX0F6Z.GfvqOdjdjWVBtym0aN.j-3EmfBZW0allBVUiuv-APdAB5C3Zdyuav7YhBjK1c7KT2WLiZe852UDo.iQFzIy2PiD3l-TNxLU2I6IRLwMVbs.KbC-P8AzlvzinemMvTt7KlS-SsTE8vvUvvnDNKploG3HU6V-1blpadMXAsoBbQCXhJY3UArHVaYe9RwC3OZLiCD821kUVbVLu.pfL5kB.n.cBQ2bCdh1RunKYbxSFqz-4aHZcOetkqO85S16RyaHq0Ajr2P2PAVdI-jPGRYxTavyRaBtdFlUaLmyT4RwBlnIdOL-16FRWGJzJ3jLO-sM5YJYGurnsJmDV-rq.NfKKtQlfukrrIA.i2a43om0pkauQ5UvUclCWyX4NMuyuYZbelZZA-xmb8_</a> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 8, 2020 at 12:47 AM Bhupendra Singh <<a href="mailto:Bhupendra.Singh1@india.nec.com">Bhupendra.Singh1@india.nec.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-IN">
<div class="gmail-m_3341344850563513055WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks David for your reply.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I tried both the options mouseover/mouseout or mouseon/mouseoff but the results are same. Only one annotation is getting highlighted
on mouse hover over. I am using below code.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">line.geoOn(geo.event.feature.mouseover, (evt) => {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> evt.data.selected = true;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> line.modified().draw();<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> $('.geojs-layer').css('cursor', 'pointer');
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> });<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> line.geoOn(geo.event.feature.mouseout, (evt) => {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> evt.data.selected = false;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> line.modified().draw();<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> $('.geojs-layer').css('cursor', 'inherit');<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> $("#geojs .geojs-layer").css("pointer-events", "auto");<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">});<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks & Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Bhupendra
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> David Manthey [mailto:<a href="mailto:david.manthey@kitware.com" target="_blank">david.manthey@kitware.com</a>]
<br>
<b>Sent:</b> 07 March 2020 03:24<br>
<b>To:</b> Bhupendra Singh <<a href="mailto:Bhupendra.Singh1@india.nec.com" target="_blank">Bhupendra.Singh1@india.nec.com</a>><br>
<b>Cc:</b> <a href="mailto:geojs-users@public.kitware.com" target="_blank">geojs-users@public.kitware.com</a><br>
<b>Subject:</b> Re: Need help to strokeopacity while creating multiple annotation<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">If you are using feature events, are you using mouseon/mouseoff or mouseover/mouseout? mouseon and mouseoff are for the "topmost" element (though a function can override what it means to be topmost). mouseover and mouseout apply to all
features (see <a href="https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff" target="_blank">
https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff</a>, etc.)<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Mar 6, 2020 at 4:15 AM Bhupendra Singh <<a href="mailto:Bhupendra.Singh1@india.nec.com" target="_blank">Bhupendra.Singh1@india.nec.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">Hi
</span>Geojs team,<u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">I observed one behaviour after implementing the Geo JS code , the code is only highlighting the latest created annotation all other annotation are not
highlighting on mouse hover over. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">In the below example, ANO3 is changing the strokeopacity with mouse hover over if I will create the new annotation on the page then that will be only
highlighted on mouse over hover. I need strokeopacity should work for all the created annotation.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><img border="0" width="231" height="228" style="width: 2.4062in; height: 2.375in;" id="gmail-m_3341344850563513055gmail-m_-761982073600115286Picture_x0020_1" src="cid:170bfb5b6cb4cff311"></span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">Thanks & Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">Bhupendra
</span><u></u><u></u></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email
are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written
consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
<u></u><u></u></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">David Manthey<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">R&D Engineer<br>
Kitware Inc.<br>
(518) 881-4439<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<hr>
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of
the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author
of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">David Manthey</div><div dir="ltr">R&D Engineer<br>Kitware Inc.<br>(518) 881-4439<br></div></div></div></div>