R
R
Roman Ismailov2017-07-07 08:54:32
css
Roman Ismailov, 2017-07-07 08:54:32

Change the color of the Yandex map label?

Hello!
There is such a task: to make labels of different colors on the Yandex map, but at the same time the label (the icon itself) must be vector, and they will change the color through the admin panel, simply indicating each address its own color, then they should be inline (or something else) inserted into the label and paint it.
How can I do that? I can't come up with a solution myself, please help :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly Medvedev, 2017-07-07
@balamyt92

Didn't your mother teach you to go to the documentation ?

N
Nikita Kit, 2017-07-09
@ShadowOfCasper

https://yandex.ru/blog/mapsapi/50404
In general, take a look here.
https://tech.yandex.ru/maps/jsbox/2.1/icon_customImage
It seems to me that you can do a hack and put your vector xml markup in ymaps.templateLayoutFactory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question