@openhistoricalmap/map-styles 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.css ADDED
@@ -0,0 +1,53 @@
1
+ #map {
2
+ width: 100%;
3
+ height:100%
4
+ }
5
+
6
+ #popup {
7
+ position: absolute;
8
+ display: none;
9
+ background: #fff;
10
+ padding: 10px;
11
+ border-radius: 6px;
12
+ box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
13
+ z-index: 10;
14
+ max-width: 420px;
15
+ font-family: monospace;
16
+ font-size: 12px
17
+ }
18
+
19
+ pre {
20
+ background: #f6f6f6;
21
+ padding: 6px;
22
+ border-radius: 4px;
23
+ overflow: auto;
24
+ max-height: 140px
25
+ }
26
+
27
+ .copy-btn {
28
+ margin-left: 8px;
29
+ border: 0;
30
+ background: #eee;
31
+ padding: 2px 6px;
32
+ border-radius: 4px;
33
+ cursor: pointer;
34
+ font-size: 12px
35
+ }
36
+
37
+ .layer-title {
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ font-weight: 600;
42
+ margin-bottom: 6px
43
+ }
44
+
45
+ .layer-left {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: 8px
49
+ }
50
+
51
+ button.close {
52
+ margin-top: 8px
53
+ }
package/index.html CHANGED
@@ -2,9 +2,17 @@
2
2
  <head>
3
3
  <script src="./node_modules/maplibre-gl/dist/maplibre-gl.js"></script>
4
4
  <link href="./node_modules/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet" />
5
+ <link href="./index.css" rel="stylesheet" />
5
6
  </head>
6
7
  <body>
7
- <div id="map" style="width:100%;height:100%"></div>
8
+ <div id="map"></div>
9
+ <div id="popup">
10
+ <div><strong>Style:</strong> <span id="s-name"></span></div>
11
+ <div><strong>Style URL:</strong> <span id="s-url"></span></div>
12
+ <hr/>
13
+ <div id="layers"></div>
14
+ <button id="close" class="close">Close</button>
15
+ </div>
8
16
 
9
17
  <script type="module">
10
18
  import StyleFlipperControl from "./node_modules/maplibre-gl-style-flipper/index.js";
@@ -31,7 +39,7 @@
31
39
  },
32
40
  };
33
41
 
