# Curved Shape Polygon Draw

Hi @Ethan i need ur help for draw a curve polygon . Previously I asked you for some daynight Overlay, I did’t find out any proper solution. I managed to find the points to draw the polygon . It’s like
[-90, -360]
[NaN, -360]
[NaN, -359.5]
[NaN, -359]
[NaN, -358.5]
[NaN, -358]
[NaN, -357.5]
[NaN, -357]
[NaN, -356.5]
[NaN, -356]
[NaN, -355.5]
[NaN, -355]
[NaN, -354.5]
[NaN, -354]
[NaN, -353.5]
[NaN, -353]
[NaN, -352.5]
[NaN, -352]
[NaN, -351.5]
[NaN, -351]
[NaN, -350.5]
[NaN, -350]
[NaN, -349.5]
[NaN, -349]
[NaN, -348.5]
[NaN, -348]
[NaN, -347.5]
[NaN, -347]
[NaN, -346.5]
[NaN, -346]
[NaN, -345.5]
[NaN, -345]
[NaN, -344.5]
[NaN, -344]
[NaN, -343.5]
till [-90,360].

Hi Bibek,

You can see most of your points are invalid, we cannot draw a curve based on them. You should find the value of “NaN” and connect them as a line.

Regards,

Ethan

@Ethan actually in leafletjs they are drawing the ploygon with these points.

Hi Bibek,

If that’s exported from leaflet, I guess the library hide the exact value, or it have special way to handle the value.

But it’s not enough for help us to draw the shape on map.

Regards,

Ethan