Why isn't my jVectorMap adjusting to the new height I've specified for the containing div? It only displays at the default height of 54px.
Within a document.ready function in my scripts.js file, I have the following code:
$('#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>
The documentation indicates that setting a width and height on the containing div should be reflected in the created jVectorMap. The div is not hidden at any point (as suggested in this Stack Overflow post) and $('#team-map-usa')
clientHeight and clientWidth are both defined during map initialization.
As a first-time user of jVectorMap, I feel like I'm overlooking something obvious. Any tips on how to ensure the map appears correctly sized?