Skip to content

Commit

Permalink
Reset to normal opacity on route popup close.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Mar 19, 2021
1 parent 23d209d commit f4fd138
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/data_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,12 @@ var addRoutes = function(resultRoutes) {
};

path.on({
click: showRoute(i)
click: showRoute(i),
popupclose: function() {
for (var k = 0; k < routes.length; k++) {
routes[k].setStyle({opacity: LSetup.opacity});
}
}
});
row.onclick = showRoute(i);

Expand Down

0 comments on commit f4fd138

Please sign in to comment.