I understand the inline styles of .leaflet-container are due to the possibility to define the height of our map containers in the backend.

But with responsive design it's often a requirement to set a map's height dynamically depending on the height or width of the browser viewport. Right now we have to use !important statements to override the inline style set by the module.

To avoid this we could allow to leave the height value in the backend empty and providing either a default height via CSS, or leave it at no height at all and give users a hint that they need to set the height in their theme's CSS if they don't fill out the form.

Cheers,
Daniel

CommentFileSizeAuthor
#4 IPGV&M-new-map-height-spec.png120.02 KBRdeBoer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Daniel Wentsch’s picture

Issue summary: View changes
RdeBoer’s picture

Great idea.
Working on it.
Rik

  • RdeBoer committed de184a1 on 7.x-1.x
    Flexible specification of map height [#2506763]
    
RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Category: Plan » Feature request
Status: Active » Fixed
FileSize
120.02 KB

You like?

Daniel Wentsch’s picture

Wonderful and exactly as I had hoped for! Thanks a lot :)

RdeBoer’s picture

Thanks for the suggestion, Daniel!
I can really see how this is going to make a big difference to many -- and at so little effort from my end.
Cheers,
Rik

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.