-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector-map.js
56 lines (54 loc) · 1.18 KB
/
vector-map.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$(function() {
'use strict';
$('#vmap').vectorMap({
map: 'world_en',
backgroundColor: 'transparent',
color: '#ffffff',
hoverOpacity: 0.7,
selectedColor: '#666666',
enableZoom: true,
showTooltip: true,
scaleColors: ['#285cf7', '#673ab7'],
values: sample_data,
normalizeFunction: 'polynomial'
});
$('#vmap2').vectorMap({
map: 'usa_en',
showTooltip: true,
backgroundColor: 'transparent',
hoverColor: '#00cccc',
color: '#00cccc',
});
$('#vmap3').vectorMap({
map: 'canada_en',
color: '#673ab7',
borderColor: '#fff',
backgroundColor: 'transparent',
hoverColor: '#007bff',
showLabels: true
});
$('#vmap7').vectorMap({
map: 'germany_en',
color: '#285cf7',
borderColor: '#fff',
backgroundColor: 'transparent',
hoverColor: '#285cf7',
showLabels: true
});
$('#vmap8').vectorMap({
map: 'russia_en',
color: '#3db4ec',
borderColor: '#fff',
backgroundColor: 'transparent',
hoverColor: '#3db4ec',
showLabels: true
});
$('#vmap9').vectorMap({
map: 'france_fr',
color: '#f10075',
borderColor: '#fff',
backgroundColor: 'transparent',
hoverColor: '#f10075',
showLabels: true
});
});