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

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>

 

posted @ 2020-08-12 14:48  wukong1688  阅读(513)  评论(0编辑  收藏  举报