Determine the lat lngs of markers within a polygon

后端 未结 4 1116
-上瘾入骨i
-上瘾入骨i 2021-01-21 23:40

I have a google maps app which plots markers as it loads. One of the new requirment is to to add a Polygon overlay encompassing a selection of markers by the user. I was able to

4条回答
  •  抹茶落季
    2021-01-22 00:16

    I have never directly messed around with Google Maps, but you can store the points that make up the polygon and then use the Point-In-polygon Algorithm to check if a given longitude and latitude point is within a polygon or not.

提交回复
热议问题