chore: fix typo in rendeAttribution
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
parent
21118f09da
commit
6d76b97d65
2 changed files with 3 additions and 3 deletions
|
|
@ -278,7 +278,7 @@ export const renderWatermark = (width, height, scale, text) => {
|
||||||
return canvas;
|
return canvas;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const rendeAttribution = (width, height, scale, text) => {
|
export const renderAttribution = (width, height, scale, text) => {
|
||||||
const canvas = createCanvas(scale * width, scale * height);
|
const canvas = createCanvas(scale * width, scale * height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.scale(scale, scale);
|
ctx.scale(scale, scale);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import {
|
||||||
GetPMtilesInfo,
|
GetPMtilesInfo,
|
||||||
GetPMtilesTile,
|
GetPMtilesTile,
|
||||||
} from './pmtiles_adapter.js';
|
} from './pmtiles_adapter.js';
|
||||||
import { renderOverlay, renderWatermark, rendeAttribution } from './render.js';
|
import { renderOverlay, renderWatermark, renderAttribution } from './render.js';
|
||||||
|
|
||||||
const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)';
|
const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)';
|
||||||
const PATH_PATTERN =
|
const PATH_PATTERN =
|
||||||
|
|
@ -482,7 +482,7 @@ const respondImage = (
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode === 'static' && item.staticAttributionText) {
|
if (mode === 'static' && item.staticAttributionText) {
|
||||||
const canvas = rendeAttribution(
|
const canvas = renderAttribution(
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
scale,
|
scale,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue