Created
September 12, 2018 11:03
-
-
Save LouisaKB/92f623f2a31a39532b8f5e58acf2d778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remapLinearRing(linearRing) { | |
// Converts an array of { 'lat': <lat>, 'lng': <lng> } objects into an array of [<lng>, <lat>]. | |
return linearRing.map(c => [c['lng'], c['lat']]) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment