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
634 B
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{262:function(e,n,t){"use strict";t.r(n);var o,a=t(66),c=t(3),r=t(2),w=t(9),u=t(10),i=t(5),d=t(19),s=new i.a({source:new w.b}),p=new u.a({wrapX:!1}),m=new d.a({source:p}),v=new c.a({layers:[s,m],target:"map",view:new r.a({center:[-11e6,46e5],zoom:4})}),l=document.getElementById("type");function y(){"None"!==l.value&&(o=new a.c({source:p,type:l.value}),v.addInteraction(o))}l.onchange=function(){v.removeInteraction(o),y()},document.getElementById("undo").addEventListener("click",(function(){o.removeLastPoint()})),y()}},[[262,0]]]);
//# sourceMappingURL=draw-features.js.map