-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default3.htm
40 lines (38 loc) · 1.36 KB
/
Default3.htm
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
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Drag Zoom</title>
<style>
#map {
width: 700px;
height: 400px;
border: 4px solid #000;
padding: 5px;
}
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="eli_js/keydragzoom_packed.js" type="text/javascript"></script>
<script type="text/javascript">
var map;
function init() {
var myOptions = {
zoom: 12,
center: new google.maps.LatLng(35.227, -80.84),
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map"), myOptions);
map.enableKeyDragZoom();
}
</script>
</head>
<body onload="init()">
<a href='?packed'>Packed </a>
| <a href='?'> Unpacked</a>
Version of the script.
<br/>
Hold your shift key while drag a box
<div id="map">
</div>
</body>
</html>