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
1011 B
JavaScript
2 lines
1011 B
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{333:function(e,n,a){"use strict";a.r(n);var t=a(16),r=a(3),o=a(25),s=a(62),i=a(10),c=a(2),u=a(11),w=a(76),d=a(145),p=a(19),l=a(5),m=new t.a({geometry:new o.a([0,0]),name:"Null Island",population:4e3,rainfall:500}),f=new u.c({image:new w.a({anchor:[.5,46],anchorXUnits:"fraction",anchorYUnits:"pixels",src:"data/icon.png"})});m.setStyle(f);var y=new i.a({features:[m]}),g=new p.a({source:y}),h=new l.a({source:new s.a({url:"https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1",crossOrigin:""})}),v=document.getElementById("map"),b=new r.a({layers:[h,g],target:v,view:new c.a({center:[0,0],zoom:3})}),x=new d.a({hitDetection:g,source:y});x.on(["modifystart","modifyend"],(function(e){v.style.cursor="modifystart"===e.type?"grabbing":"pointer"})),x.getOverlay().getSource().on(["addfeature","removefeature"],(function(e){v.style.cursor="addfeature"===e.type?"pointer":""})),b.addInteraction(x)}},[[333,0]]]);
|
|
//# sourceMappingURL=modify-icon.js.map
|