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