Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions historical/historical.json
Original file line number Diff line number Diff line change
Expand Up @@ -6739,6 +6739,96 @@
"text-halo-blur": 1
}
},
{
"id": "islets_points_labels",
"type": "symbol",
"source": "ohm",
"source-layer": "place_points_centroids",
"minzoom": 12,
"maxzoom": 20,
"filter": ["in", ["get", "type"], ["literal", ["islet"]]],
Comment on lines +6747 to +6749

@1ec5 1ec5 Aug 10, 2026

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 I’m not mistaken, the only differences between the two layers are minzoom, filter, and text-size. Can we combine the two layers by filtering out islets at zoom levels 8 through 12 inside filter and varying some of the text-size zoom stops based on the type attribute? Let me know if this is unclear or you run into any problems.

"layout": {
"text-line-height": 1,
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 4, 6, 7, 10, 10],
"symbol-avoid-edges": true,
"symbol-spacing": 25,
"text-font": ["OpenHistorical"],

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.

I think natural features tend to get italicized in this style. Let’s use OpenHistoricalMap Italic instead for both of these layers.

"symbol-placement": "point",
"visibility": "visible",
"text-field": ["get", "name"]
},
"paint": {
"text-color": [
"interpolate",
["linear"],
["zoom"],
6,
"rgba(90, 90, 90, 1)"
],
"text-halo-width": 0.5,
"text-halo-blur": 0.5,
"text-halo-color": [
"interpolate",
["linear"],
["zoom"],
0,
"rgba(252, 255, 254, 0.75)",
3,
"rgba(240, 244, 216, 1)",
5,
"rgba(246,247,227, 1)",
7,
"rgba(255,255,255, 1)"
],
"text-translate-anchor": "map",
"icon-translate-anchor": "map"
}
},
{
"id": "islands_points_labels",
"type": "symbol",
"source": "ohm",
"source-layer": "place_points_centroids",
"minzoom": 8,
"maxzoom": 20,
"filter": ["in", ["get", "type"], ["literal", ["island"]]],
"layout": {
"text-line-height": 1,
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 5, 6, 8, 10, 12],
"symbol-avoid-edges": true,
"symbol-spacing": 25,
"text-font": ["OpenHistorical"],
"symbol-placement": "point",
"visibility": "visible",
"text-field": ["get", "name"]
},
"paint": {
"text-color": [
"interpolate",
["linear"],
["zoom"],
6,
"rgba(90, 90, 90, 1)"
],
"text-halo-width": 0.5,
"text-halo-blur": 0.5,
"text-halo-color": [
"interpolate",
["linear"],
["zoom"],
0,
"rgba(252, 255, 254, 0.75)",
3,
"rgba(240, 244, 216, 1)",
5,
"rgba(246,247,227, 1)",
7,
"rgba(255,255,255, 1)"
],
"text-translate-anchor": "map",
"icon-translate-anchor": "map"
}
},
{
"id": "county_labels_z11_admin_7-8_centroids",
"type": "symbol",
Expand Down