34
- var map = new maplibregl.Map({
42
+ let map = new maplibregl.Map({
35
43
  container: 'map',
36
44
  style: mapStyles["historical"].url,
37
45
  center: [-74.033, 40.6259],
@@ -40,13 +48,103 @@
40
48
  })
41
49
 
42
50
  // Create an instance of StyleFlipperControl
43
- const styleFlipperControl = new StyleFlipperControl(mapStyles);
51
+ const flipper = new StyleFlipperControl(mapStyles);
44
52
 
45
53
  // Set the initial style code
46
- styleFlipperControl.setCurrentStyleCode("historical");
54
+ flipper.setCurrentStyleCode("historical");
47
55
 
48
56
  // Add the control to the map
49
- map.addControl(styleFlipperControl, "bottom-right");
57
+ map.addControl(flipper, "bottom-right");
58
+
59
+ const
60
+ p = document.getElementById("popup"),
61
+ sName = document.getElementById("s-name"),
62
+ sUrl = document.getElementById("s-url"),
63
+ layersEl = document.getElementById("layers"),
64
+ closeBtn = document.getElementById("close")
65
+ ;
66
+
67
+ map.on("load", () => {
68
+ map.on("click", (e) => {
69
+ e.originalEvent.stopPropagation();
70
+ const cur = flipper.currentStyleCode || "historical";
71
+ sName.textContent = cur;
72
+ sUrl.textContent = mapStyles[cur].url || "";
73
+
74
+ layersEl.innerHTML = "";
75
+ const tol = 2;
76
+ const bbox = [[e.point.x - tol, e.point.y - tol], [e.point.x + tol, e.point.y + tol]];
77
+ const features = map.queryRenderedFeatures(bbox);
78
+
79
+ if (!features || features.length === 0) {
80
+ layersEl.textContent = "No rendered features at this point.";
81
+ } else {
82
+ const byLayer = {};
83
+ features.forEach(f => {
84
+ const id = (f.layer && f.layer.id) ? f.layer.id : "(no-layer)";
85
+ (byLayer[id] || (byLayer[id] = [])).push(f);
86
+ });
87
+ for (const lid of Object.keys(byLayer)) {
88
+ const wrapper = document.createElement("div");
89
+ const title = document.createElement("div");
90
+ title.className = "layer-title";
91
+
92
+ const left = document.createElement("div");
93
+ left.className = "layer-left";
94
+ const nameSpan = document.createElement("span");
95
+ nameSpan.textContent = `${lid} — ${byLayer[lid].length} feature(s)`;
96
+ left.appendChild(nameSpan);
97
+
98
+ const copyBtn = document.createElement("button");
99
+ copyBtn.className = "copy-btn";
100
+ copyBtn.type = "button";
101
+ copyBtn.innerText = "📋";
102
+ copyBtn.title = "Copy layer id";
103
+ copyBtn.dataset.layer = lid;
104
+
105
+ // copy handler
106
+ copyBtn.addEventListener("click", async (ev) => {
107
+ ev.stopPropagation(); // avoid closing popup
108
+ try {
109
+ await navigator.clipboard.writeText(lid);
110
+ const prev = copyBtn.innerText;
111
+ copyBtn.innerText = "Copied!";
112
+ setTimeout(() => copyBtn.innerText = prev, 1200);
113
+ } catch (err) {
114
+ copyBtn.innerText = "Err";
115
+ setTimeout(() => copyBtn.innerText = "📋", 1200);
116
+ }
117
+ });
118
+
119
+ left.appendChild(copyBtn);
120
+ title.appendChild(left);
121
+
122
+ // append features props (only properties) below
123
+ const propsDiv = document.createElement("div");
124
+ byLayer[lid].forEach((feat, i) => {
125
+ const pre = document.createElement("pre");
126
+ pre.textContent = `feature ${i} id:${feat.id ?? "n/a"}\n` + JSON.stringify(feat.properties || {}, null, 2);
127
+ propsDiv.appendChild(pre);
128
+ });
129
+
130
+ title.style.marginBottom = "6px";
131
+ wrapper.appendChild(title);
132
+ wrapper.appendChild(propsDiv);
133
+ layersEl.appendChild(wrapper);
134
+ }
135
+ }
136
+
137
+ p.style.left = (e.originalEvent.clientX + 10) + "px";
138
+ p.style.top = (e.originalEvent.clientY + 10) + "px";
139
+ p.style.display = "block";
140
+ });
141
+ });
142
+
143
+ // close handling: ignore clicks inside popup
144
+ document.addEventListener("click", (ev) => {
145
+ if (!p.contains(ev.target)) p.style.display = "none";
146
+ });
147
+ closeBtn.addEventListener("click", () => p.style.display = "none");
50
148
 
51
149
  </script>
52
150
 
@@ -2077,7 +2077,7 @@
2077
2077
  ["!=", ["get", "capital"], "yes"]
2078
2078
  ],
2079
2079
  "layout": {
2080
- "text-field": ["to-string", ["get", "name"]],
2080
+ "text-field": ["get", "name"],
2081
2081
  "text-font": ["BernerBasisschrift"],
2082
2082
  "text-transform": "uppercase",
2083
2083
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 13, 10, 15],
@@ -2117,7 +2117,7 @@
2117
2117
  ["==", ["get", "capital"], "yes"]
2118
2118
  ],
2119
2119
  "layout": {
2120
- "text-field": ["to-string", ["get", "name"]],
2120
+ "text-field": ["get", "name"],
2121
2121
  "text-font": ["BernerBasisschrift"],
2122
2122
  "text-transform": "uppercase",
2123
2123
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 16, 10, 20],
@@ -2159,7 +2159,7 @@
2159
2159
  ],
2160
2160
  "layout": {
2161
2161
  "visibility": "visible",
2162
- "text-field": ["to-string", ["get", "name"]],
2162
+ "text-field": ["get", "name"],
2163
2163
  "text-font": ["BernerBasisschrift"],
2164
2164
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 15, 10, 18],
2165
2165
  "text-line-height": 0.8,
@@ -2187,7 +2187,7 @@
2187
2187
  "filter": ["in", ["get", "type"], ["literal", ["state", "territory"]]],
2188
2188
  "layout": {
2189
2189
  "visibility": "visible",
2190
- "text-field": ["to-string", ["get", "name"]],
2190
+ "text-field": ["get", "name"],
2191
2191
  "text-font": ["BernerBasisschrift"],
2192
2192
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 15, 10, 18],
2193
2193
  "text-line-height": 0.8,
@@ -2219,7 +2219,7 @@
2219
2219
  ],
2220
2220
  "layout": {
2221
2221
  "visibility": "visible",
2222
- "text-field": ["to-string", ["get", "name"]],
2222
+ "text-field": ["get", "name"],
2223
2223
  "text-size": ["interpolate", ["linear"], ["zoom"], 4, 16, 6, 15],
2224
2224
  "text-font": ["BernerBasisschrift"],
2225
2225
  "symbol-placement": "point",
@@ -2249,7 +2249,7 @@
2249
2249
  "filter": ["==", ["get", "type"], "country"],
2250
2250
  "layout": {
2251
2251
  "visibility": "visible",
2252
- "text-field": ["to-string", ["get", "name"]],
2252
+ "text-field": ["get", "name"],
2253
2253
  "text-size": ["interpolate", ["linear"], ["zoom"], 4, 16, 6, 15],
2254
2254
  "text-font": ["BernerBasisschrift"],
2255
2255
  "symbol-placement": "point",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openhistoricalmap/map-styles",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "A collection of map styles for OpenHistoricalMap",
5
5
  "main": "''",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "scripts/prepare.js",
9
- "start": "browser-sync start --server --port 8888 --https --startPath '#7.33/40.487/-73.554' --files ['historical/*', 'railway/*', 'japanese_scroll/*', 'woodblock/*']"
9
+ "start": "browser-sync start --server --port 8888 --https --startPath #7.33/40.487/-73.554 --files ['index.html', 'index.css', 'historical/*', 'railway/*', 'japanese_scroll/*', 'woodblock/*']"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -5566,7 +5566,7 @@
5566
5566
  "minzoom": 14,
5567
5567
  "filter": ["all"],
5568
5568
  "layout": {
5569
- "text-field": ["to-string", ["get", "name"]],
5569
+ "text-field": ["get", "name"],
5570
5570
  "symbol-placement": "line",
5571
5571
  "symbol-spacing": 250,
5572
5572
  "symbol-avoid-edges": false,
@@ -5592,7 +5592,7 @@
5592
5592
  "minzoom": 11,
5593
5593
  "filter": ["in", ["get", "type"], ["literal", ["motorway", "trunk"]]],
5594
5594
  "layout": {
5595
- "text-field": ["to-string", ["get", "name"]],
5595
+ "text-field": ["get", "name"],
5596
5596
  "symbol-placement": "line",
5597
5597
  "symbol-spacing": 250,
5598
5598
  "symbol-avoid-edges": false,
@@ -5618,7 +5618,7 @@
5618
5618
  "minzoom": 6,
5619
5619
  "filter": ["==", ["get", "class"], "railway"],
5620
5620
  "layout": {
5621
- "text-field": ["to-string", ["get", "name"]],
5621
+ "text-field": ["get", "name"],
5622
5622
  "symbol-placement": "line",
5623
5623
  "symbol-spacing": 250,
5624
5624
  "symbol-avoid-edges": false,
@@ -5646,7 +5646,7 @@
5646
5646
  "maxzoom": 24,
5647
5647
  "filter": [">", ["get", "area"], 100000],
5648
5648
  "layout": {
5649
- "text-field": ["to-string", ["get", "name"]],
5649
+ "text-field": ["get", "name"],
5650
5650
  "text-font": ["OpenHistorical Italic"],
5651
5651
  "text-padding": 2,
5652
5652
  "text-allow-overlap": false,
@@ -5667,7 +5667,7 @@
5667
5667
  "maxzoom": 15,
5668
5668
  "filter": [">", ["get", "area"], 1000000],
5669
5669
  "layout": {
5670
- "text-field": ["to-string", ["get", "name"]],
5670
+ "text-field": ["get", "name"],
5671
5671
  "text-font": ["OpenHistorical Italic"],
5672
5672
  "text-padding": 2,
5673
5673
  "text-allow-overlap": false,
@@ -5689,7 +5689,7 @@
5689
5689
  "maxzoom": 24,
5690
5690
  "filter": ["in", ["get", "type"], ["literal", ["ocean", "sea"]]],
5691
5691
  "layout": {
5692
- "text-field": ["to-string", ["get", "name"]],
5692
+ "text-field": ["get", "name"],
5693
5693
  "text-font": ["OpenHistorical Italic"],
5694
5694
  "text-padding": 2,
5695
5695
  "text-allow-overlap": false,
@@ -5721,7 +5721,7 @@
5721
5721
  "maxzoom": 12,
5722
5722
  "filter": [">", ["get", "area"], 10000000],
5723
5723
  "layout": {
5724
- "text-field": ["to-string", ["get", "name"]],
5724
+ "text-field": ["get", "name"],
5725
5725
  "text-font": ["OpenHistorical Italic"],
5726
5726
  "text-padding": 2,
5727
5727
  "text-allow-overlap": false,
@@ -5750,7 +5750,7 @@
5750
5750
  "source-layer": "water_lines",
5751
5751
  "filter": ["in", ["get", "type"], ["literal", ["cliff"]]],
5752
5752
  "layout": {
5753
- "text-field": ["to-string", ["get", "name"]],
5753
+ "text-field": ["get", "name"],
5754
5754
  "text-font": ["OpenHistorical Italic"],
5755
5755
  "symbol-placement": "line",
5756
5756
  "symbol-spacing": 500,
@@ -5773,7 +5773,7 @@
5773
5773
  "source-layer": "water_lines",
5774
5774
  "filter": ["in", ["get", "type"], ["literal", ["dam"]]],
5775
5775
  "layout": {
5776
- "text-field": ["to-string", ["get", "name"]],
5776
+ "text-field": ["get", "name"],
5777
5777
  "text-font": ["OpenHistorical Italic"],
5778
5778
  "symbol-placement": "line",
5779
5779
  "symbol-spacing": 500,
@@ -5798,7 +5798,7 @@
5798
5798
  "maxzoom": 24,
5799
5799
  "filter": ["!", ["in", ["get", "type"], ["literal", ["cliff", "dam"]]]],
5800
5800
  "layout": {
5801
- "text-field": ["to-string", ["get", "name"]],
5801
+ "text-field": ["get", "name"],
5802
5802
  "text-font": ["OpenHistorical Italic"],
5803
5803
  "symbol-placement": "line",
5804
5804
  "symbol-spacing": 500,
@@ -5847,7 +5847,7 @@
5847
5847
  [">", ["get", "area"], 12000]
5848
5848
  ],
5849
5849
  "layout": {
5850
- "text-field": ["to-string", ["get", "name"]],
5850
+ "text-field": ["get", "name"],
5851
5851
  "text-size": ["interpolate", ["linear"], ["zoom"], 14, 11, 20, 14],
5852
5852
  "visibility": "none",
5853
5853
  "icon-text-fit": "none",
@@ -5886,7 +5886,7 @@
5886
5886
  ]
5887
5887
  ],
5888
5888
  "layout": {
5889
- "text-field": ["to-string", ["get", "name"]],
5889
+ "text-field": ["get", "name"],
5890
5890
  "text-size": 11,
5891
5891
  "text-font": ["OpenHistorical"],
5892
5892
  "visibility": "none"
@@ -5910,7 +5910,7 @@
5910
5910
  ["literal", ["forest", "nature_reserve", "wood"]]
5911
5911
  ],
5912
5912
  "layout": {
5913
- "text-field": ["to-string", ["get", "name"]],
5913
+ "text-field": ["get", "name"],
5914
5914
  "text-size": 11,
5915
5915
  "text-font": ["OpenHistorical"],
5916
5916
  "visibility": "none"
@@ -5934,7 +5934,7 @@
5934
5934
  ["literal", ["", "college", "education", "school", "university"]]
5935
5935
  ],
5936
5936
  "layout": {
5937
- "text-field": ["to-string", ["get", "name"]],
5937
+ "text-field": ["get", "name"],
5938
5938
  "text-size": 11,
5939
5939
  "text-font": ["OpenHistorical"]
5940
5940
  },
@@ -5956,7 +5956,7 @@
5956
5956
  ],
5957
5957
  "layout": {
5958
5958
  "visibility": "visible",
5959
- "text-field": ["to-string", ["get", "name"]],
5959
+ "text-field": ["get", "name"],
5960
5960
  "text-size": 9,
5961
5961
  "text-anchor": "center",
5962
5962
  "text-offset": [0, 0],
@@ -5979,7 +5979,7 @@
5979
5979
  "layout": {
5980
5980
  "icon-image": ["concat", ["get", "tourism"], "-18"],
5981
5981
  "visibility": "visible",
5982
- "text-field": ["to-string", ["get", "name"]],
5982
+ "text-field": ["get", "name"],
5983
5983
  "text-size": ["interpolate", ["linear"], ["zoom"], 16, 10, 20, 12],
5984
5984
  "text-anchor": "center",
5985
5985
  "text-offset": [0, 0],
@@ -6024,7 +6024,7 @@
6024
6024
  "layout": {
6025
6025
  "icon-image": ["concat", ["get", "type"], "-12"],
6026
6026
  "visibility": "visible",
6027
- "text-field": ["to-string", ["get", "name"]],
6027
+ "text-field": ["get", "name"],
6028
6028
  "text-size": 8,
6029
6029
  "text-anchor": "top",
6030
6030
  "text-offset": [0, 1],
@@ -6049,7 +6049,7 @@
6049
6049
  "layout": {
6050
6050
  "icon-image": ["concat", ["get", "type"], "-18"],
6051
6051
  "visibility": "visible",
6052
- "text-field": ["to-string", ["get", "name"]],
6052
+ "text-field": ["get", "name"],
6053
6053
  "text-size": [
6054
6054
  "interpolate",
6055
6055
  ["linear"],
@@ -6085,7 +6085,7 @@
6085
6085
  "layout": {
6086
6086
  "icon-image": ["concat", ["get", "type"], "-18"],
6087
6087
  "visibility": "visible",
6088
- "text-field": ["to-string", ["get", "name"]],
6088
+ "text-field": ["get", "name"],
6089
6089
  "text-size": 8,
6090
6090
  "text-anchor": "top",
6091
6091
  "text-offset": [0, 1],
@@ -6110,7 +6110,7 @@
6110
6110
  "layout": {
6111
6111
  "icon-image": ["concat", ["get", "type"], "-18"],
6112
6112
  "visibility": "visible",
6113
- "text-field": ["to-string", ["get", "name"]],
6113
+ "text-field": ["get", "name"],
6114
6114
  "text-size": [
6115
6115
  "interpolate",
6116
6116
  ["linear"],
@@ -6147,7 +6147,7 @@
6147
6147
  "layout": {
6148
6148
  "icon-image": ["concat", ["get", "type"], "-18"],
6149
6149
  "visibility": "visible",
6150
- "text-field": ["to-string", ["get", "name"]],
6150
+ "text-field": ["get", "name"],
6151
6151
  "text-size": [
6152
6152
  "interpolate",
6153
6153
  ["linear"],
@@ -6191,7 +6191,7 @@
6191
6191
  "layout": {
6192
6192
  "icon-image": ["concat", ["get", "site_type"], "-18"],
6193
6193
  "visibility": "visible",
6194
- "text-field": ["to-string", ["get", "name"]],
6194
+ "text-field": ["get", "name"],
6195
6195
  "text-size": [
6196
6196
  "interpolate",
6197
6197
  ["linear"],
@@ -6227,7 +6227,7 @@
6227
6227
  "layout": {
6228
6228
  "icon-image": ["concat", ["get", "artwork_type"], "-18"],
6229
6229
  "visibility": "visible",
6230
- "text-field": ["to-string", ["get", "name"]],
6230
+ "text-field": ["get", "name"],
6231
6231
  "text-size": [
6232
6232
  "interpolate",
6233
6233
  ["linear"],
@@ -6291,7 +6291,7 @@
6291
6291
  "layout": {
6292
6292
  "icon-image": "railstation-18",
6293
6293
  "visibility": "visible",
6294
- "text-field": ["to-string", ["get", "name"]],
6294
+ "text-field": ["get", "name"],
6295
6295
  "text-size": [
6296
6296
  "interpolate",
6297
6297
  ["linear"],
@@ -6332,7 +6332,7 @@
6332
6332
  "layout": {
6333
6333
  "icon-image": ["concat", ["get", "type"], "-18"],
6334
6334
  "visibility": "visible",
6335
- "text-field": ["to-string", ["get", "name"]],
6335
+ "text-field": ["get", "name"],
6336
6336
  "text-size": [
6337
6337
  "interpolate",
6338
6338
  ["linear"],
@@ -6403,7 +6403,7 @@
6403
6403
  "layout": {
6404
6404
  "icon-image": ["concat", ["get", "type"], "-12"],
6405
6405
  "text-font": ["OpenHistorical"],
6406
- "text-field": ["to-string", ["get", "name"]],
6406
+ "text-field": ["get", "name"],
6407
6407
  "text-size": 8,
6408
6408
  "text-anchor": "top",
6409
6409
  "text-offset": [0, 0.8]
@@ -6424,7 +6424,7 @@
6424
6424
  "layout": {
6425
6425
  "icon-image": ["concat", ["get", "type"], "-18"],
6426
6426
  "text-font": ["OpenHistorical"],
6427
- "text-field": ["to-string", ["get", "name"]],
6427
+ "text-field": ["get", "name"],
6428
6428
  "text-size": [
6429
6429
  "interpolate",
6430
6430
  ["linear"],
@@ -6474,7 +6474,7 @@
6474
6474
  "layout": {
6475
6475
  "icon-image": ["concat", ["get", "shop"], "-18"],
6476
6476
  "visibility": "visible",
6477
- "text-field": ["to-string", ["get", "name"]],
6477
+ "text-field": ["get", "name"],
6478
6478
  "text-size": 8,
6479
6479
  "text-anchor": "top",
6480
6480
  "text-offset": [0, 1],
@@ -6500,7 +6500,7 @@
6500
6500
  ["==", ["get", "admin_level"], 6]
6501
6501
  ],
6502
6502
  "layout": {
6503
- "text-field": ["to-string", ["get", "name"]],
6503
+ "text-field": ["get", "name"],
6504
6504
  "text-font": ["OpenHistorical"],
6505
6505
  "text-size": [
6506
6506
  "interpolate",
@@ -6534,7 +6534,7 @@
6534
6534
  "maxzoom": 20,
6535
6535
  "filter": ["in", ["get", "type"], ["literal", ["county"]]],
6536
6536
  "layout": {
6537
- "text-field": ["to-string", ["get", "name"]],
6537
+ "text-field": ["get", "name"],
6538
6538
  "text-font": ["OpenHistorical"],
6539
6539
  "text-size": [
6540
6540
  "interpolate",
@@ -6575,7 +6575,7 @@
6575
6575
  ]
6576
6576
  ],
6577
6577
  "layout": {
6578
- "text-field": ["to-string", ["get", "name"]],
6578
+ "text-field": ["get", "name"],
6579
6579
  "text-font": ["OpenHistorical"],
6580
6580
  "text-size": [
6581
6581
  "interpolate",
@@ -6606,7 +6606,7 @@
6606
6606
  "maxzoom": 20,
6607
6607
  "filter": ["in", ["get", "type"], ["literal", ["town"]]],
6608
6608
  "layout": {
6609
- "text-field": ["to-string", ["get", "name"]],
6609
+ "text-field": ["get", "name"],
6610
6610
  "text-font": ["OpenHistorical"],
6611
6611
  "text-size": [
6612
6612
  "interpolate",
@@ -6637,7 +6637,7 @@
6637
6637
  "maxzoom": 20,
6638
6638
  "filter": ["in", ["get", "type"], ["literal", ["city"]]],
6639
6639
  "layout": {
6640
- "text-field": ["to-string", ["get", "name"]],
6640
+ "text-field": ["get", "name"],
6641
6641
  "text-font": ["OpenHistorical"],
6642
6642
  "text-size": [
6643
6643
  "interpolate",
@@ -6672,7 +6672,7 @@
6672
6672
  ["==", ["get", "capital"], "yes"]
6673
6673
  ],
6674
6674
  "layout": {
6675
- "text-field": ["to-string", ["get", "name"]],
6675
+ "text-field": ["get", "name"],
6676
6676
  "text-font": ["OpenHistorical"],
6677
6677
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 12, 10, 15],
6678
6678
  "visibility": "visible",
@@ -6702,7 +6702,7 @@
6702
6702
  ["!=", ["get", "capital"], "yes"]
6703
6703
  ],
6704
6704
  "layout": {
6705
- "text-field": ["to-string", ["get", "name"]],
6705
+ "text-field": ["get", "name"],
6706
6706
  "text-font": ["OpenHistorical"],
6707
6707
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 12, 10, 15],
6708
6708
  "visibility": "visible",
@@ -6733,7 +6733,7 @@
6733
6733
  ],
6734
6734
  "layout": {
6735
6735
  "visibility": "visible",
6736
- "text-field": ["to-string", ["get", "name"]],
6736
+ "text-field": ["get", "name"],
6737
6737
  "text-font": ["OpenHistorical"],
6738
6738
  "text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 6, 15, 10, 18],
6739
6739
  "text-line-height": 1,
@@ -6761,7 +6761,7 @@
6761
6761
  "filter": ["in", ["get", "type"], ["literal", ["state", "territory"]]],
6762
6762
  "layout": {
6763
6763
  "visibility": "visible",
6764
- "text-field": ["to-string", ["get", "name"]],
6764
+ "text-field": ["get", "name"],
6765
6765
  "text-font": ["OpenHistorical"],
6766
6766
  "text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 6, 15, 10, 18],
6767
6767
  "text-line-height": 1,
@@ -6788,7 +6788,7 @@
6788
6788
  "maxzoom": 20,
6789
6789
  "filter": ["==", ["get", "featurecla"], "Admin-1 capital"],
6790
6790
  "layout": {
6791
- "text-field": ["to-string", ["get", "name"]],
6791
+ "text-field": ["get", "name"],
6792
6792
  "text-font": ["OpenHistorical Bold"],
6793
6793
  "text-size": 10,
6794
6794
  "text-transform": "uppercase",
@@ -6815,7 +6815,7 @@
6815
6815
  ],
6816
6816
  "layout": {
6817
6817
  "visibility": "visible",
6818
- "text-field": ["to-string", ["get", "name"]],
6818
+ "text-field": ["get", "name"],
6819
6819
  "text-size": [
6820
6820
  "interpolate",
6821
6821
  ["linear"],
@@ -6855,7 +6855,7 @@
6855
6855
  "filter": ["==", ["get", "type"], "country"],
6856
6856
  "layout": {
6857
6857
  "visibility": "visible",
6858
- "text-field": ["to-string", ["get", "name"]],
6858
+ "text-field": ["get", "name"],
6859
6859
  "text-size": [
6860
6860
  "interpolate",
6861
6861
  ["linear"],
@@ -2169,7 +2169,7 @@
2169
2169
  ["!=", ["get", "capital"], "yes"]
2170
2170
  ],
2171
2171
  "layout": {
2172
- "text-field": ["to-string", ["get", "name"]],
2172
+ "text-field": ["get", "name"],
2173
2173
  "text-font": ["Eadui"],
2174
2174
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 13, 10, 15],
2175
2175
  "visibility": "visible",
@@ -2208,7 +2208,7 @@
2208
2208
  ["==", ["get", "capital"], "yes"]
2209
2209
  ],
2210
2210
  "layout": {
2211
- "text-field": ["to-string", ["get", "name"]],
2211
+ "text-field": ["get", "name"],
2212
2212
  "text-font": ["Eadui"],
2213
2213
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 16, 10, 20],
2214
2214
  "visibility": "visible",
@@ -2248,7 +2248,7 @@
2248
2248
  ],
2249
2249
  "layout": {
2250
2250
  "visibility": "visible",
2251
- "text-field": ["to-string", ["get", "name"]],
2251
+ "text-field": ["get", "name"],
2252
2252
  "text-font": ["Eadui"],
2253
2253
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 15, 10, 18],
2254
2254
  "text-line-height": 1,
@@ -2275,7 +2275,7 @@
2275
2275
  "filter": ["in", ["get", "type"], ["literal", ["state", "territory"]]],
2276
2276
  "layout": {
2277
2277
  "visibility": "visible",
2278
- "text-field": ["to-string", ["get", "name"]],
2278
+ "text-field": ["get", "name"],
2279
2279
  "text-font": ["Eadui"],
2280
2280
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 15, 10, 18],
2281
2281
  "text-line-height": 1,
@@ -2306,7 +2306,7 @@
2306
2306
  ],
2307
2307
  "layout": {
2308
2308
  "visibility": "visible",
2309
- "text-field": ["to-string", ["get", "name"]],
2309
+ "text-field": ["get", "name"],
2310
2310
  "text-size": [
2311
2311
  "interpolate",
2312
2312
  ["linear"],
@@ -2346,7 +2346,7 @@
2346
2346
  "filter": ["==", ["get", "type"], "country"],
2347
2347
  "layout": {
2348
2348
  "visibility": "visible",
2349
- "text-field": ["to-string", ["get", "name"]],
2349
+ "text-field": ["get", "name"],
2350
2350
  "text-size": [
2351
2351
  "interpolate",
2352
2352
  ["linear"],