|
|
@ -58,14 +58,23 @@ const store = new Vuex.Store({ |
|
|
|
spotGuideMarkers(state){ |
|
|
|
let list = [] |
|
|
|
|
|
|
|
state.spotList.forEach(n => { |
|
|
|
state.spotList.forEach((n, index) => { |
|
|
|
|
|
|
|
if(state.spotGuideIndex != n.categoryId){ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if(state.areaId != n.areaId){ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
list.push({ |
|
|
|
latitude: n.spotLatitude, |
|
|
|
longitude: n.spotLongitude, |
|
|
|
width: 20, //图标icon 宽度
|
|
|
|
height: 28 ,//图标icon 高度
|
|
|
|
iconPath: `/static/image/tourGuide/${n.categoryId}.png`, //图标
|
|
|
|
id: n.id, |
|
|
|
id: index, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|