Skip to content

New bathroom icons #109

Description

@whiniy

Description

Some buildings currently have restroom amenities placed at different points because the men’s and women’s bathrooms are located on opposite ends of a hallway or in different nearby rooms. To make the map more accurate and easier to understand, we should introduce separate icons for men’s and women’s restrooms:

Women’s restroom icon: pink background with woman symbol
Men’s restroom icon: blue background with man symbol

We also have cases where multiple restroom amenities overlap visually, especially when bathrooms exist in the same general area but on different floors. At certain zoomed-out levels, showing all of these individual restroom icons creates clutter and makes the map harder to read.

To improve this, we should add a third general restroom icon that represents clustered restroom amenities when the map is zoomed out:

General restroom icon: half pink / half blue background with woman + man symbol

When the user zooms out, nearby restroom amenities should collapse into one general restroom icon. When the user zooms back in, the individual men’s and women’s restroom icons should reappear.

Technical Approach

Update the icon generation pipeline to support three restroom icon variants:

  • women’s restroom
  • men’s restroom
  • general restroom

Modify the following files as needed:

  • create_icons.py
  • create_simple_icons.sh
  • download_icons.sh
  • generate-amenity-icons.ps1
  • icon-spec.json

Update the amenity rendering behavior so that overlapping or nearby restroom icons can be represented by a single general restroom icon at lower zoom levels

If the clustered restroom locations do not align perfectly, compute a midpoint between the relevant restroom coordinates and place the general restroom icon there

Acceptance Criteria

  • There is an icon for women's bathroom
  • There is an icon for men's bathroom
  • There is an icon for general bathroom
  • At zoomed-out levels, nearby restroom amenities are replaced by a single general restroom icon
  • At zoomed-in levels, the individual restroom icons reappear
  • The placement of the general restroom icon is visually reasonable for clustered restroom locations

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