Bugfix: TrackAnalysis selected edges lingered after route deletion
This commit is contained in:
parent
260f34521e
commit
8b311b1add
1 changed files with 8 additions and 0 deletions
|
|
@ -91,6 +91,14 @@ BR.TrackAnalysis = L.Class.extend({
|
||||||
|
|
||||||
if (segments.length === 0) {
|
if (segments.length === 0) {
|
||||||
$('#track_statistics').html('');
|
$('#track_statistics').html('');
|
||||||
|
if (this.highlightedSegments) {
|
||||||
|
this.map.removeLayer(this.highlightedSegments);
|
||||||
|
this.highlightedSegments = null;
|
||||||
|
}
|
||||||
|
if (this.highlightedSegment) {
|
||||||
|
this.map.removeLayer(this.highlightedSegment);
|
||||||
|
this.highlightedSegment = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue