Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Martin d'Allens <[email protected]>
  • Loading branch information
Caerbannog committed Oct 1, 2023
1 parent 57931c8 commit 5b24379
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/serve_rendered.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions src/translate_layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5b24379

Please sign in to comment.