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

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4206],{57262:function(e,n,t){var c=t(41376),o=t(54354),r=t(69039),a=t(77975),i=t(720),u=t(77138),w=t(64498),s=t(61038),l=t(99247),Z=t(79847),f=t(95783),d=t(42010),v=t(41372),m=t(12810),g=new d.Z({source:new Z.Z}),p=new f.Z,I=new v.Z({source:p,style:new r.ZP({fill:new a.Z({color:"rgba(255, 255, 255, 0.2)"}),stroke:new i.Z({color:"#ffcc33",width:2}),image:new u.Z({radius:7,fill:new a.Z({color:"#ffcc33"})})})}),h=(0,m.U2)("EPSG:3857").getExtent().slice();h[0]+=h[0],h[2]+=h[2];var k,y,P=new c.Z({layers:[g,I],target:"map",view:new o.ZP({center:[-11e6,46e5],zoom:4,extent:h})}),b=new w.Z({source:p});P.addInteraction(b);var E=document.getElementById("type");function x(){k=new s.ZP({source:p,type:E.value}),P.addInteraction(k),y=new l.Z({source:p}),P.addInteraction(y)}E.onchange=function(){P.removeInteraction(k),P.removeInteraction(y),x()},x()}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(57262)}]);
//# sourceMappingURL=draw-and-modify-features.js.map