Responsive needed

Home Forums Feature Requests Responsive needed

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11742
    ctltdev
    Participant

    Would be great if the maps could be responsive.

    #11743
    Chris
    Keymaster

    Hi, what kind of ‘responsive’ would you like?  The maps can be set to a % of the document:

    [mappress width=”100%” height=”500px”]

    There’s also an ‘adaptive’ setting which will make the maps recenter as they are resized.

    Are you thinking of something else?

    #11837
    oba86
    Participant

    Hi Chris,

    i can set maps width as a % of document only with shortcode?

    #11839
    Chris
    Keymaster

    Hi, you can also save maps in the map editor with a % width.

    Is that what you mean?

    #11859
    oba86
    Participant

    Yes Thanks!!!

    #14037
    sage
    Participant

    Can you make the with a % width in PHP? I am trying to add a traffic map to my home page and when I put the % in php it breaks the map.

    #14039
    Chris
    Keymaster

    @sage, % width should work fine with PHP. Please provide your code and a link to the map.

    A common mistake is to use % height, which will always return zero unless your page has a fixed height defined for the body tag.

    For width you should be able to do something like this, assuming your map is ‘$map’:

    
    $map->width = '80%';
    $map->display();
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.