Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ if (maplayer !== null) {
}
}

console.log(selectedLayer);

// mousemove event throttle hack for smoother maps pan on firefox and IE
// taken from: http://stackoverflow.com/questions/22306130/how-to-limit-google-maps-api-lag-when-panning-the-map-with-lots-of-markers-and-p

Expand Down Expand Up @@ -1674,6 +1672,35 @@ function set_polyline_visibility(vcallsign, val) {
}
}

if(vehicle.prediction_polyline) {
if (val) {
map.addLayer(vehicle.prediction_polyline);
} else {
map.removeLayer(vehicle.prediction_polyline);
}
}
if(vehicle.prediction_launch_polyline) {
if (val) {
map.addLayer(vehicle.prediction_launch_polyline);
} else {
map.removeLayer(vehicle.prediction_launch_polyline);
}
}
if(vehicle.prediction_target) {
if (val) {
map.addLayer(vehicle.prediction_target);
} else {
map.removeLayer(vehicle.prediction_target);
}
}
if(vehicle.prediction_burst) {
if (val) {
map.addLayer(vehicle.prediction_burst);
} else {
map.removeLayer(vehicle.prediction_burst);
}
}

map.removeLayer(mapInfoBox);
}

Expand Down