React-google-maps: How to change Polygon colors ?

Created on 6 Jun 2017  路  2Comments  路  Source: tomchentw/react-google-maps

I am using this

<Polygon
    key={index}
    strokeColor={'#00BC6F'}
    fillColor={'#00BC6F'}
    strokeOpacity= {0.8}
    strokeWeight= {3}
    paths={borders}
 />

but I don't see any changes

Most helpful comment

Try like this:

<Polygon options={{
            strokeColor: '#babfc7',
            fillColor: '#7d899e',
            strokeOpacity: 0.28,
            strokeWeight: 1,
            fillOpacity: 0.1
        }}
/>

All 2 comments

Try like this:

<Polygon options={{
            strokeColor: '#babfc7',
            fillColor: '#7d899e',
            strokeOpacity: 0.28,
            strokeWeight: 1,
            fillOpacity: 0.1
        }}
/>

It worked thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnantoni picture johnantoni  路  3Comments

tahir-masood1 picture tahir-masood1  路  4Comments

wayofthefuture picture wayofthefuture  路  3Comments

LukasZvikas picture LukasZvikas  路  3Comments

julienvincent picture julienvincent  路  3Comments