Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #865314

    Hi guys,

    I am loading a Google Maps via API on my site. It is a code block contained in a color-section. Now, I want to give the div the map is loaded in a full height of 100%, which should follow the 100% screen height of the color-section it is contained in.

    This however results in the Google Maps-div having a height of zero.

    Much appreciated if you can help, understood if you can’t. Thanks already!

    #866310

    Hey lijndiensten,

    I am seeing the huge map, did you get it working or do you still need to adjust something?

    Best regards,
    Victoria

    #866402

    Hi Victoria,

    Haha, indeed it is already quite huge. Now I achieved this by setting a fixed height of 750px on the containing div, while actually I would like the whole things to follow the height of the 100%-height color section.

    Thanks,
    Ivan

    #867276

    Hi Ivan,

    You can stick with that, just have the media queries for different screen sizes, and put that in the quick css not in the text block.
    Something like this:

    
    @media only screen and (max-width: 767px) {
      #map {
        min-height: 400px;
        height: auto;
        width: 100%;
        overflow: hidden;
        border: none;
      }
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #867763

    Hi Victoria,

    That will work indeed, thanks! I notice now that I will also need to rework some of the Javascript so that zoom and bounds are right on all devices.

    If I work out something elegant I will share it here, so it may help someone.

    Thanks again!

    Ivan

    #867988

    Hi Ivan,

    Great, thanks for the feedback and please do share if you should come up with something useful :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.