s = [];
                markersData.filter(item => item.icon !== 'cafe').forEach(function(item) {
                    pathCoordinates.push(new AMap.LngLat(item.position[0], item.position[1]));
                });

                // 绘制连接线
                var polyline = new AMap.Polyline({
                    path: pathCoordinates,
                    strokeColor: '#3498db',  // 线颜色
                    strokeWeight: 4,         // 线宽
                    strokeStyle: 'dashed',   /