Merge pull request #3086 from tchak/fix-geojson

Fix geojson exposed on legacy carto API
This commit is contained in:
gregoirenovel 2018-11-29 10:42:05 +01:00 committed by GitHub
commit 608a191ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ class Champs::CarteChamp < Champ
type: 'Polygon',
coordinates: [
geo_json[0].map do |polygon|
[polygon['lat'], polygon['lng']]
[polygon['lng'], polygon['lat']]
end
]
}