Created
October 23, 2018 18:48
-
-
Save elijahzarlin/717b33a4cd7460bee8e104ca1abc7a7f to your computer and use it in GitHub Desktop.
hurricane-map-2
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
| let bearing = ruler.bearing(firstPoint, nextPoint); | |
| let p1 = ruler.destination(nextPoint, errorRadius, bearing + 90); | |
| let p2 = ruler.destination(firstPoint, acc.prevPoint.errorRadius, bearing + 90); | |
| let p3 = ruler.destination(firstPoint, acc.prevPoint.errorRadius, bearing - 90); | |
| let p4 = ruler.destination(nextPoint, errorRadius, bearing - 90); | |
| const polygon = turf.polygon([[p1, p2, p3, p4, p1]]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment