I am working with Jvector maps. I've got two options to create vector maps using either
$('#visitors-map').vectorMap({
map : 'world_merc_en',
//container : $('#visitors-map'),
hoverOpacity : 0.5,
hoverColor : false,
markerStyle : {
initial : {
fill : '#4cabc7',
stroke : 'transparent',
r : 3
}
},
.....
or using new key word that is.
map = new jvm.Map({
map: 'es_merc_en',
container: $('#visitors-map''),
series: {
...
What is the main difference of these two methods? When I used the second option, I noticed that it renders only first time. I have inserted the map inside a div which can expand and minimize. When I try to expand the map, I noticed that it doesn't redraw.