1.0.2 • Published 2 years ago
bgmap v1.0.2
<div id="mapcon" class="map-container"></div>
import Amap from "bgmap";
const key = 'xxxxxxeeeeeee'
let Amap_ , map
const initMap = async () => {
try {
Amap_ = await Amap(key);
map = new Amap_.Map("mapcon", {
resizeEnable: true,
zoom: 10,
});
} catch (error) {
console.log("err", error);
}
};