E
E
el_prophettino2017-03-13 18:35:25
Google
el_prophettino, 2017-03-13 18:35:25

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

2 answer(s)
N
nikfakel, 2017-05-03
@nikfakel

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,
//.........

B
BarbosSsS, 2019-01-02
@BarbosSsS

You can use the service https://snazzymaps.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question