Answer the question
In order to leave comments, you need to log in
How to hide certain YandexMaps elements depending on the map block size?
Good afternoon. I use the Yandex Maps API on my website .
Tell me how to set up YaMaps so that certain interface elements are hidden on them at a certain size. But this is not very pretty:
Answer the question
In order to leave comments, you need to log in
When initializing the map, specify which elements you want to show, for example
myMap = new ymaps.Map("map", {
bounds: coord,
controls: ['zoomControl']
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question