-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmap.php
More file actions
161 lines (128 loc) · 5.64 KB
/
map.php
File metadata and controls
161 lines (128 loc) · 5.64 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>IXmaps</title>
<?php include '_includes/global-head.php'; ?>
</head>
<body id="map-page">
<?php include '_includes/global-navigation.php'; ?>
<?php include '_includes/map-modal-settings.php'; ?>
<?php include '_includes/map-modal-carrier.php'; ?>
<?php include '_includes/map-modal-router.php'; ?>
<?php include '_includes/map-modal-traceroute.php'; ?>
<!-- <button id="settings_modal">OPENING MODAL</button>
<button id="router_modal">ROUTER POP UP</button>
<button id="carrier_modal">CARRIER POP UP</button>
<button id="traceroutes_modal">TR DETAILS</button> -->
<!-- SEARCH AREA -->
<?php include '_includes/map-search.php'; ?>
<!-- RESULTS AREA -->
<div class="map-holder">
<!-- LEGEND SIDEBAR -->
<?php include '_includes/map-legend.php'; ?>
<!-- RESULTS SIDEBAR -->
<?php include '_includes/map-results.php'; ?>
<!-- GOOGLE MAPS -->
<div class="map-canvas pusher">
<div class="layers-toggle">
<button class="ui toggle button">
<i class="ui image left floated">
<img src="/_assets/img/icn-layers.svg" alt="delete">
</i>
1 Layers
</button>
</div>
<div id="map"></div>
</div>
</div>
</body>
<?php include '_includes/global-footer.php'; ?>
<script src="_assets/js/tablesorter.js"></script>
<script>
$('.top.menu .item').tab();
$("table").tablesorter({});
$('.ui.rating').rating('disable');
$("#settings_modal").click(function(){
$('.settings.modal').modal('show');
});
$("#traceroutes_modal").click(function(){
$('.traceroutes.modal').modal('show');
});
$("#router_modal").click(function(){
$('.router.modal').modal('show');
});
$("#carrier_modal").click(function(){
$('.carrier.modal').modal('show');
});
$('a.from.basic-srch-itm')
.popup({
popup: '.from.popup',
inline: true,
on: 'click',
})
;
$('.basic-srch-itm.via')
.popup({
popup: '.via.popup',
inline: true,
on: 'click',
})
;
$('.basic-srch-itm.to')
.popup({
popup: '.to.popup',
inline: true,
on: 'click',
})
;
$('.ui.sidebar')
.sidebar({
context : $('.map-holder'),
dimPage : false,
closable : false // If this is set to true (the default value) clicking anywhere else on the page will close the overlay. Remove this line if that behaviour is desired.
})
.sidebar('setting', 'transition', 'overlay', 'toggle')
.sidebar('attach events', '.map-holder .layers-toggle .toggle.button')
;
$('.ui.accordion')
.accordion()
;
$('.toggle.button')
.state({
})
;
</script>
<!-- Google Maps API -->
<script src="https://maps.googleapis.com/maps/api/js"></script>
<!-- Snazzy Maps -->
<script type="text/javascript">
// When the window has finished loading create our google map below
google.maps.event.addDomListener(window, 'load', init);
function init() {
// Basic options for a simple Google Map
// For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
var mapOptions = {
// How zoomed in you want the map to start at (always required)
zoom: 11,
// The latitude and longitude to center the map (always required)
center: new google.maps.LatLng(40.6700, -73.9400), // New York
// How you would like to style the map.
// This is where you would paste any style found on Snazzy Maps.
styles: [{"featureType":"all","elementType":"geometry.fill","stylers":[{"weight":"2.00"}]},{"featureType":"all","elementType":"geometry.stroke","stylers":[{"color":"#9c9c9c"}]},{"featureType":"all","elementType":"labels.text","stylers":[{"visibility":"on"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#eeeeee"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#7b7b7b"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#c8d7d4"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"color":"#070707"}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]}]
};
// Get the HTML DOM element that will contain your map
// We are using a div with id="map" seen below in the <body>
var mapElement = document.getElementById('map');
// Create the Google Map using our element and options defined above
var map = new google.maps.Map(mapElement, mapOptions);
// Let's also add a marker while we're at it
var marker = new google.maps.Marker({
position: new google.maps.LatLng(40.6700, -73.9400),
map: map,
title: 'Snazzy!'
});
}
</script>
</body>
</html>