1***@qq.com
1***@qq.com
  • 发布:2022-10-13 11:09
  • 更新:2022-10-13 15:38
  • 阅读:196

地图路线箭头,arrowIconPath不渲染问题

分类:HBuilderX
<template>  
    <view>  
        <view class="page-body">  
            <view class="page-section page-section-gap">  
                <map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude"  
                :polyline="polyline">  
                </map>  
            </view>  
        </view>  
        <view>  
            <image src="../../static/traffic_texture_darkred.png"></image>  
        </view>  
    </view>  
</template>  
<script>  
export default {  
    data() {  
        return {  
            id:0, // 使用 marker点击事件 需要填写id  
            title: 'map',  
            latitude: 39.909,  
            longitude: 116.39742,  
            polyline: [{  
                points: [{  
                    latitude: 39.909,  
                    longitude: 116.39742,  
                },{  
                    latitude: 26.032491,  
                    longitude: 119.205675  
                }],  
                arrowLine: true,  
                color: "#000",  
                width: 10,  
                arrowIconPath:"../../static/traffic_texture_darkred.png",  
            }]  
        }  
    },  
    methods: {  

    }  
}  
</script>
2022-10-13 11:09 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

直接使用微信小程序(不使用 uni-app )测试一下,如果仍然有问题,反馈到微信小程序社区

要回复问题请先登录注册