-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailgate.js
110 lines (93 loc) · 3.33 KB
/
tailgate.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
110
// create a map in the "map" div
// set the view to central ohio and zoom
var map = L.map('map').setView([40, -83], 5);
// create an OpenStreetMap WB tile layer
var osmBW = L.tileLayer('http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png', {
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
});
var Stamen_TonerLite = L.tileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
subdomains: 'abcd',
minZoom: 0,
maxZoom: 20
});
var danger1 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'danger1',
format: 'image/png',
transparent: true,
attribution: "DangerZone"
});
var danger2 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'danger2',
format: 'image/png',
transparent: true,
attribution: "DangerZone_2"
});
var p_2013 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2013',
format: 'image/png',
transparent: true,
attribution: "2013"
});
var p_2012 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2012',
format: 'image/png',
transparent: true,
attribution: "2012"
});
var p_2011 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2011',
format: 'image/png',
transparent: true,
attribution: "2011"
});
var p_2010 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2010',
format: 'image/png',
transparent: true,
attribution: "2010"
});
var p_2009 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2009',
format: 'image/png',
transparent: true,
attribution: "2009"
});
var p_2008 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2008',
format: 'image/png',
transparent: true,
attribution: "2008"
});
var p_2007 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2007',
format: 'image/png',
transparent: true,
attribution: "2007"
});
var p_2006 = L.tileLayer.wms("https://g5201.brushhome.org/cgi-bin/mapserv?map=/var/files/5201/all.map", {
layers: 'p_2006',
format: 'image/png',
transparent: true,
attribution: "2006"
});
var baseMaps = {
"OpenStreetMap B/W": osmBW,
"Stamen Toner Lite": Stamen_TonerLite
};
var overlayMaps = {
"Danger Zone": danger1,
"2013": p_2013,
"2012": p_2012,
"2011": p_2011,
"2010": p_2010,
"2009": p_2009,
"2008": p_2008,
"2007": p_2007,
"2006": p_2006,
};
map.addLayer(osmBW, true);
var layersControl = new L.Control.Layers(baseMaps, overlayMaps, {
collapsed: !L.Browser.touch
});
map.addControl(layersControl);