Leaflet a javaScript library for mobile-friendly interactive maps.
Below is an example of displaying the world map.
Below is an example of displaying the usa map.
Below is an example of displaying the canada map.
Below are the available options for the vector map.
Source Code
$('#vmap').vectorMap({
map: 'world_en',
backgroundColor: '#a5bfdd',
borderColor: '#818181',
borderOpacity: 0.25,
borderWidth: 1,
color: '#f4f3f0',
enableZoom: true,
hoverColor: '#c9dfaf',
hoverOpacity: null,
normalizeFunction: 'linear',
scaleColors: ['#b6d6ff', '#005ace'],
selectedColor: '#c9dfaf',
selectedRegions: null,
showTooltip: true,
onRegionClick: function(element, code, region) {}
});
Below are some of the available countries and continents for vector map.
Script Code
<script src="../lib/jqvmap/jquery.vmap.min.js"></script>
<script src="../lib/jqvmap/maps/jquery.vmap.world.js"></script>
Map Reference
Map File | Value |
---|---|
jquery.vmap.[value].js |
world | africa | asia | australia | europe | north-america | south-america | usa | canada | algeria | argentina | brazil | europe | france | germany | greece | iran | iraq | russia | tunisia | turkey |