Vue:uni-app学习(九)--引入地图
<template> <view> <map style=" 100%; height: 600px;" :latitude="latitude" :longitude="longitude" :markers="covers"> </map> </view> </template> <script> export default { data() { return { latitude: 39.909, longitude: 116.39742, covers: [{ latitude: 39.909, longitude: 116.39742, iconPath: '../../static/location.png' }, { latitude: 39.90, longitude: 116.39, iconPath: '../../../static/location.png' }] } }, methods: { } } </script> <style> </style>