P
P
Ponochka_Lu2021-08-18 17:28:47
JavaScript
Ponochka_Lu, 2021-08-18 17:28:47

How to add your own class to the Yandex Maps label?

Good afternoon!
On my site there is a Yandex map displayed through the Yandex API. I need to add a Yandex class to a label. So that you can add your own styles and the ability to sort by class.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2021-08-18
@youmixx

Put the Yandex map in some other div and assign the required class to it. And then refer to the map through this class

<div class="my-map>
*Тут загружается твоя карта*
</div>

.my-map map {

}

Well, something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question