Autozoom

This topic contains 6 replies, has 3 voices, and was last updated by  Roman 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #69127

    Roman
    Buyer
    Post count: 232

    Hello, guys. I would like to know if there is a way to control auto zoom levels. In most cases it works beautifully, but sometimes especially in mobile or widget view it look like on the attached image. There are grey areas on top and bottom.
    Can this be fixed or handled somehow?

    Thank you.

    #69134

    Guust
    Moderator
    Post count: 29970

    That happens because the listings on the map require 100% width of the map, and if the map needs to show the whole world, that automatically means a certain height.
    That can be fixed by making the size of the map wider in the widget (so the height of the display is higher and therefor fills up top to bottom), or reduce the height of the map.

    #69164

    Roman
    Buyer
    Post count: 232

    How can I make it keep a certain aspect ratio (4X3 for example or usual aspect ratio of the world map with no grey areas), regardless of the screen resolution? Can you help me with the css code to make it work?

    #69177

    Roman
    Buyer
    Post count: 232

    or maybe there is a way to set a minimum autozoom level?

    #69242

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    there is not much we can do here, it’s zooming out to show all markers, that’s the result.

    With CSS you cannot change the size of the map canvas depending on the zoom or the screen resolution. The size is set via script, not css.

    The only solution here would be to avoid using the autozoom and set a fixed zoom.

    Thanks

    #69723

    Roman
    Buyer
    Post count: 232

    Hi, again.
    Is there a way to control the map height with a css?
    I would like to set the maximum height depending on the screen size.
    Thank you.

    #69728

    Roman
    Buyer
    Post count: 232

    *I’ve just reread previous answer and I guess it’s not possible, sorry…

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount