antv
果真zZ
这个作者很懒,什么都没留下…
展开
-
@antv/l7绘制地图,添加图例,修改地图上颜色,是否允许地图拖拽,是否滚动缩放等
html<div class="charts-box"> <div style="min-height: 300px; justify-content: center;position: relative" id="map"/></div>引入组件import { Scene, Control } from '@antv/l7'import { CountryLayer } from '@antv/l7-district'import { Mapbo原创 2021-04-09 15:32:09 · 3795 阅读 · 0 评论 -
antv/l7 设置图例
引入Control 基类import { Control } from "@antv/l7";初始化基类 const legend = new Control({ position: "bottomright" });设置Control 展示的内容,通过扩展Control 的onAdd 方法我们自由定制control 需要展示内容和交互。legend.onAdd = function () { let el = document.createElemen原创 2021-04-09 15:22:00 · 1280 阅读 · 0 评论