import{a as C,u as T,l as s,b as p,e as y,d}from"./TileLayer-BRQ5IQYZ.js";import{r as m}from"./index-D4ZMoJFe.js";const L=C(function({center:e,children:o,...t},n){const c=new s.CircleMarker(e,t);return p(c,y(n,{overlayContainer:c}))},T),b=C(function({positions:e,...o},t){const n=new s.Polyline(e,o);return p(n,y(t,{overlayContainer:n}))},function(e,o,t){o.positions!==t.positions&&e.setLatLngs(o.positions)}),k=d(function(e,o){const t=new s.Tooltip(e,o.overlayContainer);return p(t,o)},function(e,o,{position:t},n){m.useEffect(function(){const i=o.overlayContainer;if(i==null)return;const{instance:l}=e,u=a=>{a.tooltip===l&&(t!=null&&l.setLatLng(t),l.update(),n(!0))},f=a=>{a.tooltip===l&&n(!1)};return i.on({tooltipopen:u,tooltipclose:f}),i.bindTooltip(l),function(){i.off({tooltipopen:u,tooltipclose:f}),i._map!=null&&i.unbindTooltip()}},[e,o,n,t])});export{L as C,b as P,k as T};
