I am currently trying to make a polygon so that I can shape it as the cities in my island. I do not see how I can implement the polygons. If there is no current way to implement them will there be one in the near future?
triangleCoords should be your island position
import {Polygon} from 'google-maps-react'
`
const triangleCoords = {
{ lat: 41.2935, lng: 69.2401}
{ lat: 41.2935, lng: 69.2401}
{ lat: 41.2935, lng: 69.2401}
}
<Polygon
paths={triangleCoords}
strokeColor="#0000FF"
strokeOpacity={0.8}
strokeWeight={1}
fillColor="#0000FF"
fillOpacity={0.2} />
`
Most helpful comment
triangleCoordsshould be your island positionimport {Polygon} from 'google-maps-react'`
const triangleCoords = {
{ lat: 41.2935, lng: 69.2401}
{ lat: 41.2935, lng: 69.2401}
{ lat: 41.2935, lng: 69.2401}
}
`