Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix argument mutation and incorrect result when attempting to reuse P…
…athOverlay coordinates in getStaticImage config (#413) Array.prototype.reverse() reverses an array in place. This results in the (unintended) mutation of the coordinates property of the overlay param. Instead, create a new array and initialize it with the reversed lat and long. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse
- Loading branch information