world.html 1.49 KB
Newer Older
irving's avatar
irving committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
        <title>JQVMap - World Map</title>
        <link href="../jqvmap/jqvmap.css" media="screen" rel="stylesheet" type="text/css" />
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
        <script src="../jqvmap/jquery.vmap.js" type="text/javascript"></script>
        <script src="../jqvmap/maps/jquery.vmap.world.js" type="text/javascript"></script>
        <script src="../jqvmap/data/jquery.vmap.sampledata.js" type="text/javascript"></script>
        <script type="text/javascript">
            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: ['#C8EEFF', '#006491'],
                    normalizeFunction: 'polynomial'
                });
            });
        </script>
    </head>

    <body>
        <div id="vmap" style="width: 600px; height: 400px;"></div>
    </body>

    </html>