TLZ
TLZ
  • 发布:2023-09-05 11:30
  • 更新:2024-05-22 17:22
  • 阅读:267

【报Bug】开发app map markers无法使用宽高修改地标大小

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: w10

HBuilderX类型: 正式

HBuilderX版本号: 3.8.12

手机系统: Android

手机系统版本号: Android 14

手机厂商: 华为

手机机型: nova 5

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<template>
<view>
<view class="page-body">
<view class="page-section page-section-gap">
<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers">
</map>
</view>
</view>
</view>
</template>

<script>
export default {
props: {
show: {
type: Boolean,
default: false
},
},
data() {
return {
id: 0, // 使用 marker点击事件 需要填写id
title: 'map',
latitude: 39.909,
longitude: 116.39742,
covers: [{
width:10,
height:10,
latitude: 39.909,
longitude: 116.39742,
iconPath: require("@/static/icon/landmarkscon1.png")
// iconPath: require("@/static/icon/landmark.png")
}, {
latitude: 39.90,
longitude: 116.39,
iconPath: require("@/static/icon/landmark.png")
}]
}
},
methods: {

    }  
}  

</script>

<style>
</style>

操作步骤:

就基础的代码,app运行加宽高没反应

预期结果:

就基础的代码,app运行加宽高没反应

实际结果:

就基础的代码,app运行加宽高没反应

bug描述:

【报Bug】开发app map markers无法使用宽高修改地标大小

2023-09-05 11:30 负责人:无 分享
已邀请:
TLZ

TLZ (作者)

有没有大佬有解决方案的,教下教下

  • h***@163.com

    大佬解决了吗,我快被折磨死了

    2023-09-12 17:47

  • TLZ (作者)

    回复 h***@163.com: 不行还是改图片大小

    2023-09-15 15:49

2***@qq.com

2***@qq.com

太折磨了 我也是

要回复问题请先登录注册