微信小程序地图导航之多样式线条


polyline: [

    {

        points: [{

            longitude: 113.3245211,

            latitude: 23.10229

        }, {

            longitude: 113.324520,

            latitude: 23.21229

        }],

        color: "#FF0000DD",

        width: 2,

        dottedLine: true

   },

   {

        points: [{

            longitude: 113.3255211,

            latitude: 23.10229

        }, {

            longitude: 113.325520,

            latitude: 23.21229

        }],

        color: "#0000ffDD",

        width: 2,

        dottedLine: true

   }

]

polyline是数组,里面可以放n个对象,每个对象都代表一条线,对象与对象之间没有任何关系

附上map组件配合腾讯地图api使用案例:

https://lbs.qq.com/qqmap_wx_jssdk/method-direction.html

猜你喜欢

转载自blog.csdn.net/h330531987/article/details/82872016