Skip to content

Fix/zoom feature - #197

Open
reanbrenda wants to merge 3 commits into
mainfrom
fix/zoom-feature
Open

Fix/zoom feature#197
reanbrenda wants to merge 3 commits into
mainfrom
fix/zoom-feature

Conversation

@reanbrenda

@reanbrenda reanbrenda commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

This pull request improves map interaction behavior by preventing unintended zoom-out when selecting a school point and by making school dots continue to scale at higher zoom levels for better visibility.

Related Issue

When users clicked a school point after manually zooming in, the map reset to a fixed zoom level, creating a a bad experience.
Additionally, circle markers stopped increasing in size after a certain zoom threshold, making high-zoom exploration less clear.

Proposed Changes

Proposed Changes

Fixed the zoom-out issue when clicking a school:

  • If user is already zoomed in, we keep that zoom.
  • We only move the map center to the school.
  • Use the higher value between default school zoom and current zoom in zoomToCountryFx.

Updated map styling so circles get bigger at higher zoom levels:

  • Added more zoom-size steps for circle-radius.
  • Applied same update to country override settings (lk) for consistency.

Screenshots (if applicable)

Checklist

  • I have tested these changes locally.
  • I have updated the documentation (if applicable).
  • I have reviewed my code changes.

Additional Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant