mapv的使用记录

1.api
2.官方示例
3.在leaflet中使用

引入:
方法一:<script src="http://mapv.baidu.com/build/mapv.js"></script>
方法二:cnpm install mapv 导入mapv的依赖

import { tiandituTileLayer } from '@/libs/wmtslayer/L.TiandituTileLayer'
import 'mapv'
import * as mapv from 'mapv'
//地图初始化,外网
let map = L.map(mapId, {
  crs: L.CRS.TianDiTu_MercatorCRS, //坐标参考系统
  center: mapCenter, //经纬度
  zoom: 12, //放大等级
  minZoom: 0,
  maxZoom: 17,
  logoControl: false, // 隐藏logo版权
  zoomControl: false, // 缩放控件
  attributionControl: false // 隐藏文字版权
})

其他参考官方实例来

与百度地图不同:mapvLayer = new mapv.baiduMapLayer(map, geojsonDataSet, geojsonOptions);
在leaflet中使用时:mapvLayer = new mapv.leafletMapLayer(timeDataSet, timeOptions).addTo(map);

其中
Openlayer:new mapv.OpenlayersLayer ()
百度地图:new mapv.baiduMapLayer ()
Leaflet:new mapv.leafletMapLayer()
maptalk: new mapv.MaptalksLayer()
google: new googleMapLayer()

4.参考文章
mapv的一些例子,画线,画区域等
mapv 结合leaflet使用
OL4使用mapV

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值