Angular-google-maps: Polygon stroke color gets error

Created on 2 Sep 2016  路  1Comment  路  Source: SebastianM/angular-google-maps

Issue description
Trying to change the color for polygon to red, using css value, but getting error

Steps to reproduce and a minimal demo of the problem

<sebm-google-map-polyline [geodesic]="true" [strokeColor]="#FF0000" [strokeOpacity]="0.4">

You can check at plnkr for complete code.
http://plnkr.co/edit/CiS0dwxWdO5T7KYZDuoh?p=preview

Error:

image

Most helpful comment

change [strokeColor]="#FF0000" to [strokeColor]="'#FF0000'" (added single quote inside double quote fill fix the issue)

>All comments

change [strokeColor]="#FF0000" to [strokeColor]="'#FF0000'" (added single quote inside double quote fill fix the issue)

Was this page helpful?
0 / 5 - 0 ratings