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.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2355],{82522:function(e,n,t){var r=t(12739),o=t(41376),a=t(75469),s=t(76166),c=t(95783),i=t(54354),u=t(69039),l=t(24598),f=t(64498),d=t(41372),p=t(42010),w=new r.Z({geometry:new a.Z([0,0]),name:"Null Island",population:4e3,rainfall:500}),m=new u.ZP({image:new l.Z({anchor:[.5,46],anchorXUnits:"fraction",anchorYUnits:"pixels",src:"data/icon.png"})});w.setStyle(m);var y=new c.Z({features:[w]}),g=new d.Z({source:y}),Z=new p.Z({source:new s.Z({url:"https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1",crossOrigin:""})}),h=document.getElementById("map"),v=new o.Z({layers:[Z,g],target:h,view:new i.ZP({center:[0,0],zoom:3})}),b=new f.Z({hitDetection:g,source:y});b.on(["modifystart","modifyend"],(function(e){h.style.cursor="modifystart"===e.type?"grabbing":"pointer"})),b.getOverlay().getSource().on(["addfeature","removefeature"],(function(e){h.style.cursor="addfeature"===e.type?"pointer":""})),v.addInteraction(b)}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(82522)}]);
|
|
//# sourceMappingURL=modify-icon.js.map
|