You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Use the googlemaps/js-markerwithlabel package to add a marker to a Google Map.
Specify the labelStyle parameter with custom styles for the label.
Observe that the label appears with the default style, ignoring the styles specified in labelStyle.
Code example
import{MarkerWithLabel}from'@googlemaps/markerwithlabel';newMarkerWithLabel({position: newgoogle.maps.LatLng(49.475,-123.84),clickable: true,draggable: true,map: map,labelContent: "foo",// can also be HTMLElementlabelAnchor: newgoogle.maps.Point(-21,3),labelClass: "labels",// the CSS class for the labellabelStyle: {opacity: 1.0,color: "red"},// <- this seems to be ignored})
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:
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: