Merge pull request #11950 from mike-000/patch-21

Make polygons in the GeoJSON example comply to GeoJSON specification
This commit is contained in:
Tim Schaub
2021-01-29 06:02:41 -07:00
committed by GitHub
+13 -8
View File
@@ -125,8 +125,9 @@ const geojsonObject = {
'coordinates': [ 'coordinates': [
[ [
[-5e6, -1e6], [-5e6, -1e6],
[-4e6, 1e6],
[-3e6, -1e6], [-3e6, -1e6],
[-4e6, 1e6],
[-5e6, -1e6],
], ],
], ],
}, },
@@ -163,25 +164,28 @@ const geojsonObject = {
[ [
[ [
[-5e6, 6e6], [-5e6, 6e6],
[-5e6, 8e6],
[-3e6, 8e6],
[-3e6, 6e6], [-3e6, 6e6],
[-3e6, 8e6],
[-5e6, 8e6],
[-5e6, 6e6],
], ],
], ],
[ [
[ [
[-2e6, 6e6], [-2e6, 6e6],
[-2e6, 8e6],
[0, 8e6],
[0, 6e6], [0, 6e6],
[0, 8e6],
[-2e6, 8e6],
[-2e6, 6e6],
], ],
], ],
[ [
[ [
[1e6, 6e6], [1e6, 6e6],
[1e6, 8e6],
[3e6, 8e6],
[3e6, 6e6], [3e6, 6e6],
[3e6, 8e6],
[1e6, 8e6],
[1e6, 6e6],
], ],
], ],
], ],
@@ -208,8 +212,9 @@ const geojsonObject = {
'coordinates': [ 'coordinates': [
[ [
[1e6, -6e6], [1e6, -6e6],
[2e6, -4e6],
[3e6, -6e6], [3e6, -6e6],
[2e6, -4e6],
[1e6, -6e6],
], ],
], ],
}, },