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

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1977],{18304:function(e,t,n){var s=n(77975),o=n(91118),r=n(41376),l=n(720),c=n(69039),i=n(41372),u=n(95783),a=n(54354),w=n(12810),f=new c.ZP({fill:new s.Z({color:"#EEE"}),stroke:new l.Z({color:"#3399CC",width:2})}),p=new i.Z({background:"white",source:new u.Z({url:"https://openlayers.org/data/vector/us-states.json",format:new o.Z})}),d=new r.Z({layers:[p],target:"map",view:new a.ZP({center:(0,w.mi)([-100,38.5]),zoom:4,multiWorld:!0})}),h=[],Z=document.getElementById("status");d.on("singleclick",(function(e){d.forEachFeatureAtPixel(e.pixel,(function(e){var t=h.indexOf(e);t<0?(h.push(e),e.setStyle(f)):(h.splice(t,1),e.setStyle(void 0))})),Z.innerHTML="&nbsp;"+h.length+" selected features"}))}},function(e){var t=function(t){return e(e.s=t)};t(9877),t(18304)}]);
//# sourceMappingURL=select-multiple-features.js.map