How to create multiple polygons by passing arrays of lats and longs

I am making an app in which admin will mark a location like a polygon and the coordinates will be saved in firestore
On user side the polygon will be shown by passing values from ts file
This is how i am currently doing but there cam be multiple polygons of different number of latitude and longitudes
Your help will be appreciated

1 Like