Y
Y
yurygolikov2017-02-27 22:55:27
css
yurygolikov, 2017-02-27 22:55:27

How to properly stretch Yandex maps on the site to the full width and length so that adaptability works?

I need to stretch Yandex maps to the full length and width on a site with working adaptability of map elements.
I try to stretch in different ways, but the map elements do not adapt from mobile devices. How to do it?
The picture shows (screenshot from iphone) that the map elements (zoom buttons and traffic jam button) do not adapt. Due to their small size, they become unusable.
Qqb9R57FEJU.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Levan Kakubava, 2017-02-27
@okumsky

Responsiveness only works for controls that have the float: 'left' or float: 'right' option set. The exception is the zoom control. Because it changes its state based on the height of the map, its responsiveness will still work if it's set to float: 'none'.

adaptability

V
vsevolodisaev00, 2017-02-27
@vsevolodisaev00

what phone do you have? perhaps the program will help

G
gwenn, 2017-02-28
@gwenn

width: 100vw;
height: 100vh;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question