mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
18 lines
345 B
TypeScript
18 lines
345 B
TypeScript
|
|
import AMapLoader from "../";
|
||
|
|
// import { } from "@ali/test-amap-jsapi";
|
||
|
|
|
||
|
|
AMapLoader.load({
|
||
|
|
key: "test",
|
||
|
|
version: "2.0"
|
||
|
|
}).then(() => {
|
||
|
|
new AMap.Circle({})
|
||
|
|
const map = new AMap.Map("div");
|
||
|
|
map.on("complete", () => {
|
||
|
|
const circle = new AMap.Circle({
|
||
|
|
center: [135, 45],
|
||
|
|
radius: 40
|
||
|
|
});
|
||
|
|
map.add(circle);
|
||
|
|
});
|
||
|
|
});
|