New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Map position should stay fixed when changing filters #466
Comments
The reason why this is happening is because of these lines of code: seismic-risc/client/src/components/HereMapInteractive.js Lines 56 to 68 in 1616f56
They calculate the bounds of the new points, and tries to reposition the map so that it contains them all. We could remove the code and this bug would be fixed, but are we sure we want to completely lose this behavior? |
@GabrielMajeri sorry for the late response; I only just managed to test out the changes locally I feel the current behaviour is flawed. That's because this feature does position the map at the centre of all the markers but it doesn't change the zoom level It would be great if the map self-centred to show all markers when being opened for the first time and I would like a |
The PR I made is rather a POC. While not the best solution, it fixes the issue. Maybe we can find a better solution, though 🤔 |
The PR does solve this bug as is described. For your idea with a |
I'm waiting for some answers from UX to see if we actually do want a button. If not, we'll just kill the |
why this is not closed? |
Because it hasn't been fixed yet 😅 |
Hello, I can take this one if it`s still an issue. |
Currently, when a map filter is selected the map position changes to another place.
The map should stay fixed when changing filters and position should be changed only by the user by panning, zooming, and selecting a marker.
Current behaviour:
The text was updated successfully, but these errors were encountered: