Display Time & Date On World Map OnHover Using jQuery
This is useful plugin to display current date and time on word map onhover for specific country. As you hover on specific county on map then it’ll display current time of that country userful to display current time on map.

Display Time & Date On Word Map OnHover Using jQuery
Libraries
Include following libraries on page.
HTML
Create World Map using SVG using following code.
JS
Use following javascript to enable world map timezone.
// $("#BD").tooltip({
// 'container': 'body',
// 'placement': 'bottom',
// 'title': 'Bangladesh'
// }); // this works!
$(document).ready(function(){
$(".country").hover(function(){
var gmt_country = $(this).attr("id");
// alert(gmt_country);
var options = {
format:'%A, %d %B %I:%M:%S %P',
timeNotation: '12h',
am_pm: true,
utc:true,
utc_offset: gmt_country
};
$('.jclock').jclock(options);
var country_time = $(".jclock").text();
// alert(country_time);
$(this).attr("data-content", country_time);
});
$('[data-toggle="popover"]').popover({ trigger: "hover" });
});
See live demo and download source code.
DEMO | DOWNLOAD
Visit official github repository for more information and follow for future updates. Don’t forget to read license for using this plugin in your projects.