maptiler / maptiler-client-js

MapTiler APIs wrapper in JavaScript & TypeScript
https://docs.maptiler.com/client-js/
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

RD-294: Move the list of map languages to maptiler-client #42

Closed jonathanlurie closed 2 months ago

jonathanlurie commented 2 months ago

RD-294

The goal is to centralize the list of languages so that it can be used by multiple JS/TS tools and libraries.

zdila commented 2 months ago

I also prefer to use ternaries to multiple if (condA) return A; if (condB) return B; ... return X; - so rather return condA ? A : condB ? B : X;.

Also I prefer not using temporary variables, like let foo = bar(); return foo; but rather use return bar(); directly.

But it is only my subjective preference.