How to add a polygon on google maps?

Posted by Andre Scott | Updated on

Want to add a polygon on google maps? Well, if you can convert the coordinates of your Position objects to LatLng objects, then you can use google_maps_flutter itself to draw polygons. You can see that one of its parameters allows for Polygons. So just building upon the example from google_maps_flutter, we’ll first setup our polygon:

Then just provide it to the GoogleMap widget.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers