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
1020 B
JavaScript
2 lines
1020 B
JavaScript
2 weeks ago
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7093],{70676:function(t,e,o){var n=o(41376),a=o(79847),i=o(42010),r=o(54354),s=2,w=[0,0],p=0;if(""!==window.location.hash){var c=window.location.hash.replace("#map=","").split("/");4===c.length&&(s=parseFloat(c[0]),w=[parseFloat(c[1]),parseFloat(c[2])],p=parseFloat(c[3]))}var l=new n.Z({layers:[new i.Z({source:new a.Z})],target:"map",view:new r.ZP({center:w,zoom:s,rotation:p})}),u=!0,g=l.getView();l.on("moveend",(function(){if(u){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 u=!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),u=!1)}))}},function(t){var e=function(e){return t(t.s=e)};e(9877),e(70676)}]);
|
||
|
//# sourceMappingURL=permalink.js.map
|