From a63d3bf1ffcdffe7604af06b242f20829f8dbe64 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Tue, 26 Jan 2021 18:48:14 +0000 Subject: [PATCH] Make polygons GeoJSON specification compliant --- examples/geojson.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/examples/geojson.js b/examples/geojson.js index 19d4b46f87..e0bed90d11 100644 --- a/examples/geojson.js +++ b/examples/geojson.js @@ -125,8 +125,9 @@ const geojsonObject = { 'coordinates': [ [ [-5e6, -1e6], - [-4e6, 1e6], [-3e6, -1e6], + [-4e6, 1e6], + [-5e6, -1e6], ], ], }, @@ -163,25 +164,28 @@ const geojsonObject = { [ [ [-5e6, 6e6], - [-5e6, 8e6], - [-3e6, 8e6], [-3e6, 6e6], + [-3e6, 8e6], + [-5e6, 8e6], + [-5e6, 6e6], ], ], [ [ [-2e6, 6e6], - [-2e6, 8e6], - [0, 8e6], [0, 6e6], + [0, 8e6], + [-2e6, 8e6], + [-2e6, 6e6], ], ], [ [ [1e6, 6e6], - [1e6, 8e6], - [3e6, 8e6], [3e6, 6e6], + [3e6, 8e6], + [1e6, 8e6], + [1e6, 6e6], ], ], ], @@ -208,8 +212,9 @@ const geojsonObject = { 'coordinates': [ [ [1e6, -6e6], - [2e6, -4e6], [3e6, -6e6], + [2e6, -4e6], + [1e6, -6e6], ], ], },