My jVectorMap isn't taking the new height I'm providing on the containing div and only renders at the default (?) height of 54px.
This is in a document.ready function in my scripts.js file:
$('#team-map-usa').vectorMap({
map: 'us_lcc_en',
backgroundColor: '#ffffff',
hoverColor: '#999999',
color: '#dddddd',
normalizeFunction: 'polynomial',
values: myData,
scaleColors: ['#d0c4dc', '#d1b0eb', '#b296cb', '#47006b'],
onLabelShow: function(event, label, code) {
label.text(code);
})
});
Containing div:
<section id="top">
<div id="team-map-usa" style="width: 600px; height: 400px;"></div>
</section>
Documentation suggests that if I have a width and height set on the containing div, that should be applied to the created jVectorMap. The div is not hidden at any point (which I read here: Jvectormap very small on div change could be an issue) and $('#team-map-usa')
clientHeight and clientWidth are both defined when the vectormap is initialized.
This is my first time using jVectorMap and I must be missing something. Any suggestions of how to make the map appear the right size?