I
I
issssrt2014-11-14 15:43:38
Yandex maps
issssrt, 2014-11-14 15:43:38

How to remove controls on the Yandex map?

Using the map constructor, I generated a map for the site. The only thing you can somehow remove the controls including the slider?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mario62, 2019-09-23
@Mario62

What if controls: [] doesn't help? Any ideas why it might not work? The type of map is created at the wrong moment ....
The code is normal

myMap = new ymaps.Map( 'YMapsID', {
  center: [55, 55],
  zoom: 7,
  controls: []
});

I connect API version 2.1.
I first launch the geocoder, add the labels I need to the collection, then create a map and add the label collection to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question