projects
/
robinkrens.nl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b907d0e56529645cb49c6c6bae2ac51b0ff99502
[robinkrens.nl]
/
travel
/
highlightasia.js
1
$(function(){
2
3
4
$('#world-map').vectorMap({
5
backgroundColor: 'white',
6
regionStyle: {
7
initial: {
8
fill: '#DDDDDD',
9
"fill-opacity": 1,
10
stroke: 'black',
11
"stroke-width": 0.0,
12
"stroke-opacity": 1
13
},
14
hover: {
15
"fill-opacity": 0.8
16
},
17
selected: {
18
fill: '#99FF00'
19
},
20
selectedHover: {}
21
},
22
selectedRegions: ["TH", "MY", "KH", "LA", "VN", "MM"
23
],
24
markerStyle: {
25
initial: {
26
fill: '#FFFFFF',
27
stroke: '#000000',
28
r: 7,
29
},
30
hover: {
31
fill: "orange",
32
stroke: 'black',
33
"stroke-width": 1
34
},
35
selected: {fill: '#FFFFFF',
36
stroke: '#000000'}
37
},
38
focusOn: {
39
x: 0.75,
40
y: 0.6,
41
scale: 3,
42
},
43
onRegionClick: function (event, code) {
44
45
if (code === 'TH') {
46
window.location = 'thailand.php';
47
}
48
}
49
50
});
51
});