<map
style="width: 100%; height: 100%"
:latitude="39.83352"
:longitude="108.73497"
:polygons="polygons"
:markers="markerList"
:scale="7"
>
</map>
import { points,points1 } from '@/json/hjqMap'
const polygons = [
{
//多边形的坐标数组
points: points,
fillColor: '#cbdde9', //填充颜色
strokeColor: '#78addd', //描边颜色
strokeWidth: 2, //描边宽度
zIndex: 1, //层级
},
{
//多边形的坐标数组
points: points1,
fillColor: '##2f7cee', //填充颜色
strokeColor: '#e84133', //描边颜色
strokeWidth: 2, //描边宽度
zIndex: 2, //层级
},
]
const markerList: any = [
{
id: 1,
longitude: 108.75694265625003,
latitude: 39.76388362292029,
iconPath: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker_blue.png',
width: '80rpx',
height: '80rpx',
},
]