-
Notifications
You must be signed in to change notification settings - Fork 1
/
map_large.php
107 lines (101 loc) · 3.3 KB
/
map_large.php
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
<?php @session_start();?>
<?php
require_once('includes/init.php');
?>
<?php
$latitude = $_GET['lat'];
$longitude = $_GET['lon'];
$lid = $_GET['lid'];
$title = $_GET['title'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Maps -<?php echo DOMAIN_NAME;?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="public/css/bootstrap.css" rel="stylesheet">
<link href="public/css/bootstrap.min.css" rel="stylesheet">
<link href="public/css/960_24_col.css" rel="stylesheet">
<link href="public/css/reset.css" rel="stylesheet">
<link href="public/css/style.css" rel="stylesheet">
<link href="public/css/ad.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="public/js/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="public/icons/favicon.ico">
<script src="public/js/jquery.js"></script>
<script src="public/js/bpopup-0.6.0.min.js"></script>
<script src="public/js/functions.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function loadMap()
{
var latlng = new google.maps.LatLng(<?php echo $latitude;?>,<?php echo $longitude;?>);
var opt =
{
center:latlng,
zoom:10,
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableAutoPan:false,
navigationControl:true,
navigationControlOptions: {style:google.maps.NavigationControlStyle.SMALL },
mapTypeControl:true,
mapTypeControlOptions: {style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}
};
var map = new google.maps.Map(document.getElementById("large_map"),opt);
var marker= new google.maps.Marker({
position: new google.maps.LatLng(<?php echo $latitude;?>,<?php echo $longitude;?>),
title: "<?php echo $title;?>",
clickable: true,
map: map
});
var infowindow = new google.maps.InfoWindow(
{
content: "<?php echo $title;?>"
});
google.maps.event.addListener(marker,'click',function(){
infowindow.open(map,marker);
});
}
</script>
<style type="text/css">
.response-waiting {
background:url(public/img/loading_small.gif) no-repeat;
}
.response-success {
background:url(public/img/tick.png) no-repeat;
}
.response-error {
background:url(public/img/cross.png) no-repeat;
}
</style>
</head>
<body onLoad="loadMap()">
<div class="container_24" id="container">
<?php require_once('templates/top-nav-bar.php');?>
<?php require_once('templates/header.php');?>
<?php require_once('templates/linkbar.html');?>
<div id="page_body">
<!--Begins main wrapper-->
<div id="page_topic">
<h1><a href="<?php echo SITE_URL;?>/listing/<?php echo $title;?>-<?php echo $lid;?>.html">Maps of <?php echo $title;?> on <?php echo DOMAIN_NAME;?></a></h1>
</div>
<div id="large_map" align="center"></div>
</div>
<div class="clear"></div>
<?php require_once('templates/footer.php');?>
</div>
<?php require_once('templates/popup_login.php');?>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="public/js/uservoice_feedback.js"></script>
<script src="public/js/uservoice_feedback.js"></script>
</body>
</html>