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.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{351:function(a,e,n){"use strict";n.r(e);for(var r=n(16),s=n(3),t=n(25),i=n(19),o=n(10),l=n(2),w=n(15),c=n(21),d=n(11),g=n(112),u=new w.a({color:"black",width:2}),p=new c.a({color:"red"}),m={square:new d.c({image:new g.a({fill:p,stroke:u,points:4,radius:10,angle:Math.PI/4})}),rectangle:new d.c({image:new g.a({fill:p,stroke:u,radius:10/Math.SQRT2,radius2:10,points:4,angle:0,scale:[1,.5]})}),triangle:new d.c({image:new g.a({fill:p,stroke:u,points:3,radius:10,rotation:Math.PI/4,angle:0})}),star:new d.c({image:new g.a({fill:p,stroke:u,points:5,radius:10,radius2:4,angle:0})}),cross:new d.c({image:new g.a({fill:p,stroke:u,points:4,radius:10,radius2:0,angle:0})}),x:new d.c({image:new g.a({fill:p,stroke:u,points:4,radius:10,radius2:0,angle:Math.PI/4})}),stacked:[new d.c({image:new g.a({fill:p,stroke:u,points:4,radius:5,angle:Math.PI/4,displacement:[0,10]})}),new d.c({image:new g.a({fill:p,stroke:u,points:4,radius:10,angle:Math.PI/4})})]},h=["x","cross","star","triangle","square","rectangle","stacked"],k=new Array(250),f=45e5,M=0;M<250;++M){var I=[2*f*Math.random()-f,2*f*Math.random()-f];k[M]=new r.a(new t.a(I)),k[M].setStyle(m[h[Math.floor(Math.random()*h.length)]])}var P=new o.a({features:k}),v=new i.a({source:P});new s.a({layers:[v],target:"map",view:new l.a({center:[0,0],zoom:2})})}},[[351,0]]]);
//# sourceMappingURL=regularshape.js.map