-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.html
More file actions
29 lines (27 loc) · 738 Bytes
/
test.html
File metadata and controls
29 lines (27 loc) · 738 Bytes
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
<!DOCTYPE 5>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Google maps API v3</title>
<script type="text/javascript" src="build/build.js"></script>
</head>
<body>
<div id="map" style="height: 100%"></div>
<script>
var load = require('google-maps')({
libraries: ['places', 'drawing'],
protocol: 'https'
})
load(function (err, gmaps) {
if (err) return console.log(err)
var map = new gmaps.Map(document.getElementById('map'), {
center: new gmaps.LatLng(55.8, 37.6),
zoom: 10,
mapTypeId: gmaps.MapTypeId.ROADMAP
})
var dm = new gmaps.drawing.DrawingManager()
dm.setMap(map)
})
</script>
</body>
</html>