-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting strokeWeight on a circle throws an error and doesn't add the stroke #770
Comments
… error When setting strokeWeight property google maps throws an error because the strokePosition option is set with an invalid value
@cesarp thank you! Added one comment. |
Any update or work-around? I've run into the same issue. |
Any update with this issue? I've encounter the same issue also. |
I added [strokePosition]="1" to my agm-circle tag. That adds the circle. However, now I have a different problem in that strokeColor and fillColor values are not being honored. The stroke and the fill is black and cannot be changed. |
@shuchow did you paste the code directly on your node_modules directory? Because mine is working properly and the behavior I want is correct. The code should be pasted on
|
@SebastianM any progress with that regarding information @cesarp provided? this issue is quite old... As a workaround you can pass enum to
then pass 0:
|
@SebastianM Why this is still open? Please change it on docs or in code. I lost much time on this. |
I run into same issue, a fix is needed, string doesn't work but number work 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue (I'm using beta.5). It should stay open |
#772 tried to fix it, but wasn't complete |
fixes circle error when strokeWeight is enabled by using the correct values for strokePosition fixes: #770
Issue description
If you add the strokeWeight property google maps throws an error:
Steps to reproduce and a minimal demo of the problem
http://plnkr.co/edit/EjWE2hRU9q3DwQh90BCE?p=preview
What steps should we try in your demo to see the problem?
Run it and open the console.
Current behavior
An error is thrown.
Expected/desired behavior
The circle shows a stroke with the defined weight
angular2 & angular2-google-maps version
angular 2.2 and angular2-google-maps 0.16.0
Other information
This happens because you are passing the stroke position value as CENTER string but that is not valid for google maps since it is expecting google.maps.StrokePosition.CENTER (OUTSIDE or INSIDE) which behind the scenes is an enum with some numeric value not a string.
The text was updated successfully, but these errors were encountered: