-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.php
More file actions
55 lines (42 loc) · 1.28 KB
/
sample.php
File metadata and controls
55 lines (42 loc) · 1.28 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
<?php include_once $_SERVER['DOCUMENT_ROOT'].'/includes/ux_template_php/vars.php'; ?>
<?php include $templatePath.'doctype.php'; ?>
<title>Google Map Prototype - New York State Department of Labor</title>
<style>
#map_canvas{
height:400px;
width:100%;
}
</style>
<?php include $templatePath.'header1.php'; ?>
<?php include $templatePath.'skip-to-nav.php' ?>
<?php include $templatePath.'header2.php'; ?>
<?php include $templatePath.'header3.php'; ?>
<?php include $templatePath.'app-menu.php'; ?>
<?php include $templatePath.'app-search.php'; ?>
<?php include $templatePath.'header4.php';
/* content begin*/
?>
<h2>Google Map Prototype</h2>
<!-- ====================== -->
<div id="map_canvas"></div>
<!-- ====================== -->
<?php /* content end */
include $templatePath.'footer1.php';
?>
<script src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
$(document).ready(function() {
var map;
function initialize() {
var mapOptions = {
zoom: 7,
center: new google.maps.LatLng(43, -76),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
});
</script>
<?php include $templatePath.'footer2.php'; ?>