Entries by Génesis

Rotate Markers in Google Maps

Still as of today (post’s date) you cannot rotate markers in Google Maps, you only can resize them, however if you are using SVGs (what I always recommend) you can do any transformation you want 🙂

Asynchronous iteration

Not all loop work the same in JavaScript. If you want an asynchronous loop you cannot use forEach because it will execute each iteration independently, however if you use a for of it will work as expected: it will await until the previous iteration has finished. async () => { for (const e of elements) […]