< map id = "map" markers = "{{markers}}" bindmarkertap = "markertap" bindpoitap = "poiTap" show-location enable-3D show-compass show-scale enable-overlooking enable-rotate > </ map > |
// map.js const mapSdk = require( '../../assets/sdk/qqmap-wx-jssdk.min.js' ); const util = require( '../../utils/util.js' ); var mapSdkInstant; Page({ data: { markers: [], mapCtx: null , }, regionchange(e) { console.log(e) }, markertap(e) { console.log(e.markerId) }, controltap(e) { console.log(e.controlId) }, mapTap(e) { console.log(e) }, poiTap(e) { console.log(e) }, onLoad(query) { // Instantiation qq map sdk mapSdkInstant = new mapSdk({ key: '' }); this .mapCtx = wx.createMapContext( 'map' ) this .mapCtx.moveToLocation() } }) |
这边 poiTap 怎样都没反应呢 哪怕我用官方的示例都改了一个都无效
官网示例我改出来的链接
https://developers.weixin.qq.com/s/kSebcLmm75a2
模拟器上好像是无效的,真机可以。
这个问题还没修复。笑哭
模拟器,没反应
沉了?官方的人呢