To make it a larger map of the world, simply adjust the size of the container.
If you want to zoom in by default, the zoom buttons are tied to the following bit of code:
this.container.find('.jvectormap-zoomin').click(function(){ if (map.zoomCurStep < map.zoomMaxStep) { var curTransX = map.transX; var curTransY = map.transY; var curScale = map.scale; map.transX -= (map.width / map.scale - map.width / (map.scale * map.zoomStep)) / 2; map.transY -= (map.height / map.scale - map.height / (map.scale * map.zoomStep)) / 2; map.setScale(map.scale * map.zoomStep); map.zoomCurStep++; $('#zoomSlider').css('top', parseInt($('#zoomSlider').css('top')) - sliderDelta); } }); this.container.find('.jvectormap-zoomout').click(function(){ if (map.zoomCurStep > 1) { var curTransX = map.transX; var curTransY = map.transY; var curScale = map.scale; map.transX += (map.width / (map.scale / map.zoomStep) - map.width / map.scale) / 2; map.transY += (map.height / (map.scale / map.zoomStep) - map.height / map.scale) / 2; map.setScale(map.scale / map.zoomStep); map.zoomCurStep--; $('#zoomSlider').css('top', parseInt($('#zoomSlider').css('top')) + sliderDelta); } });
You can simply copy and configure this code.
source share