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
1012 B
JavaScript
2 lines
1012 B
JavaScript
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9426],{63824:function(e,n,t){var o=t(77975),r=t(91118),l=t(41376),u=t(720),s=t(69039),i=t(41372),c=t(95783),a=t(54354),w=new s.ZP({fill:new o.Z({color:"#eeeeee"})}),f=new i.Z({source:new c.Z({url:"https://openlayers.org/data/vector/ecoregions.json",format:new r.Z}),background:"white",style:function(e){var n=e.get("COLOR")||"#eeeeee";return w.getFill().setColor(n),w}}),g=new l.Z({layers:[f],target:"map",view:new a.ZP({center:[0,0],zoom:2})}),Z=new s.ZP({fill:new o.Z({color:"#eeeeee"}),stroke:new u.Z({color:"rgba(255, 255, 255, 0.7)",width:2})}),p=document.getElementById("status"),h=null;g.on("pointermove",(function(e){null!==h&&(h.setStyle(void 0),h=null),g.forEachFeatureAtPixel(e.pixel,(function(e){return h=e,Z.getFill().setColor(e.get("COLOR")||"#eeeeee"),e.setStyle(Z),!0})),p.innerHTML=h?h.get("ECO_NAME"):" "}))}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(63824)}]);
|
||
|
//# sourceMappingURL=select-hover-features.js.map
|