Skip to content

Need labels for smaller areas - counties, neighborhoods, etc. #579

Closed

Description

@jeffreyameyer

Style change requested

Need to have additional place labels added to the style sheets.

Currently, I believe we only have labels for place=country and place = territory; state in tegola-ohm.json [not sure if that's the right place]

We also need to add labels and cartography for lower-level areas, such as counties as neighborhoods. For now, some variation on the county level is probably fine. To simplify things, we are using place=county and county=rancho to signify ranchos, but ideally, only using place=rancho would be sufficient.

This is needed for mapping old ranchos in California. at the California Map Society presentation on 19 August.

You can see some of these areas outlined, but not labeled here:

Monosnap OpenHistoricalMap 2023-08-08 14-56-42

Here are some of the relations:
Relation: Rancho San Francisquito (2745235)
Relation: Rancho Rinconada del Arroyo de San Francisquito (2745224)
Relation: Rancho Rincon de San Francisquito (2745225)

These relations have been set up with boundaries and label points. Ideally, the label points will provide the text to be displayed.

Activity

  1. 1ec5 commented on Aug 10, 2023

    @1ec5
    Member

    These relations have been set up with boundaries and label points. Ideally, the label points will provide the text to be displayed.

    In my opinion, the map should be capable of labeling an area at its centroid without requiring a mapper to place a node there. GL JS is already capable of automatically labeling a polygon at its centroid. The tiles are representing all administrative boundaries as multipolygons rather than linestrings, so clients already have everything they need. However, something about either the vector tiles or the style is preventing GL JS from deduplicating the labels across tile boundaries: #543 (comment).

    For larger-scale features like national boundaries, it may sometimes be overkill to include the full geometry in the tiles. But even if we were to slim the tiles by only having the boundaries share linestrings, the tiler should be able to perform some postprocessing on the data to synthesize a centroid point feature. We aren’t making any use of ST_Centroid in the TOML file.

    Despite this automation, places should continue to be labeled based on place=* points where provided. These place points represent the location that a populated place (human settlement) is centered around, which is not necessarily equivalent to the centroid of an administrative area. If we’re concerned about duplication between a place point’s label and a label for the overall administrative boundary, some will be deduplicated automatically by GL JS’s collision detection algorithm, but the tiler can make this more reliable by moving the synthetic centroid point to the same location as the boundary relation’s label member (which is the place point).

    Finally, it’s pretty common for maps to label the names of both administrative areas along the edge of a boundary. osm-americana/openstreetmap-americana#753 demonstrates boundary edge labels. It should be much easier for the OHM styles than for anything based on OpenMapTiles, because either side of the boundary is still represented as a separate multipolygon feature with all the name fields intact.

  2. tsinn commented on Aug 10, 2023

    @tsinn

    For the time being, I've added neighborhood labels to city_labels_other_z11.
    And I added a separate county label: https://openhistoricalmap.github.io/mbgl-timeslider/demo/#12.000/37.42601/-122.15144/1850,1800-2022
    image

  3. jeffreyameyer commented on Aug 15, 2023

    @jeffreyameyer
    MemberAuthor

    Any ETA for deployment?

  4. added a commit that references this issue on Aug 15, 2023
  5. danrademacher commented on Aug 15, 2023

    @danrademacher

    Just queued this up for Ruben to deploy tomorrow

  6. danrademacher commented on Aug 17, 2023

    @danrademacher

    This is now live
    image

  7. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions