From https://stackoverflow.com/questions/64765846/mapbox-rectangle-line-from-bounds-from-two-points
Created
January 18, 2022 13:27
-
-
Save jkeefe/d429e9a0e21d71eae21b3418e901b2b6 to your computer and use it in GitHub Desktop.
Most basic geojson file, plotting a rectangle
This file contains hidden or 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
{ | |
"geometry": { | |
"coordinates": [ | |
[ | |
[ | |
17.76069212, | |
59.22761885 | |
], | |
[ | |
17.76069212, | |
59.44007814 | |
], | |
[ | |
18.20001876, | |
59.44007814 | |
], | |
[ | |
18.20001876, | |
59.22761885 | |
], | |
[ | |
17.76069212, | |
59.22761885 | |
] | |
] | |
], | |
"type": "Polygon" | |
}, | |
"type": "Feature", | |
"properties": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment