//动态获取数据resres.forEach(item)=>{varmarker=newAMap.Marker({icon:"http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",position:newAMap.LngLat(item.longitude,item.latitude),label:{offset:newAMap.Pixel(-10,-40),//设置文本标签偏移量content:`

//动态获取数据resres.forEach(item)=>{varmarker=newAMap.Marker({icon:"http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",position:newAMap.LngLat(item.longitude,item.latitude),label:{offset:newAMap.Pixel(-10,-40),//设置文本标签偏移量content:`