laravel-google-static-map icon indicating copy to clipboard operation
laravel-google-static-map copied to clipboard

Add polygon path support

Open l4nos opened this issue 10 months ago • 1 comments

I would like to be able to draw a polygon or line on the map which is possible with the standard static maps API.

I'm happy to write the method into the class and do a PR if you would accept. Would rather contribute than just fork and forget.

Essentially the consuming dev would feed in a GeoJSON array of lat,long pairs which correspond to the points of the polygon. We could also allow for the insertion using WKT strings like POLYGON.

If you are happy, say the word and i'll PR.

l4nos avatar Apr 15 '24 06:04 l4nos

Thank you for the suggestion. It would be great. Please send a PR and I'll merge it.

mastani avatar Apr 15 '24 08:04 mastani