@foodmarketmaker/mapag 0.0.14 → 0.0.15
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.
|
@@ -252,7 +252,10 @@ class Styles {
|
|
|
252
252
|
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
253
253
|
}
|
|
254
254
|
const styleSpec = await response.json();
|
|
255
|
-
|
|
255
|
+
console.debug("Glyphs property:", styleSpec.glyphs);
|
|
256
|
+
if (!styleSpec.glyphs) {
|
|
257
|
+
styleSpec.glyphs = 'https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf';
|
|
258
|
+
}
|
|
256
259
|
return styleSpec;
|
|
257
260
|
}
|
|
258
261
|
async fetchAndCacheStyle(styleData) {
|
|
@@ -272,8 +275,9 @@ class Styles {
|
|
|
272
275
|
}
|
|
273
276
|
const styleSpec = await response.json();
|
|
274
277
|
// Add Glyphs
|
|
278
|
+
console.debug("Glyphs property:", styleSpec.glyphs);
|
|
275
279
|
if (!styleSpec.glyphs) {
|
|
276
|
-
styleSpec.glyphs = 'https://
|
|
280
|
+
styleSpec.glyphs = 'https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf';
|
|
277
281
|
}
|
|
278
282
|
// Extract source and layer IDs
|
|
279
283
|
const sourceIds = Object.keys(styleSpec.sources || {});
|
|
@@ -15041,6 +15045,7 @@ class WatershedMapper {
|
|
|
15041
15045
|
type: 'symbol',
|
|
15042
15046
|
layout: {
|
|
15043
15047
|
'text-field': ['get', 'name'],
|
|
15048
|
+
'text-font': ['Open Sans Regular'],
|
|
15044
15049
|
'text-size': this.settings().labelsSize,
|
|
15045
15050
|
'text-allow-overlap': this.settings().labelOverlap,
|
|
15046
15051
|
},
|