You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need labels for smaller areas - counties, neighborhoods, etc. #579
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:
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.
Activity
1ec5 commentedon Aug 10, 2023
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_Centroidin 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’slabelmember (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.
Streams and stream labels, neighborhood and county labels
tsinn commentedon Aug 10, 2023
For the time being, I've added neighborhood labels to

city_labels_other_z11.And I added a separate
countylabel: https://openhistoricalmap.github.io/mbgl-timeslider/demo/#12.000/37.42601/-122.15144/1850,1800-2022jeffreyameyer commentedon Aug 10, 2023
jeffreyameyer commentedon Aug 15, 2023
Any ETA for deployment?
Updates to map style
danrademacher commentedon Aug 15, 2023
Just queued this up for Ruben to deploy tomorrow
danrademacher commentedon Aug 17, 2023
This is now live
