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
961 B
JavaScript
2 lines
961 B
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[75],{63151:function(e,n,t){var a=t(91118),r=t(41372),o=t(95783),c=t(52110),s=t(64498),d=t(61038),i=t(99247),u=t(41376),w=t(54354);(0,t(12810).eL)();var v=new o.Z({url:"https://openlayers.org/data/vector/us-states.json",format:new a.Z}),m=new u.Z({target:"map",layers:[new r.Z({background:"white",source:v})],view:new w.ZP({center:[-100,38.5],zoom:4})}),I=new c.Z,f=new s.Z({features:I.getFeatures()}),Z=new d.ZP({type:"Polygon",source:v}),l=new i.Z({source:v});var g=document.getElementById("mode");function h(){switch(m.removeInteraction(f),m.removeInteraction(I),m.removeInteraction(Z),m.removeInteraction(I),g.value){case"draw":m.addInteraction(Z),m.addInteraction(l);break;case"modify":m.addInteraction(I),m.addInteraction(f),m.addInteraction(l)}}g.addEventListener("change",h),h()}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(63151)}]);
|
|
//# sourceMappingURL=edit-geographic.js.map
|