-
Notifications
You must be signed in to change notification settings - Fork 20
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
The labelStyle parameter is not being applied #757
Comments
wlius-support3
added
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Apr 26, 2023
If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.@wlius-support3 Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
I worked around this by setting new MarkerWithLabel({
labelContent: `<strong style="color: red">${text}</strong>`
}) But would greatly apprechiate if it would be fixed, since |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that the labelStyle parameter is not being applied.
According to the documentation, the labelStyle parameter is supposed to allow you to specify custom styles for the label. However, when I try to use this parameter, it does not seem to have any effect on the appearance of the label.
I have tried passing various values for the labelStyle parameter, but none of them seem to make a difference. The label text always appears with the default style, regardless of what I specify for labelStyle.
I believe this is a bug in the package, as the labelStyle parameter is documented as a valid option but does not appear to be working correctly. It would be great if this could be fixed so that users can take advantage of the full range of customization options available.
Steps to reproduce
googlemaps/js-markerwithlabel
package to add a marker to a Google Map.labelStyle
parameter with custom styles for the label.labelStyle
.Code example
Expected behavior:
The label should appear with the styles specified in the
labelStyle
parameter.Actual behavior:
The label appears with the default style, ignoring the styles specified in
labelStyle
.Affected version:
The issue appears to be present in the latest version (and seemingly all previous versions) of the package as of this writing (v2.0.21). I actually cannot find any reference in any of the code to
labelStyle
in the git history.The text was updated successfully, but these errors were encountered: