yii2-google-maps-library icon indicating copy to clipboard operation
yii2-google-maps-library copied to clipboard

InvalidValueError: setLabel: not a string; and no text property

Open temirfe opened this issue 3 years ago • 0 comments

I'm adding a custom markter: $marker = new Marker([ 'position' => COORDINATES, 'title' => SOME_TITLE, 'label' => "14", 'icon' => MY_PNG, ]);

It shows my custom marker but no label, console says: InvalidValueError: setLabel: not a string; and no text property. If I do 'label' => "(14)" then it works but I don't need to show label with brackets.

temirfe avatar Sep 07 '21 07:09 temirfe