chore: fix typo in rendeAttribution

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
Martin d'Allens 2023-11-20 16:34:13 +01:00 committed by Andrew Calcutt
parent 21118f09da
commit 6d76b97d65
2 changed files with 3 additions and 3 deletions

View file

@ -278,7 +278,7 @@ export const renderWatermark = (width, height, scale, text) => {
return canvas;
};
export const rendeAttribution = (width, height, scale, text) => {
export const renderAttribution = (width, height, scale, text) => {
const canvas = createCanvas(scale * width, scale * height);
const ctx = canvas.getContext('2d');
ctx.scale(scale, scale);

View file

@ -29,7 +29,7 @@ import {
GetPMtilesInfo,
GetPMtilesTile,
} 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 PATH_PATTERN =
@ -482,7 +482,7 @@ const respondImage = (
}
if (mode === 'static' && item.staticAttributionText) {
const canvas = rendeAttribution(
const canvas = renderAttribution(
width,
height,
scale,