map组件的bindpoitap无效?
< 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 怎样都没反应呢 哪怕我用官方的示例都改了一个都无效
官网示例我改出来的链接