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
836 B
JavaScript
2 lines
836 B
JavaScript
2 weeks ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{251:function(t,e,o){"use strict";o.r(e);var n=o(3),a=o(9),r=o(5),c=o(2),i=o(77),p=o(50),s=function(t){function e(e){var o=e||{},n=document.createElement("button");n.innerHTML="N";var a=document.createElement("div");a.className="rotate-north ol-unselectable ol-control",a.appendChild(n),t.call(this,{element:a,target:o.target}),n.addEventListener("click",this.handleRotateNorth.bind(this),!1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleRotateNorth=function(){this.getMap().getView().setRotation(0)},e}(i.a);new n.a({controls:Object(p.a)().extend([new s]),layers:[new r.a({source:new a.b})],target:"map",view:new c.a({center:[0,0],zoom:3,rotation:1})})}},[[251,0]]]);
|
||
|
//# sourceMappingURL=custom-controls.js.map
|