You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{232:function(e,n,t){var r=t(247);e.exports=function(e,n){Array.isArray(n)||(n=[]),e.length>0&&n.push(r([0,0],e[0]));for(var t=0;t<e.length-1;t++){var o=e[t],a=e[t+1],s=o[0],u=o[1],i=a[0],c=a[1],p=[.75*s+.25*i,.75*u+.25*c],w=[.25*s+.75*i,.25*u+.75*c];n.push(p),n.push(w)}return e.length>1&&n.push(r([0,0],e[e.length-1])),n}},246:function(e,n,t){"use strict";t.r(n);var r=t(66),o=t(3),a=t(2),s=t(10),u=t(9),i=t(5),c=t(19),p=t(232),w=t.n(p);var h=new s.a({}),d=new o.a({layers:[new i.a({source:new u.b,opacity:.5}),new c.a({source:h})],target:"map",view:new a.a({center:[1078373.595,6871994.591],zoom:5})}),f=document.getElementById("shall-smoothen"),g=document.getElementById("iterations"),l=new r.c({source:h,type:"LineString"});d.addInteraction(l),l.on("drawend",(function(e){if(f.checked){var n=e.feature.getGeometry(),t=function(e,n){for(n=Math.min(Math.max(n,1),10);n>0;)e=w()(e),n--;return e}(n.getCoordinates(),parseInt(g.value,10)||5);n.setCoordinates(t)}}))},247:function(e,n){e.exports=function(e,n){return e[0]=n[0],e[1]=n[1],e}}},[[246,0]]]);
|
|
//# sourceMappingURL=chaikin.js.map
|