![JQVMap](http://jqvmap.com/img/logo.png "JQVMap")
This project is a heavily modified version of [jVectorMap](https://github.com/bjornd/jvectormap). I chose to start fresh rather than fork their project as my intentions were to take it in such a different direction that it would become incompatibale with the original source, rendering it near impossible to merge our projects together without extreme complications.
jQuery Vector Map
======
To get started, all you need to do is include the JavaScript and CSS files for the map you want to load. Here is a sample HTML page for loading the World Map with default settings:
<?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 type="text/javascript">
jQuery(document).ready(function() {
jQuery('#vmap').vectorMap({ map: 'world_en' });
});
</script>
</head>
<body>
<div id="vmap" style="width: 600px; height: 400px;"></div>
</body>
</html>
Making it Pretty
======
While initializing a map you can provide parameters to change its look and feel.
jQuery('#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',
selectedRegion: null,
showTooltip: true,
onRegionClick: function(element, code, region)
{
var message = 'You clicked "'
+ region
+ '" which has the code: '
+ code.toUpperCase();
alert(message);
}
});
Configuration Settings
------
**map** *'world_en'*
Map you want to load. Must include the javascript file with the name of the map you want. Available maps with this library are world_en, usa_en, europe_en and germany_en
**backgroundColor** *'#a5bfdd'*
Background color of map container in any CSS compatible format.
**borderColor** *'#818181'*
Border Color to use to outline map objects
**borderOpacity** *0.5*
Border Opacity to use to outline map objects ( use anything from 0-1, e.g. 0.5, defaults to 0.25 )
**borderWidth** *3*
Border Width to use to outline map objects ( defaults to 1 )
**color** *'#f4f3f0'*
Color of map regions.
**colors**
Colors of individual map regions. Keys of the colors objects are country codes according to ISO 3166-1 alpha-2 standard. Keys of colors must be in lower case.
**enableZoom** *boolean*
Whether to Enable Map Zoom ( true or false, defaults to true)
**hoverColor** *'#c9dfaf'*
Color of the region when mouse pointer is over it.
**hoverOpacity** *0.5*
Opacity of the region when mouse pointer is over it.
**normalizeFunction** *'linear'*
This function can be used to improve results of visualizations for data with non-linear nature. Function gets raw value as the first parameter and should return value which will be used in calculations of color, with which particular region will be painted.
**scaleColors** *['#b6d6ff', '#005ace']*
This option defines colors, with which regions will be painted when you set option values. Array scaleColors can have more then two elements. Elements should be strings representing colors in RGB hex format.
**selectedRegion** *'mo'*
This is the Region that you are looking to have preselected (two letter ISO code, defaults to null )
WORLD
------------------------------
AE = United Arab Emirates
AF = Afghanistan
AG = Antigua and Barbuda
AL = Albania
AM = Armenia
AO = Angola
AR = Argentina
AT = Austria
AU = Australia
AZ = Azerbaijan
BA = Bosnia and Herzegovina
BB = Barbados
BD = Bangladesh
BE = Belgium
BF = Burkina Faso
BG = Bulgaria
BI = Burundi
BJ = Benin
BN = Brunei Darussalam
BO = Bolivia
BR = Brazil
BS = Bahamas
BT = Bhutan
BW = Botswana
BY = Belarus
BZ = Belize
CA = Canada
CD = Congo
CF = Central African Republic
CG = Congo
CH = Switzerland
CI = Cote d'Ivoire
CL = Chile
CM = Cameroon
CN = China
CO = Colombia
CR = Costa Rica
CU = Cuba
CV = Cape Verde
CY = Cyprus
CZ = Czech Republic
DE = Germany
DJ = Djibouti
DK = Denmark
DM = Dominica
DO = Dominican Republic
DZ = Algeria
EC = Ecuador
EE = Estonia
EG = Egypt
ER = Eritrea
ES = Spain
ET = Ethiopia
FI = Finland
FJ = Fiji
FK = Falkland Islands
FR = France
GA = Gabon
GB = United Kingdom
GD = Grenada
GE = Georgia
GF = French Guiana
GH = Ghana
GL = Greenland
GM = Gambia
GN = Guinea
GQ = Equatorial Guinea
GR = Greece
GT = Guatemala
GW = Guinea-Bissau
GY = Guyana
HN = Honduras
HR = Croatia
HT = Haiti
HU = Hungary
ID = Indonesia
IE = Ireland
IL = Israel
IN = India
IQ = Iraq
IR = Iran
IS = Iceland
IT = Italy
JM = Jamaica
JO = Jordan
JP = Japan
KE = Kenya
KG = Kyrgyz Republic
KH = Cambodia
KM = Comoros
KN = Saint Kitts and Nevis
KP = North Korea
KR = South Korea
KW = Kuwait
KZ = Kazakhstan
LA = Lao People's Democratic Republic
LB = Lebanon
LC = Saint Lucia
LK = Sri Lanka
LR = Liberia
LS = Lesotho
LT = Lithuania
LV = Latvia
LY = Libya
MA = Morocco
MD = Moldova
MG = Madagascar
MK = Macedonia
ML = Mali
MM = Myanmar
MN = Mongolia
MR = Mauritania
MT = Malta
MU = Mauritius
MV = Maldives
MW = Malawi
MX = Mexico
MY = Malaysia
MZ = Mozambique
NA = Namibia
NC = New Caledonia
NE = Niger
NG = Nigeria
NI = Nicaragua
NL = Netherlands
NO = Norway
NP = Nepal
NZ = New Zealand
OM = Oman
PA = Panama
PE = Peru
PF = French Polynesia
PG = Papua New Guinea
PH = Philippines
PK = Pakistan
PL = Poland
PT = Portugal
PY = Paraguay
QA = Qatar
RE = Reunion
RO = Romania
RS = Serbia
RU = Russian Federationß
RW = Rwanda
SA = Saudi Arabia
SB = Solomon Islands
SC = Seychelles
SD = Sudan
SE = Sweden
SI = Slovenia
SK = Slovakia
SL = Sierra Leone
SN = Senegal
SO = Somalia
SR = Suriname
ST = Sao Tome and Principe
SV = El Salvador
SY = Syrian Arab Republic
SZ = Swaziland
TD = Chad
TG = Togo
TH = Thailand
TJ = Tajikistan
TL = Timor-Leste
TM = Turkmenistan
TN = Tunisia
TR = Turkey
TT = Trinidad and Tobago
TW = Taiwan
TZ = Tanzania
UA = Ukraine
UG = Uganda
US = United States of America
UY = Uruguay
UZ = Uzbekistan
VE = Venezuela
VN = Vietnam
VU = Vanuatu
YE = Yemen
ZA = South Africa
ZM = Zambia
ZW = Zimbabwe
USA
------------------------------
AK = Alaska
AL = Alabama
AR = Arkansas
AZ = Arizona
CA = California
CO = Colorado
CT = Connecticut
DC = District of Columbia
DE = Delaware
FL = Florida
GA = Georgia
HI = Hawaii
IA = Iowa
ID = Idaho
IL = Illinois
IN = Indiana
KS = Kansas
KY = Kentucky
LA = Louisiana
MA = Massachusetts
MD = Maryland
ME = Maine
MI = Michigan
MN = Minnesota
MO = Missouri
MS = Mississippi
MT = Montana
NC = North Carolina
ND = North Dakota
NE = Nebraska
NH = New Hampshire
NJ = New Jersey
NM = New Mexico
NV = Nevada
NY = New York
OH = Ohio
OK = Oklahoma
OR = Oregon
PA = Pennsylvania
RI = Rhode Island
SC = South Carolina
SD = South Dakota
TN = Tennessee
TX = Texas
UT = Utah
VA = Virginia
VT = Vermont
WA = Washington
WI = Wisconsin
WV = West Virginia
WY = Wyoming
EUROPE
------------------------------
AD = Andorra
AL = Albania
AM = Armenia
AT = Austria
AZ = Azerbaijan
BA = Bosnia and Herzegovina
BE = Belgium
BG = Bulgaria
BY = Belarus
CH = Switzerland
没有合适的资源?快使用搜索试试~ 我知道了~
基于bootstrap的网页后台真心不错
共3615个文件
png:2491个
js:366个
html:179个
1星 需积分: 9 9 下载量 44 浏览量
2014-01-10
13:22:07
上传
评论
收藏 20.32MB ZIP 举报
温馨提示
Metronic 是一套精美的响应式后台管理模板,基于强大的 Twitter Bootstrap 框架实现。Metronic 拥有简洁优雅的 Metro UI 风格界面,6 种颜色可选,76 个模板页面,包括图表、表格、地图、消息中心、监控面板等后台管理项目所需的各种组件。
资源推荐
资源详情
资源评论
收起资源包目录
基于bootstrap的网页后台真心不错 (3615个子文件)
._ai 226B
._ai 226B
._css 226B
._css 226B
._font 226B
._font 226B
._fonts 226B
._fonts 226B
._glyphicons 226B
._glyphicons_halflings 226B
._glyphicons_pro 226B
._html_css 226B
._html_css 226B
._images 226B
._images 226B
._less 226B
._less 226B
._pdf 226B
._pdf 226B
._png 226B
._png 226B
._psd 226B
._psd 226B
._psd-web 226B
._psd-web 226B
._scripts 226B
._scripts 226B
._svg 226B
._svg 226B
._svg-web 226B
._svg-web 226B
._web 226B
._web 226B
glyphicons@2x.ai 511KB
glyphicons.ai 487KB
glyphicons_halflings@2x.ai 167KB
glyphicons_halflings.ai 165KB
._glyphicons@2x.ai 587B
._glyphicons.ai 587B
._glyphicons_halflings@2x.ai 587B
._glyphicons_halflings.ai 587B
Cakefile 5KB
chosen.proto.coffee 20KB
chosen.jquery.coffee 20KB
abstract-chosen.coffee 4KB
select-parser.coffee 1KB
bootstrap.css 124KB
bootstrap.css 121KB
bootstrap.css 119KB
bootstrap.css 115KB
bootstrap.min.css 103KB
site.css 101KB
bootstrap.min.css 101KB
bootstrap.min.css 99KB
bootstrap.min.css 96KB
style.css 88KB
glyphicons.css 52KB
glyphicons.css 52KB
jquery-ui-1.10.1.custom.css 31KB
editor_ie7.css 29KB
editor_iequirks.css 28KB
editor_ie8.css 27KB
editor_ie.css 27KB
jquery-ui-1.10.1.custom.min.css 26KB
editor_gecko.css 26KB
editor.css 26KB
font-awesome-ie7.min.css 24KB
font-awesome-ie7.min.css 24KB
bootstrap-responsive.css 22KB
bootstrap-responsive.css 21KB
bootstrap-responsive.css 21KB
bootstrap-responsive.css 21KB
halflings.css 20KB
halflings.css 20KB
theme.css 20KB
font-awesome.css 19KB
font-awesome.css 19KB
stylesheet.css 19KB
docs.css 17KB
dialog_ie7.css 16KB
bootstrap-responsive.min.css 16KB
bootstrap-responsive.min.css 16KB
bootstrap-responsive.min.css 16KB
dialog_ie8.css 16KB
dialog_iequirks.css 16KB
dialog_ie.css 16KB
bootstrap-responsive.min.css 16KB
dialog_opera.css 15KB
dialog.css 15KB
font-awesome.min.css 14KB
font-awesome.min.css 14KB
metro.css 13KB
bootstrap-fullcalendar.css 12KB
chosen.css 12KB
style.css 11KB
fullcalendar.css 10KB
uniform.default.css 10KB
dropzone.css 10KB
style_responsive.css 7KB
screen.css 6KB
共 3615 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37
资源评论
- chaos_19812014-01-18这版本也太老了吧,骗分的吗? 这个是Metronic 1.1.2版本,使用Bootstrap v2.3.1 Metronic1.4 使用bootstrap2.3.2 在这里 http://download.csdn.net/download/allkiller123/6819049 MetroNic1.5.4 使用Bootstrap3.0.2 在这里 http://download.csdn.net/download/allkiller123/6819029 官网上有1.5.5了
stcall11
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功