fixed errors

This commit is contained in:
Fedor Katurov 2019-12-14 19:34:26 +07:00
parent 6880d155ed
commit ef92e4f38c

View file

@ -96,5 +96,5 @@ export const replaceProviderUrl = (provider, { x, y, zoom }: { x: number, y: num
? range[Math.round((Math.random() * (range.length - 1)))]
: 1;
return url.replace('{x}', x).replace('{y}', y).replace('{z}', zoom).replace('{s}', String(random));
return url.replace('{x}', String(x)).replace('{y}', String(y)).replace('{z}', String(zoom)).replace('{s}', String(random));
};