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.0 KiB
JavaScript
2 lines
1.0 KiB
JavaScript
2 weeks ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{292:function(e,a,o){"use strict";o.r(a);var n=o(48),r=o(16),t=o(3),w=o(19),c=o(10),i=o(2),l=o(11),s=o(21),u=o(15),g=o(25),y=new t.a({target:"map",view:new i.a({center:[0,0],resolution:1,resolutions:[1]})}),m=new w.a({source:new c.a({features:[new r.a({geometry:new g.a([0,0]),color:"white"}),new r.a({geometry:new g.a([-10,0]),color:"fuchsia"}),new r.a({geometry:new g.a([-10,-10]),color:"orange"}),new r.a({geometry:new g.a([-10,10]),color:"cyan"})]}),style:function(e){return new l.c({image:new n.a({radius:5,fill:new s.a({color:e.get("color")}),stroke:new u.a({color:"gray",width:1})})})}});y.addLayer(m);var d=new r.a(new g.a([NaN,NaN]));d.setStyle(new l.c({image:new n.a({radius:5,stroke:new u.a({color:"black",width:2})})})),m.getSource().addFeature(d),y.on("pointermove",(function(e){y.forEachFeatureAtPixel(e.pixel,(function(e){return d.setGeometry(e.getGeometry().clone()),!0}),{hitTolerance:10})||d.setGeometry(new g.a([NaN,NaN]))}))}},[[292,0]]]);
|
||
|
//# sourceMappingURL=hit-tolerance-priority.js.map
|