From 5b24379c500d0e5a80d8aee578f97683d0202b21 Mon Sep 17 00:00:00 2001 From: Martin d'Allens Date: Sun, 1 Oct 2023 21:55:42 +0200 Subject: [PATCH] chore: fix linting Signed-off-by: Martin d'Allens --- src/serve_rendered.js | 8 +++++++- src/translate_layers.js | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/serve_rendered.js b/src/serve_rendered.js index c1513e195..3533031d4 100644 --- a/src/serve_rendered.js +++ b/src/serve_rendered.js @@ -1523,7 +1523,13 @@ export const serve_rendered = { const maxPoolSize = Math.max(minPoolSize, maxPoolSizes[j]); const languages = new Set([null, ...(options.languages || [])]); - map.renderers[s] = createPool(s, 'tile', minPoolSize, maxPoolSize, null); + map.renderers[s] = createPool( + s, + 'tile', + minPoolSize, + maxPoolSize, + null, + ); for (const language of languages) { map.renderers_static[`${s}${language}`] = createPool( s, diff --git a/src/translate_layers.js b/src/translate_layers.js index facbe398a..59d953b15 100644 --- a/src/translate_layers.js +++ b/src/translate_layers.js @@ -34,6 +34,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/** + * Transform style layers to force labels in a specific language. + * @param {Array} layers Layers that must be transformed. + * @param {string} language Target language code. + */ // prettier-ignore export default function translateLayers(layers, language) { /* eslint-disable */