Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Svelte Maplibre Popup open issues

$
0
0

I am having a problem with a Popup opening on hovering over an area on a map

<script>   let showPopup = false;    const setPopup = (e: any) => {       showPopup = true;    }</script><GeoJSON bind:data={info}><Popup open={showPopup} lngLat={popupLngLat}>    {#if popupData}<p class="govuk-body-s popup">        {popupData}</p>    {/if}</Popup></GeoJson>

I have tried adding an openOn='manual' option to the pop but that doesn't seem to help. The popup only opens when the area is clicked on instead of when hovered over.

I'm using Svelte 4 and svelte-maplibre: 0.9.8


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>