G
G
Ganjubas_Original2016-10-14 10:20:22
API
Ganjubas_Original, 2016-10-14 10:20:22

Yandex maps. How to change the Hint style on the map?

There is a map. She has points with standard blue hints. On the left there is a list with addresses corresponding to points on the map. When you click on an element of the list, the map is zoomed and centered on the corresponding point. But it is also necessary that the point hint change color. I found a list of presets in the documentation, but I don’t understand how to apply them. All application examples boil down to applying a preset when creating a map, but there are no examples of how to change when the map and points have already been created.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2016-10-14
@forgotten

I don't know what you call a "hint" (actually it's a tooltip), apparently the look of the label itself.
The preset changes in the same way as any other options.

placemark.options.set('preset', 'islands#redDotIcon');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question