Skip to content

Add a Reset Zoom Button to Interactive Map #874

@nicksspirit

Description

@nicksspirit

Problem

The interactive map currently lacks a "reset zoom" control/button. Users may manually pan/zoom to various locations and levels, but there is no easy way to return to the initial full-world view. This impacts usability, especially for users who get "lost" exploring the map.

Image

Proposed Solution

Add a reset zoom button to the map interface. This button should:

  • Be clearly visible (top-right or near the zoom controls)
  • When clicked, reset the map view to the initial center ([20, 0]) and zoom level (2)
  • Match the design and style of other map controls (dark theme compatibility)

Technical Approach

  • Implement as a custom HTML/JS control injected via Folium after the map is generated.
  • Button will use an appropriate icon (↺ or similar).
  • Will not impact existing functionality or controls.

Deployment/Testing

  • On PR merge, GitHub Actions (static.yml) will regenerate and deploy the updated map.
  • Manual testing will confirm:
    • Button visibility/styling
    • Click restores center & zoom
    • Works after arbitrary panning/zooming
    • No overlap/conflict with other UI elements

References:

Acceptance Criteria

  • Map has a visible, functional reset button
  • Styling matches dark-themed map controls
  • Map view resets as described
  • Feature deployed and visible on live site

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions