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
956 B
JavaScript
2 lines
956 B
JavaScript
2 weeks ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{343:function(t,e,o){"use strict";o.r(e);var a=o(3),n=o(9),i=o(5),s=o(2),r=2,w=[0,0],p=0;if(""!==window.location.hash){var c=window.location.hash.replace("#map=","").split("/");4===c.length&&(r=parseFloat(c[0]),w=[parseFloat(c[1]),parseFloat(c[2])],p=parseFloat(c[3]))}var l=new a.a({layers:[new i.a({source:new n.b})],target:"map",view:new s.a({center:w,zoom:r,rotation:p})}),d=!0,g=l.getView();l.on("moveend",(function(){if(d){var t=g.getCenter(),e="#map="+g.getZoom().toFixed(2)+"/"+t[0].toFixed(2)+"/"+t[1].toFixed(2)+"/"+g.getRotation(),o={zoom:g.getZoom(),center:g.getCenter(),rotation:g.getRotation()};window.history.pushState(o,"map",e)}else d=!0})),window.addEventListener("popstate",(function(t){null!==t.state&&(l.getView().setCenter(t.state.center),l.getView().setZoom(t.state.zoom),l.getView().setRotation(t.state.rotation),d=!1)}))}},[[343,0]]]);
|
||
|
//# sourceMappingURL=permalink.js.map
|