Skip to content

Added labels for residential, commercial, industrial, construction areas - #78

Merged
1ec5 merged 7 commits into
OpenHistoricalMap:stagingfrom
hangukhistory3-lgtm:staging
Nov 18, 2026
Merged

1ec5 merged 7 commits into
OpenHistoricalMap:stagingfrom
hangukhistory3-lgtm:staging

Conversation

@hangukhistory3-lgtm

@hangukhistory3-lgtm hangukhistory3-lgtm commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Added labels for areas with landuse=residential, landuse=commercial, landuse=industrial, landuse=construction.
See the OpenHistoricalMap/issues#1447.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It’s a bit difficult to follow this PR because of all the (reasonable) formatting changes, so hopefully I didn’t miss anything.

Comment thread historical/historical.json Resolved
Comment thread historical/historical.json Resolved
Comment thread historical/historical.json Resolved
Comment thread historical/historical.json Resolved
Comment thread historical/historical.json Resolved
@1ec5 1ec5 linked an issue Oct 28, 2026 that may be closed by this pull request
@Rub21

Rub21 commented Nov 5, 2026

Copy link
Copy Markdown
Member

Thanks @hangukhistory3-lgtm, I pushed a commit to your branch that applies the review comments and removes the extra formatting changes from Maputnik.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Style preview: https://pr-78.ohm-map-styles.pages.dev

Left side is production, right side is this PR. Drag the bar to compare.

Comment thread historical/historical.json Outdated
[
"in",
["get", "type"],
["literal", ["commercial", "construction", "industrial", "residential"]]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, we’ll probably want to combine these symbol layers in the future for easier maintenance and better performance.

@1ec5
1ec5 merged commit d5316cd into OpenHistoricalMap:staging Nov 18, 2026
2 checks passed

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

label landuse=residental areas

3 participants