|
|
@ -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
|
|
|
|