使用map[渲染层错误] [Component] <map>: marker id should?
map.js Page({ data: { latitude: 23.099994, longitude: 113.324520, markers: [{ id: 1, // 确保 id 是数字 latitude: 23.067502, longitude: 113.587409, width: 50, height: 50, name: '神奇宝贝(宠物店)' }] }, onLoad: function () { const plugin = requirePlugin('routePlan'); const key = '63CBZ-RNOCQ-RUI5U-2PORG-HHAMV-ZOBZM'; // 使用在腾讯位置服务申请的 key const referer = 'wx50b5593e81dd937a'; // 调用插件的 app 的名称 const endPoint = JSON.stringify({ name: this.data.markers[0].name, latitude: this.data.markers[0].latitude, longitude: this.data.markers[0].longitude }); console.log('Navigating to route plan with:', key, referer, endPoint); wx.navigateTo({ url: `plugin://routePlan/index?key=${key}&referer=${referer}&endPoint=${endPoint}`, success(res) { console.log('Navigation successful:', res); }, fail(err) { console.error('Navigation failed:', err); } }) } }) map.wxml <map latitude="{{latitude}}" longitude="{{longitude}}" markers="{{markers}}" style="width: 100%; height: 500px;" /> [图片]