1

I create map, where as user can draw the boundaries(polygon) of his area, and give exact geo-location by placing pin(marker). but my problem is that when i create this before it check the marker is inside the polygon or not.

image description here

Sebastian Kaczmarek
  • 8,120
  • 4
  • 20
  • 38
krishnas
  • 23
  • 3
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 07 '21 at 06:34
  • Here you can get the [solution](https://stackoverflow.com/questions/61943711/google-maps-flutter-check-if-a-point-inside-a-polygon), I tested the code and it's works – César Santos Jan 15 '22 at 20:28

1 Answers1

1

You can use point_in_polygon package and simply pass your point and point of polygon.

Poly.isPointInPolygon(pointToCheckIfInPolygon, pointsOfPolygon)