R
R
redd_i2017-01-23 20:47:20
JavaScript
redd_i, 2017-01-23 20:47:20

How to remove all Yandex.Maps buttons?

Hello. Can someone tell me how to remove all navigation from Yandex maps and make the map fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2017-01-23
@redd_i

map = new ymaps.Map(id, {
    center: center,
    zoom  : 13
});
map.controls.remove('geolocationControl');
map.controls.remove('searchControl');
map.controls.remove('trafficControl');
map.controls.remove('typeSelector');
map.controls.remove('fullscreenControl');
map.controls.remove('rulerControl');
map.behaviors.disable(['scrollZoom']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question