forked from galahq/Yuxi-Lakes-Overview-Map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpoly_styles.js
More file actions
58 lines (52 loc) · 851 Bytes
/
Copy pathpoly_styles.js
File metadata and controls
58 lines (52 loc) · 851 Bytes
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
57
58
//polygon styles assignable to geoJSON layers
function polyStyle1() {
return {
weight: 2,
opacity: 0.65,
fillOpacity: 0.2,
fillColor: "grey",
color: "red"
};
}
function polyStyle2() {
return {
weight: 2,
opacity: 1,
fillOpacity: 0,
color: "rgb(51, 136, 255)"
};
}
function polyStyle3() {
return {
weight: 3,
opacity: 0.65,
fillOpacity: 0.5,
fillColor: "grey",
color: "rgb(51, 136, 255)"
};
}
function basinStyle() {
return {
weight: 1,
opacity: 1,
color: "#3f3f3f",
fillColor: "red",
fillOpacity: 0.1
};
}
function districtStyle() {
return {
weight: 1,
opacity: 1,
color: "green",
fillColor: "green",
fillOpacity: 0.2
};
}
function highlightedStyle() {
return {
weight: 3,
color: "#ffaa33",
fillOpacity: 0.4
};
}