Answer the question
In order to leave comments, you need to log in
How to style labels to markers on google map?
On the topic of the question, the point of this question is clear ...
let marker = new google.maps.Marker({
position: feature.position,
icon: icons[feature.type].icon,
map: map,
labelClass: "labels-custom",
optimized: false,
});
I tried this case - nothing works .. neither the class gives nor is styled, tell me who came across this
Answer the question
In order to leave comments, you need to log in
in the icon parameter, specify a link to the image -
let marker = new google.maps.Marker({
position: feature.position,
icon: 'http://site.ru/icons/icon.png',
map: map,
//.........
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question