Is there any way to use 2D array of Lat,long and place it as polygon on any open street map?

I wanted to use the array of lat, long as follows

image

to be able to view on map not as marker but as polygon lines connecting these lines to form a closed area as follow.

image

If this feature is a pending one then is there any other open source tool that connects with redash to do the same ?