Skip to content

Amenities close together become invisible #926

Open

Description

@hayleox

Style change requested

I love that amenities and shops are now visible on the map and I've started adding a ton of them. The problem I've run into is, if there are two amenities very close to each other, one of them will become completely invisible, and you will have no way of knowing there's another amenity there unless you zoom in. It would be better if OHM's stylesheet was able to do something similar to osm-carto, where the icons are always visible (at any reasonable zoom level), but the text labels are hidden if there are too many clustered together.

Affected Tag or Tags

shop, amenity, etc

Where this is visible

In this screenshot, there should be a business (Young Buck Deli 2024-present / Holtman's Donut Shop 2013-2022) immediately next door to American Legacy Tours, but at this zoom level, you can't tell there's anything there at all.
395893872-5fcb4d94-7a57-4531-bca1-80574ea2d2a9

osm-carto handles this by removing the label for American Legacy Tours and only showing a blue dot.

image

Here is the location of this screenshot, although due to some unrelated tile server issue, additions that I uploaded yesterday are not visible at the time I'm submitting this ticket. (seems resolved now)

Activity

  1. moved this to TODO Soon in OHM Cartoon Dec 31, 2024
  2. moved this from TODO Soon to In map-styles repo in OHM Cartoon Dec 31, 2024
  3. vknoppkewetzel commented on Dec 31, 2024

    @vknoppkewetzel

    reorder_amenity_ohm

    I reordered the amenity layer so it is on top of the other layer (which is a catch all for other, so makes sense to change this as well).

    Live preview: https://embed.openhistoricalmap.org/#map=18.74/39.1106137/-84.5152167&date=2017&layer=O_staging

    The above update (see gif and preview link) will be avaiable in the next release.

  4. 1ec5 commented on Feb 12, 2025

    @1ec5
    Member

    The relevant symbol layers’ symbol-sort-key should sort by the area_km2 property added in #801. This property will only be present on features mapped as areas, so I guess that’s one more reason to go through the trouble of micromapping areas when possible.

    More generally, layers could also sort by the feature’s age (end_date minus start_date). Just as a typical map has larger features collide out smaller features, long-lived features could collide out short-lived features.

    The same approach would be a good starting point for just about any symbol layer, such as country and city labels, until we introduce something like Wikidata integration for more fine-grained feature selection.

  5. added theissue type on Mar 16, 2025
  6. moved this from In map-styles repo to In Progress in OHM Cartoon Oct 8, 2025
  7. moved this from In Progress to TODO Soon in OHM Cartoon Oct 8, 2025
  8. moved this from TODO Soon to No status in OHM Cartoon Oct 8, 2025
  9. moved this to TODO Soon in OHM Cartoon Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions