antv-l7高德地图设置黑色底图
文章目录
安装依赖
@antv/l7-maps
@antv/l7
<div id="map"></div>
import { Scene } from "@antv/l7";
import { GaodeMapV1 } from "@antv/l7-maps";
scene = new Scene({
id: "map",
map: new GaodeMapV1({
mapStyle:'amap://styles/dark',
center: [104.288144, 31.239692],
zoom: 4.4,
token: 'xxxx - token',
})
});通过mapStyle设置高德地图底色样式
官网GaodeMap用法会提示错误

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论