Vue:uni-app学习(九)--引入地图

 

<template>
    <view>
        <map style="width: 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>

 

相关文章:

  • 2021-06-19
  • 2021-06-12
  • 2021-06-22
  • 2021-04-11
  • 2021-05-15
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
猜你喜欢
  • 2021-06-15
  • 2022-02-12
  • 2021-07-31
  • 2021-07-05
  • 2021-11-29
  • 2021-12-07
  • 2022-02-23
相关资源
相似解决方案