-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·176 lines (146 loc) · 6.59 KB
/
index.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="media/favicon.png">
<title>Loading the map...</title>
<!-- jQuery-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<!-- Leaflet (CSS and JS) -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<!-- PapaParse -->
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.3.0/papaparse.min.js"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/js/fontawesome.min.js"></script>
<!-- leaflet-providers-->
<script src="https://unpkg.com/leaflet-providers@1.10.2/leaflet-providers.js"></script>
<!-- Leaflet.awesome-markers v2.0.4, manually updated to svg to allow hex and material icons -->
<link rel="stylesheet" type="text/css" href="scripts/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css">
<script type="text/javascript" src="scripts/Leaflet.awesome-markers/dist/leaflet.awesome-markers.js"></script>
<!-- Leaflet Markercluster -->
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.Default.css">
<script type="text/javascript" src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
<!-- Leaflet Markercluster layer support -->
<script src="https://unpkg.com/leaflet.markercluster.layersupport@2.0.1/dist/leaflet.markercluster.layersupport.js"></script>
<!-- Leaflet control geocoder -->
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder@1.13.0/dist/Control.Geocoder.css" />
<script src="https://unpkg.com/leaflet-control-geocoder@1.13.0/dist/Control.Geocoder.js"></script>
<!-- Locate Control -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-locatecontrol/0.72.0/L.Control.Locate.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-locatecontrol/0.72.0/L.Control.Locate.min.js"></script>
<!-- jQuery-CSV -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.11/jquery.csv.min.js"></script>
<!-- Custom style sheet -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- DataTables -->
<script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css" />
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<script language="javascript">
<!--hide
///var password;
///var pass1="nnn";
///password=prompt('You Have To Get Permission or Be a Family Member','');
///if (password==pass1);
///else {
/// window.location="https://nour-rabea.github.io/Ever-East/";
///}
//-->
</script>
<div class="loader">Loading...</div>
<div id="map">
</div>
<table id="maptable" class="display"></table>
<button id="button" class="display" onclick="myFunction()" aria-label="Trigger Action" style="position: absolute; top: 20px;
right: 20px;
right: 3.5%;
top: 1%;
padding: 0px;
z-index: 400;
text-align: center;
right: 1.2%;
top: +7%;
width: 40px; height: 40px;">التقسيم الاداري</button>
<button id="Sur" class="display" onclick="myction()" aria-label="Trigger Action" style="position: absolute; top: 20px;
right: 20px;
right: 3.5%;
top: 1%;
padding: 0px;
z-index: 400;
text-align: center;
right: 1.2%;
top: +14%;
width: 40px; height: 40px;">المشاريع المحيطة</button>
<button id="container" class="btn">Analysis</button>
<script type="text/javascript">
var map = L.map('map', {
attributionControl: false,
zoomControl: false,
scrollWheelZoom: true,
tap: false
}).setView([30.02,31.55], 11); // default center is overridden by Google Sheet options and points
var imageUrl = 'media/Ever New Cairo.png',
imageBounds = [[29.96082394542264, 31.551824360849114], [29.95878863958161, 31.572030310322205], [29.946888523035046, 31.571582159250166], [29.947827600512134, 31.551560355430034]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
</script>
<script>
function myFun() {
map.flyTo([30.002088,30.969116], 15);
}
</script>
<script>
function myFunction() {
var imageUrl = 'media/layout.png',
imageBounds = [[29.994293, 31.574531], [29.933195, 31.521640], [29.921658, 31.583310]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
}
</script>
<script>
function myction() {
var imageUrl = 'media/Surroundingss.jpg',
imageBounds = [[30.023187484365465, 31.527730225468716], [30.02228130251076, 31.61048047448948], [29.948535934252433, 31.60738527709509], [29.9492774586029, 31.528362226556002]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
}
</script>
<script>
function addRowHandlers() {
var table = document.getElementById("maptable");
var rows = table.getElementsByTagName("tr");
for (i = 0; i < rows.length; i++) {
var currentRow = table.rows[i];
var createClickHandler = function(row) {
return function() {
///console.log(e);
///console.log($(this).html());
///console.log($(e).html());
var lat = row.getElementsByTagName("td")[11].innerHTML;
var lon = row.getElementsByTagName("td")[12].innerHTML;
map.flyTo([lat,lon], 15, { animate:true, duration:3 } )
///});
///var cell = row.getElementsByTagName("td")[0];
///var id = cell.innerHTML;
///alert("id:" + id);
};
};
currentRow.onclick = createClickHandler(currentRow);
}
}
</script>
<script type="text/javascript" src="./google-doc-url.js"></script>
<script type="text/javascript" src="./scripts/constants.js"></script>
<script type="text/javascript" src="./scripts/palette.js"></script>
<script type="text/javascript" src="./scripts/polylabel.js"></script>
<script type="text/javascript" src="./scripts/map.js"></script>
</body>
</html>