S
S
setevoi112015-11-26 12:15:53
JavaScript
setevoi11, 2015-11-26 12:15:53

Yandex map how to change label style?

Yandex map was created using the map constructor,
how can I change the label style for all labels on the map?
there is an example
https://tech.yandex.ru/maps/jsbox/2.1/icon_customImage/
however, a new label is created here,
but how can I apply the style of my label to existing ones?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nicholas, 2015-11-26
@healqq

Get the label, change the options object or the properties object, depending on which option you want to change.
I thought that the options for a single object and for the objectManager are the same. If you display objects through objectManager- then you can use the setObjectOptions method or throughoptions.set

F
forgotten, 2015-11-26
@forgotten

Only through the constructor.

S
setevoi11, 2015-11-27
@setevoi11

Nothing works. Apparently it’s impossible
Yes, and in the next branch they wrote to me

No, at the moment the code returned by the constructor cannot be modified from the API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question