L
L
Lev Kekish2015-03-28 12:01:15
JavaScript
Lev Kekish, 2015-03-28 12:01:15

How to remove yandex maps API external controls?

How to remove yandex maps API external controls?
- https://tech.yandex.ru/maps/doc/jsapi/1.x/dg/tasks...
Bad example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2015-03-28
@Petroveg

When creating a map, options has a controls field - an array with the names of possible control layers.

var myMap = new ymaps.Map('map', {
    center: [55.74954, 37.621587],
    zoom: 10,
    controls: []
  });

Just specify an empty array - there will be no controls. You can enter names if you wish. You can find out their names here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question