Skip to content

Add ScaleControl to various map components#2802

Merged
CollinBeczak merged 2 commits intomainfrom
Add-ScaleControl-to-various-map-components
Mar 18, 2026
Merged

Add ScaleControl to various map components#2802
CollinBeczak merged 2 commits intomainfrom
Add-ScaleControl-to-various-map-components

Conversation

@CollinBeczak
Copy link
Collaborator

  • Integrated ScaleControl into ActivityMap, BoundsSelectorModal, InsetMap, SupplementalMap, TaskMap, TaskNearbyMap, and LeaderboardMap components for improved user navigation.
  • Updated styles in MapPane.scss to ensure proper positioning of the ScaleControl.
  • Removed redundant ScaleControl styles from TaskClusterMap.scss.

This enhancement provides users with a clearer understanding of the map scale across different views.

resolves: #2787

- Integrated ScaleControl into ActivityMap, BoundsSelectorModal, InsetMap, SupplementalMap, TaskMap, TaskNearbyMap, and LeaderboardMap components for improved user navigation.
- Updated styles in MapPane.scss to ensure proper positioning of the ScaleControl.
- Removed redundant ScaleControl styles from TaskClusterMap.scss.

This enhancement provides users with a clearer understanding of the map scale across different views.
- Updated import statements for better readability by using multiline syntax for imports from 'react-leaflet'.
- This change enhances code clarity and maintains consistency across components.
@CollinBeczak CollinBeczak merged commit fcedeba into main Mar 18, 2026
6 checks passed
@CollinBeczak CollinBeczak deleted the Add-ScaleControl-to-various-map-components branch March 18, 2026 14:57
@CollinBeczak CollinBeczak mentioned this pull request Mar 19, 2026
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.

Scale bar for MapRoulette challenge view

1 participant