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
2 lines
1.4 KiB
JavaScript
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4363],{74142:function(e,n,t){var l=t(91118),o=t(41376),r=t(52110),c=t(41372),s=t(95783),i=t(54354),a=t(69039),u=t(77975),d=t(720),g=t(36104),w=new a.ZP({fill:new u.Z({color:"#eeeeee"})}),f=new c.Z({source:new s.Z({url:"https://openlayers.org/data/vector/ecoregions.json",format:new l.Z}),background:"white",style:function(e){var n=e.get("COLOR")||"#eeeeee";return w.getFill().setColor(n),w}}),Z=new o.Z({layers:[f],target:"map",view:new i.ZP({center:[0,0],zoom:2})}),v=null,h=new a.ZP({fill:new u.Z({color:"#eeeeee"}),stroke:new d.Z({color:"rgba(255, 255, 255, 0.7)",width:2})});function p(e){var n=e.get("COLOR")||"#eeeeee";return h.getFill().setColor(n),h}var y=new r.Z({style:p}),k=new r.Z({condition:g.V4,style:p}),m=new r.Z({condition:g.MJ,style:p}),C=new r.Z({style:p,condition:function(e){return(0,g.V4)(e)&&(0,g.Ko)(e)}}),b=document.getElementById("type"),I=function(){null!==v&&Z.removeInteraction(v);var e=b.value;null!==(v="singleclick"==e?y:"click"==e?k:"pointermove"==e?m:"altclick"==e?C:null)&&(Z.addInteraction(v),v.on("select",(function(e){document.getElementById("status").innerHTML=" "+e.target.getFeatures().getLength()+" selected features (last operation selected "+e.selected.length+" and deselected "+e.deselected.length+" features)"})))};b.onchange=I,I()}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(74142)}]);
|
||
|
//# sourceMappingURL=select-features.js.map
|