diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/map/mapStyles.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/map/mapStyles.js b/modern/src/map/mapStyles.js index ff323cb..5a4ee10 100644 --- a/modern/src/map/mapStyles.js +++ b/modern/src/map/mapStyles.js @@ -1,10 +1,11 @@ -export const styleCustom = (url, attribution) => ({ +export const styleCustom = (url, attribution, tileSize) => ({ version: 8, sources: { osm: { type: 'raster', tiles: [url], attribution: attribution, + tileSize: tileSize, }, }, glyphs: 'https://cdn.traccar.com/map/fonts/{fontstack}/{range}.pbf', @@ -18,6 +19,7 @@ export const styleCustom = (url, attribution) => ({ export const styleOsm = () => styleCustom( 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', '© <a target="_top" rel="noopener" href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', + 256, ); export const styleCarto = () => ({ |