javascript - jVectorMap height:% does not work -


i using library: http://jvectormap.com/ create map website. attempting set width , height of map 100% through style attribute make map display @ full-screen size.

when specify following:

<div id="map1" style="width: 100%; height: 100%"></div> 

the map displays follows: enter image description here

the width attribute appears work correctly, height attribute not. when resize window, width scales correctly, whereas height appears scale regardless of whether scale image or down.

how can make map appear specified scale using percentage?

try in css:

head {     height:100%; } #map1 {     position:absolute;     height:100%; } 

setting height of head element 100% sets definition map height be.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -