地图 map 组件 marker 数量超过 499 报错,提供复现代码
微信小程序 map 组件 marker 数量超过 499 报如下错误: [渲染层错误] MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 501 move listeners added. Use emitter.setMaxListeners() to increase limit at a (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:69132) at e.o.addListener (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:71956) at wl.value (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:17:226697) at wl.value (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:17:227493) at wl.e (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:17:226410) at new wl (http://127.0.0.1:43967/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658976045582&v=2.25.1:1:1439232) at http://127.0.0.1:43967/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658976045582&v=2.25.1:1:1449375 at Array.forEach (<anonymous>) at l.updateMultiMarker (http://127.0.0.1:43967/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658976045582&v=2.25.1:1:1448516) at http://127.0.0.1:43967/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1658976045582&v=2.25.1:1:1447843(env: macOS,mp,1.05.2204250; lib: 2.25.1) 通常显示 1000+ 个 marker,最多不超过 10000 个。 [图片]