text: import{S as s,i as a,s as n,e as t,c as o,a as p,d as e,b as l,f as c,n as r,g as u,t as i,h as k,q as m,j as h,k as f,l as g,m as d,o as v,p as b,r as E,u as y}from"./client.47f8a5db.js";import{L as $}from"./Leaflet.6481def0.js";function z(s){let a;return{c(){a=t("pre"),this.h()},l(s){a=o(s,"PRE",{class:!0}),p(a).forEach(e),this.h()},h(){l(a,"class","language-html")},m(s,n){c(s,a,n),a.innerHTML='<code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">\n  <span class="token keyword">import</span> Map <span class="token keyword">from</span> <span class="token string">"@anoram/leaflet-svelte"</span><span class="token punctuation">;</span>\n   <span class="token keyword">let</span> options <span class="token operator">=</span> <span class="token punctuation">&#123;</span>\n    recenter<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n    zoom<span class="token operator">:</span> <span class="token number">5</span><span class="token punctuation">,</span>\n    markers<span class="token operator">:</span> <span class="token punctuation">[</span>\n      <span class="token punctuation">&#123;</span>\n        lat<span class="token operator">:</span> <span class="token number">8</span><span class="token punctuation">,</span>\n        lng<span class="token operator">:</span> <span class="token number">8</span><span class="token punctuation">,</span>\n      <span class="token punctuation">&#125;</span><span class="token punctuation">,</span>\n      <span class="token punctuation">&#123;</span>\n        lat<span class="token operator">:</span> <span class="token number">13</span><span class="token punctuation">,</span>\n        lng<span class="token operator">:</span> <span class="token number">80</span><span class="token punctuation">,</span>\n      <span class="token punctuation">&#125;</span><span class="token punctuation">,</span>\n    <span class="token punctuation">]</span><span class="token punctuation">,</span>\n    controls<span class="token operator">:</span> <span class="token punctuation">&#123;</span>\n      zoomControl<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n    <span class="token punctuation">&#125;</span><span class="token punctuation">,</span>\n    scrollWheelZoom<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n    mapID<span class="token operator">:</span> <span class="token string">"map"</span><span class="token punctuation">,</span>\n    attributionControl<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n  <span class="token punctuation">&#125;</span><span class="token punctuation">;</span>\n  \n</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span>\n\n<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>style</span><span class="token punctuation">></span></span><span class="token style"><span class="token language-css">\n  <span class="token selector">.map</span> <span class="token punctuation">&#123;</span>\n    <span class="token property">height</span><span class="token punctuation">:</span> 600px<span class="token punctuation">;</span>\n    <span class="token property">width</span><span class="token punctuation">:</span> auto<span class="token punctuation">;</span>\n  <span class="token punctuation">&#125;</span>\n\n</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>style</span><span class="token punctuation">></span></span>\n\n\n<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>map<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>\n  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Map</span> <span class="token attr-name">&#123;options&#125;</span> <span class="token punctuation">/></span></span>\n<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span></code>'},p:r,i:r,o:r,d(s){s&&e(a)}}}class w extends s{constructor(s){super(),a(this,s,null,z,n,{})}}function D(s){let a,n,z,D,x,C,I,V,j,P,W,Z,H,L,M,N,q,A,O,S,R,T,B,F,G,J,K,Q,U,X,Y,_,ss="controls: {zoomControl: true }";return N=new w({}),Y=new $({props:{options:s[0]}}),{c(){a=u(),n=t("div"),z=t("div"),D=t("div"),x=t("a"),C=i("←Examples"),I=u(),V=t("h4"),j=i("Disable scroll wheel zoom "),P=t("span"),W=i("@0.0.4^"),Z=u(),H=t("p"),L=i("Disables mouse wheel intereactions for zoom and allows only zoom via\r\n        controls."),M=u(),k(N.$$.fragment),q=u(),A=t("h4"),O=i("Note"),S=u(),R=t("p"),T=t("code"),B=i("scrollWheelZoom"),F=i(" by default is true additionally you can remove the zoom control element by setting "),G=t("code"),J=i(ss),K=i(" to false."),Q=u(),U=t("div"),X=t("div"),k(Y.$$.fragment),this.h()},l(s){m('[data-svelte="svelte-50lzuc"]',document.head).forEach(e),a=h(s),n=o(s,"DIV",{class:!0});var t=p(n);z=o(t,"DIV",{class:!0});var l=p(z);D=o(l,"DIV",{class:!0});var c=p(D);x=o(c,"A",{href:!0});var r=p(x);C=f(r,"←Examples"),r.forEach(e),I=h(c),V=o(c,"H4",{});var u=p(V);j=f(u,"Disable scroll wheel zoom "),P=o(u,"SPAN",{class:!0});var i=p(P);W=f(i,"@0.0.4^"),i.forEach(e),u.forEach(e),Z=h(c),H=o(c,"P",{});var k=p(H);L=f(k,"Disables mouse wheel intereactions for zoom and allows only zoom via\r\n        controls."),k.forEach(e),M=h(c),g(N.$$.fragment,c),q=h(c),A=o(c,"H4",{});var d=p(A);O=f(d,"Note"),d.forEach(e),S=h(c),R=o(c,"P",{});var v=p(R);T=o(v,"CODE",{});var b=p(T);B=f(b,"scrollWheelZoom"),b.forEach(e),F=f(v," by default is true additionally you can remove the zoom control element by setting "),G=o(v,"CODE",{});var E=p(G);J=f(E,ss),E.forEach(e),K=f(v," to false."),v.forEach(e),c.forEach(e),Q=h(l),U=o(l,"DIV",{class:!0});var y=p(U);X=o(y,"DIV",{class:!0});var $=p(X);g(Y.$$.fragment,$),$.forEach(e),y.forEach(e),l.forEach(e),t.forEach(e),this.h()},h(){document.title="Disable scroll wheel zoom",l(x,"href","examples"),l(P,"class","chip"),l(D,"class","col-6"),l(X,"class","map svelte-dt8ylx"),l(U,"class","col-6"),l(z,"class","row is-center"),l(n,"class","container")},m(s,t){c(s,a,t),c(s,n,t),d(n,z),d(z,D),d(D,x),d(x,C),d(D,I),d(D,V),d(V,j),d(V,P),d(P,W),d(D,Z),d(D,H),d(H,L),d(D,M),v(N,D,null),d(D,q),d(D,A),d(A,O),d(D,S),d(D,R),d(R,T),d(T,B),d(R,F),d(R,G),d(G,J),d(R,K),d(z,Q),d(z,U),d(U,X),v(Y,X,null),_=!0},p:r,i(s){_||(b(N.$$.fragment,s),b(Y.$$.fragment,s),_=!0)},o(s){E(N.$$.fragment,s),E(Y.$$.fragment,s),_=!1},d(s){s&&e(a),s&&e(n),y(N),y(Y)}}}function x(s){return[{recenter:!0,zoom:5,markers:[{lat:8,lng:8},{lat:13,lng:80}],controls:{zoomControl:!0},scrollWheelZoom:!1,mapID:"map",attributionControl:!0}]}export default class extends s{constructor(s){super(),a(this,s,x,D,n,{})}}
  