jquery - Showing Countries on mouse hover JQVmap -
hello had downlaoded jqvmap github , making website kind of old carmen sandiego game. have seen on sites use map have labels of countries when hovering mouse. read best of knowledge on how on files got jqvmap github site no success.
thanks... not sure if right code put in here goes
jquery(document).ready(function() { jquery('#vmap').vectormap({ map: 'world_en', backgroundcolor: '#333333', color: '#ffffff', hoveropacity: 0.7, selectedcolor: '#666666', enablezoom: true, showtooltip: true, values: sample_data, scalecolors: ['#a12200', '#343bbb'], normalizefunction: 'polynomial', }); });
thanks
the code correct think. check following pen.
http://codepen.io/praveenvijayan/pen/xbmbrg
jquery('#vmap').vectormap({ map: 'world_en', backgroundcolor: null, color: '#ffffff', hoveropacity: 0.7, selectedcolor: '#666666', enablezoom: true, showtooltip: true, scalecolors: ['#c8eeff', '#006491'], normalizefunction: 'polynomial' });
you have include : http://jqvmap.com/js/vmap/jquery.vmap.js?v=1.0 http://jqvmap.com/js/vmap/jquery.vmap.world.js?v=1.0
and since value added have provide sample data.
Comments
Post a Comment