uni-app nvue map $getAppMap is not a function

uni-app nvue map $getAppMap is not a function

详细问题描述

nvue map组件 无法使用 $getAppMap

提示 $getAppMap is not a function

.nvue 文档编译
不管是在 onReady 还是 mounted 里调用都不行,

this.maps = uni.createMapContext(‘map1’, this); 正常

TypeError: that.maps.$getAppMap is not a function. (In ‘that.maps.$getAppMap()’, ‘that.maps.$getAppMap’ is undefined)


更多关于uni-app nvue map $getAppMap is not a function的实战教程也可以访问 https://www.itying.com/category-93-b0.html

6 回复

那肯定。$getAppMap得到的plus.map的对象。 在nvue里,那地图对象并不是plus的地图,要用https://uniapp.dcloud.io/api/location/map?id=createmapcontext 控制

更多关于uni-app nvue map $getAppMap is not a function的实战教程也可以访问 https://www.itying.com/category-93-b0.html


那请问在 nvue 里如何拿到 plus 地图

nvue页面下,getCenterLocation也没法用啊

回复 5***@qq.com: 已修复,下次发版生效

回复 DCloud_uni-ad_HDX: 好的,谢谢,请问nvue markers支持网络图片吗?

回复 沧桑: 我也遇到这个问题了,请问楼主解决了吗

回到顶部