修改地圖

dev
夜笙歌 7 months ago
parent 46be72e013
commit a70c05e593

@ -244,8 +244,14 @@ export default {
}); });
map.add(endMarker); map.add(endMarker);
endMarkerhs = e.target.hS endMarkerhs = e.target.hS
let hs1 = startMarkerhs
let hs2 = endMarkerhs
if(startMarkerhs>endMarkerhs){
hs1 = endMarkerhs
hs2 = startMarkerhs
}
let markersData = markers.map(v => { let markersData = markers.map(v => {
if (v.hS >= startMarkerhs && v.hS <= endMarkerhs) { if (v.hS >= hs1 && v.hS <= hs2) {
return v return v
} else { } else {
return null return null

Loading…
Cancel
Save