nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

Create polygon from coordinates #1572

Closed trankhacvy closed 5 years ago

trankhacvy commented 5 years ago

I just wonder how we can create a Polygon from a list of coordinates. I have researched but can't find any solution.

Coordinates look like: const coordinates = [{lng1, lat1}, {lng2, lat2}, {lng3, lat3}, {lng4, lat4}, {lng5, lat5} ].

Please help !!

kristfal commented 5 years ago

Use stackoverflow for questions like this.