How would I make a polygon based on the relative positions of markers in google maps?

后端 未结 1 654
难免孤独
难免孤独 2021-01-16 12:47

I have a list of markers that I want to create a polygon around (showing the area around the markers and not the markers themselves). So instead of having the poly points be

相关标签:
1条回答
  • 2021-01-16 13:13

    This is called a convex hull. There's an example at http://www.geocodezip.com/v3_map-markers_ConvexHull.asp which uses the algorithm described at http://softsurfer.com/Archive/algorithm_0203/algorithm_0203.htm

    0 讨论(0)
提交回复
热议问题