Repository navigation
Added labels for residential, commercial, industrial, construction areas - #78
Conversation
1ec5
left a comment
There was a problem hiding this comment.
Thanks! It’s a bit difficult to follow this PR because of all the (reasonable) formatting changes, so hopefully I didn’t miss anything.
|
Thanks @hangukhistory3-lgtm, I pushed a commit to your branch that applies the review comments and removes the extra formatting changes from Maputnik. |
|
Style preview: https://pr-78.ohm-map-styles.pages.dev Left side is production, right side is this PR. Drag the bar to compare. |
| [ | ||
| "in", | ||
| ["get", "type"], | ||
| ["literal", ["commercial", "construction", "industrial", "residential"]] |
There was a problem hiding this comment.
This stylesheet supports more landuse=* types that would be useful to label as well, such as retail and education. If we remove this filter, would we get any unwanted conflicts with other symbol layers? If so, we could give this layer lower priority than those layers.
There was a problem hiding this comment.
If we remove the filter, some types would get two labels, because other layers already label them: education in landuse_areas_labels_school, and the park, forest and farming layers. So I kept the filter and added retail, which had no label yet. It uses the same color as commercial.
There was a problem hiding this comment.
OK, we’ll probably want to combine these symbol layers in the future for easier maintenance and better performance.
Added labels for areas with
landuse=residential,landuse=commercial,landuse=industrial,landuse=construction.See the OpenHistoricalMap/issues#1447.