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
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8491],{61377:function(e,n,t){var o=t(91118),r=t(41376),a=t(54354),s=t(69039),c=t(77975),i=t(720),u=t(77138),l=t(95783),w=t(79847),d=t(41372),g=t(42010),f=t(12810),Z=new l.Z({url:"data/geojson/switzerland.geojson",format:new o.Z}),m=new s.ZP({fill:new c.Z({color:"rgba(255, 255, 255, 0.6)"}),stroke:new i.Z({color:"#319FD3",width:1}),image:new u.Z({radius:5,fill:new c.Z({color:"rgba(255, 255, 255, 0.6)"}),stroke:new i.Z({color:"#319FD3",width:1})})}),k=new d.Z({source:Z,style:m}),v=new a.ZP({center:(0,f.mi)([6.6339863,46.5193823]),padding:[170,50,30,150],zoom:6});new r.Z({layers:[new g.Z({source:new w.Z}),k],target:"map",view:v});k.getSource().on("featuresloadend",(function(){document.getElementById("zoomtoswitzerland").addEventListener("click",(function(){var e=Z.getFeatures()[0].getGeometry();v.fit(e)}),!1),document.getElementById("centerlausanne").addEventListener("click",(function(){var e=Z.getFeatures()[1].getGeometry();v.setCenter(e.getCoordinates())}),!1)}))}},function(e){var n=function(n){return e(e.s=n)};n(9877),n(61377)}]);
|
||
|
//# sourceMappingURL=view-padding.js.map
|