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.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3995],{98103:function(e,a,n){for(var r=n(12739),t=n(41376),s=n(75469),i=n(41372),l=n(95783),o=n(54354),w=n(720),u=n(77975),Z=n(69039),g=n(79072),d=new w.Z({color:"black",width:2}),c=new u.Z({color:"red"}),f={square:new Z.ZP({image:new g.Z({fill:c,stroke:d,points:4,radius:10,angle:Math.PI/4})}),rectangle:new Z.ZP({image:new g.Z({fill:c,stroke:d,radius:10/Math.SQRT2,radius2:10,points:4,angle:0,scale:[1,.5]})}),triangle:new Z.ZP({image:new g.Z({fill:c,stroke:d,points:3,radius:10,rotation:Math.PI/4,angle:0})}),star:new Z.ZP({image:new g.Z({fill:c,stroke:d,points:5,radius:10,radius2:4,angle:0})}),cross:new Z.ZP({image:new g.Z({fill:c,stroke:d,points:4,radius:10,radius2:0,angle:0})}),x:new Z.ZP({image:new g.Z({fill:c,stroke:d,points:4,radius:10,radius2:0,angle:Math.PI/4})}),stacked:[new Z.ZP({image:new g.Z({fill:c,stroke:d,points:4,radius:5,angle:Math.PI/4,displacement:[0,10]})}),new Z.ZP({image:new g.Z({fill:c,stroke:d,points:4,radius:10,angle:Math.PI/4})})]},h=["x","cross","star","triangle","square","rectangle","stacked"],k=new Array(250),m=45e5,P=0;P<250;++P){var p=[2*m*Math.random()-m,2*m*Math.random()-m];k[P]=new r.Z(new s.Z(p)),k[P].setStyle(f[h[Math.floor(Math.random()*h.length)]])}var M=new l.Z({features:k}),v=new i.Z({source:M});new t.Z({layers:[v],target:"map",view:new o.ZP({center:[0,0],zoom:2})})}},function(e){var a=function(a){return e(e.s=a)};a(9877),a(98103)}]);
|
|
//# sourceMappingURL=regularshape.js.map
|