DBC22-5246: removed the logic to set all feature as invisible to prevent icons from disappearing when page refreshed - #1184
Conversation
ray-oxd
left a comment
There was a problem hiding this comment.
Please explain how you debugged this - in a meeting if needed. If I recall we're marking features as invisible and setting their styles again. How does this cause the bug to appear when we render from shared URLs?
…ent icons from disappearing when page refreshed
5a71034 to
eeaee72
Compare
Debugging showed that during the initial load, styles are correctly applied to features along the searched route, but they are then wiped out by that block of code. As a result, the highlighted icons briefly appear and then disappear. In fact, that block isn’t necessary; there’s no need to manually clear all feature styles, since overlays are already removed when no route is searched. |
DBC22-5246: removed the logic to set all feature as invisible to prevent icons from disappearing when page refreshed