export class CenterControl{onAdd(e){this.map=e;let t=document.createElement("div");t.classList.add("maplibregl-ctrl"),t.classList.add("maplibregl-ctrl-group");let l=document.createElement("button");l.className="maplibregl-ctrl-compass",l.addEventListener("click",t=>e.flyTo({center:this.pos,zoom:e.getZoom()}));let a=document.createElement("span");return a.className="maplibregl-ctrl-icon",l.appendChild(a),t.appendChild(l),this.elem=t,t}onRemove(e){this.map=void 0,this.elem=void 0}}