demo.ts 345 B

1234567891011121314151617
  1. import AMapLoader from "../";
  2. // import { } from "@ali/test-amap-jsapi";
  3. AMapLoader.load({
  4. key: "test",
  5. version: "2.0"
  6. }).then(() => {
  7. new AMap.Circle({})
  8. const map = new AMap.Map("div");
  9. map.on("complete", () => {
  10. const circle = new AMap.Circle({
  11. center: [135, 45],
  12. radius: 40
  13. });
  14. map.add(circle);
  15. });
  16. });