import{a as e}from"./chunk-BNv3lrIs.js";import{n as t,t as n}from"./jsx-runtime-pmtNMKr4.js";var r=e(t(),1),i=n(),a=({height:e,width:t,center:n,tileLayer:a,zoom:o,apiKey:s})=>((0,r.useEffect)(()=>{window.L.mapquest.key=s;let e=window.L.DomUtil.get(`map`);e!=null&&(e._leaflet_id=null);let t=window.L.mapquest.map(`map`,{center:n,layers:window.L.mapquest.tileLayer(a),zoom:o});return t.addControl(window.L.mapquest.control()),()=>{t.remove()}},[]),(0,i.jsx)(`div`,{id:`map`,style:{width:t,height:e},children:(0,i.jsx)(`p`,{children:`Cargando mapa...`})}));export{a as t};