aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustafa Taha Şahin <taha.sahin@metu.edu.tr>2021-03-31 03:10:30 +0300
committerMustafa Taha Şahin <taha.sahin@metu.edu.tr>2021-03-31 03:10:30 +0300
commit558c85890e7da58be0b66b24837946a8d54314b4 (patch)
tree76da10ff676017b3dba34c335ff53ce283422cde
parent45b80fc096549c1ba5279d104f1c977723865124 (diff)
downloadetbsa-traccar-web-558c85890e7da58be0b66b24837946a8d54314b4.tar.gz
etbsa-traccar-web-558c85890e7da58be0b66b24837946a8d54314b4.tar.bz2
etbsa-traccar-web-558c85890e7da58be0b66b24837946a8d54314b4.zip
hardcode 256 for OSM tileSize
-rw-r--r--modern/src/map/mapStyles.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/mapStyles.js b/modern/src/map/mapStyles.js
index 5a4ee10..00a8666 100644
--- a/modern/src/map/mapStyles.js
+++ b/modern/src/map/mapStyles.js
@@ -1,11 +1,11 @@
-export const styleCustom = (url, attribution, tileSize) => ({
+export const styleCustom = (url, attribution) => ({
version: 8,
sources: {
osm: {
type: 'raster',
tiles: [url],
attribution: attribution,
- tileSize: tileSize,
+ tileSize: 256,
},
},
glyphs: 'https://cdn.traccar.com/map/fonts/{fontstack}/{range}.pbf',
@@ -19,7 +19,6 @@ export const styleCustom = (url, attribution, tileSize) => ({
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 = () => ({