B
B
berdnikovroman2014-07-15 00:22:13
Yandex
berdnikovroman, 2014-07-15 00:22:13

How to change the position of elements on Yandex maps?

9XnzeOa.png
How to move the zoom buttons to the top left corner?
And is it possible to remove the inscription: "Error on the map? Terms of use"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2014-07-15
@berdnikovroman

You can move api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Map...

myMap.controls.add('zoomControl', {
    float: 'none',
    position: {
        right: 40,
        top: 5
   }
});

In version 2.0 it was a little different api.yandex.ru/maps/doc/jsapi/2.0/ref/reference/Map...
If the left indent suits you, you can leave it out.
Can't be removed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question