zoukankan      html  css  js  c++  java
  • uni-app map组件的marker

    <template>
    <view>
    <page-head :title="title"></page-head>
    <view class="uni-common-mt">
    <view>
    <map :latitude="latitude" :longitude="longitude" :markers="covers">
    </map>
    </view>
    </view>
    <image src="../../static/app-plus/location@3x.png"></image>
    </view>
    </template>

    <script>
    export default {
    data() {
    return {
    title: 'map',
    latitude: 39.909,
    longitude: 116.39742,
    covers: [{
    latitude: 39.9085,
    longitude: 116.39747,
    // #ifdef APP-PLUS
    iconPath: '../../static/app-plus/location@3x.png',
    // #endif
    // #ifndef APP-PLUS
    iconPath: '../../static/location.png',
    // #endif
    }, {
    latitude: 39.90,
    longitude: 116.39,
    // #ifdef APP-PLUS
    iconPath: '../../static/app-plus/location@3x.png',
    // #endif
    // #ifndef APP-PLUS
    iconPath: '../../static/location.png',
    // #endif
    }]
    }
    },
    methods: {

    }
    }
    </script>


    <style>
    map {
    100%;
    height: 600rpx;
    }
    </style>
  • 相关阅读:
    三个问题
    2014-7
    2014-5
    2014-2
    2014-1
    2013-11
    mysql中对表操作----为所有列插入数据
    Redis做消息队列
    收集Nginx-access,Nginx-error日志
    .Nginx安装filebeat收集日志:
  • 原文地址:https://www.cnblogs.com/xushan03/p/15043248.html
Copyright © 2011-2022 走看看