Use OpenMapTiles font instead of ArcGIS (#7780)

This commit is contained in:
Oreille
2021-09-02 17:31:42 +02:00
committed by GitHub
parent 5757d96912
commit e35bf1784f
2 changed files with 2 additions and 4 deletions

View File

@@ -73,8 +73,7 @@ export const layers: AnyLayer[] = [
filter: ['has', 'point_count'],
layout: {
'text-field': '{point_count_abbreviated}',
// 'text-font': ['Open Sans Semibold'],
'text-font': ['Noto Sans Regular'],
'text-font': ['Open Sans Semibold'],
'text-size': ['step', ['get', 'point_count'], 15, 100, 17, 750, 19],
},
},

View File

@@ -17,8 +17,7 @@ const defaultBasemap: BasemapSource = {
const baseStyle: Style = {
version: 8,
glyphs:
'https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_GCS_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf',
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf',
};
export function getBasemapSources(): BasemapSource[] {