A
A
Alexander Alekseev2016-10-13 13:10:03
Adaptive design
Alexander Alekseev, 2016-10-13 13:10:03

How to place a Yandex map on mobile and adaptive versions?

How to place a Yandex map on mobile and adaptive versions?
So that the map can be scrolled and the page.
The first thing that comes to mind is to leave a place around the map for which you can catch your finger and scroll.
Maybe there are other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tutukov, 2016-10-13
@sftutukov

// Disable mouse wheel zoom
myMap.behaviors.disable('scrollZoom');
https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/refe...
//Disable scrolling on mobile devices
myMap.behaviors.disable('drag');
https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/ref...
https://tech.yandex.ru/maps/doc/jsapi/2.0/ref/ref...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question