n***@163.com
n***@163.com
  • 发布:2021-11-03 11:31
  • 更新:2021-11-08 17:28
  • 阅读:3222

【报Bug】升级后,map组件不能用,提示Map key not configured.

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win7 旗舰版

HBuilderX类型: 正式

HBuilderX版本号: 3.2.12

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 华为

手机机型: p30

页面类型: vue

打包方式: 云端

项目创建方式: 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 {
data() {
return {
id:0, // 使用 marker点击事件 需要填写id
title: 'map',
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>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.logo {  
    height: 200rpx;  
    width: 200rpx;  
    margin-top: 200rpx;  
    margin-left: auto;  
    margin-right: auto;  
    margin-bottom: 50rpx;  
}  

.text-area {  
    display: flex;  
    justify-content: center;  
}  

.title {  
    font-size: 36rpx;  
    color: #8f8f94;  
}  

</style>

操作步骤:

见上

预期结果:

看到地图

实际结果:

看给到

bug描述:

map组件不能用,提示Map key not configured.

2021-11-03 11:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复