CodeNewbie Community 🌱


Posted on

[javascript] how to use loop condition to convert latlon to total distance.

Here community, this is my first post. I am working on a gmap map. I able to draw polygon , get relevant co ordinates on every click anywhere on map, total area of the drawned shape upon completion of the drawing but still i find no where proper code to convert list of co ordinates into total length (perimeter)..

Once the shape was drawned, i can blw to find the total area of the drawned shape. Same time want to find perimeter of the drawned shape.

In every place js code is exist to get distance between two point only. I tried loop to but i have no luck.
Pls help me.

Top comments (0)