/
leafletmap_icons.js
109 lines (101 loc) · 8.53 KB
/
leafletmap_icons.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
* Icons based on Google Map icons for Leaflet
*/
var baseIcon = L.Icon.extend({
options: {
shadowUrl: 'http://maps.google.com/intl/en_us/mapfiles/ms/micons/msmarker.shadow.png',
iconSize: [32, 32],
//shadowSize: [32, 32],
iconAnchor: [16, 32],
shadowAnchor: [16, 32],
popupAnchor: [0, -24]
}
});
var yellowIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/yellow.png'});
var yellowDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/yellow-dot.png'});
var blueIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/blue.png'});
var blueDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/blue-dot.png'});
var greenIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/green.png'});
var greenDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/green-dot.png'});
var cyanIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/lightblue.png'});
var cyanDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/ltblue-dot.png'});
var orangeIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/orange.png'});
var orangeDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/orange-dot.png'});
var pinkIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/pink.png'});
var pinkDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/pink-dot.png'});
var purpleIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/purple.png'});
var purpleDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/purple-dot.png'});
var redIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/red.png'});
var redDotIcon = new baseIcon({iconUrl: 'http://maps.google.com/mapfiles/ms/micons/red-dot.png'});
var baseRouteIcon = L.Icon.extend({
options: {
shadowUrl: 'http://maps.google.com/mapfiles/shadow50.png',
iconSize: [24, 34],
//shadowSize: [32, 32],
iconAnchor: [12, 34],
shadowAnchor: [12, 34],
popupAnchor: [0, -24]
}
});
var startIcon = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/dd-start.png'});
var stopIcon = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/dd-end.png'});
var startCandidateA = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenA.png'});
var startCandidateB = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenB.png'});
var startCandidateC = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenC.png'});
var startCandidateD = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenD.png'});
var startCandidateE = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenE.png'});
var startCandidateF = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenF.png'});
var startCandidateG = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenG.png'});
var startCandidateH = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenH.png'});
var startCandidateI = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenI.png'});
var startCandidateJ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenJ.png'});
var startCandidateK = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenK.png'});
var startCandidateL = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenL.png'});
var startCandidateM = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenK.png'});
var startCandidateN = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenN.png'});
var startCandidateO = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenO.png'});
var startCandidateP = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenP.png'});
var startCandidateQ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenQ.png'});
var startCandidateR = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenR.png'});
var startCandidateS = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenS.png'});
var startCandidateT = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_greenT.png'});
var stopCandidateA = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerA.png'});
var stopCandidateB = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerB.png'});
var stopCandidateC = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerC.png'});
var stopCandidateD = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerD.png'});
var stopCandidateE = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerE.png'});
var stopCandidateF = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerF.png'});
var stopCandidateG = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerG.png'});
var stopCandidateH = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerH.png'});
var stopCandidateI = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerI.png'});
var stopCandidateJ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerJ.png'});
var stopCandidateK = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerK.png'});
var stopCandidateL = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerL.png'});
var stopCandidateM = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerK.png'});
var stopCandidateN = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerN.png'});
var stopCandidateO = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerO.png'});
var stopCandidateP = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerP.png'});
var stopCandidateQ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerQ.png'});
var stopCandidateR = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerR.png'});
var stopCandidateS = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerS.png'});
var stopCandidateT = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/markerT.png'});
var placeCandidateA = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowA.png'});
var placeCandidateB = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowB.png'});
var placeCandidateC = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowC.png'});
var placeCandidateD = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowD.png'});
var placeCandidateE = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowE.png'});
var placeCandidateF = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowF.png'});
var placeCandidateG = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowG.png'});
var placeCandidateH = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowH.png'});
var placeCandidateI = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowI.png'});
var placeCandidateJ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowJ.png'});
var placeCandidateK = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowK.png'});
var placeCandidateL = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowL.png'});
var placeCandidateM = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowM.png'});
var placeCandidateN = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowN.png'});
var placeCandidateO = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowO.png'});
var placeCandidateP = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowP.png'});
var placeCandidateQ = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowQ.png'});
var placeCandidateR = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowR.png'});
var placeCandidateS = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowS.png'});
var placeCandidateT = new baseRouteIcon({iconUrl: 'http://maps.google.com/mapfiles/marker_yellowT.png'});