-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmymap.html~
63 lines (56 loc) · 1.86 KB
/
mymap.html~
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
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps - pygmaps </title>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=visualization&sensor=true_or_false&key=AIzaSyARXgcgfT_-GdpsnS8jAkKcVnlLqmsoPi4"></script>
<script type="text/javascript">
function initialize() {
var centerlatlng = new google.maps.LatLng(40.750000, -73.900000);
var myOptions = {
zoom: 11,
center: centerlatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var PolylineCoordinates = [
new google.maps.LatLng(40.850000, -73.950000),
=];
var Path = new google.maps.Polyline({
clickable: false,
geodesic: true,
path: PolylineCoordinates,
strokeColor: "#6495ED",
strokeOpacity: 1.000000,
strokeWeight: 10
});
Path.setMap(map);
var heatmap_points = [
new google.maps.LatLng(40.765000, -73.975000),
new google.maps.LatLng(40.745000, -73.995000),
new google.maps.LatLng(40.745000, -73.975000),
new google.maps.LatLng(40.785000, -73.955000),
new google.maps.LatLng(40.765000, -73.955000),
new google.maps.LatLng(40.725000, -73.995000),
new google.maps.LatLng(40.765000, -73.995000),
new google.maps.LatLng(40.785000, -73.975000),
new google.maps.LatLng(40.725000, -73.975000),
new google.maps.LatLng(40.645000, -73.775000),
];
var pointArray = new google.maps.MVCArray(heatmap_points);
var heatmap;
heatmap = new google.maps.visualization.HeatmapLayer({
data: pointArray
});
heatmap.setMap(map);
heatmap.set('threshold', 5);
heatmap.set('radius', 10);
heatmap.set('opacity', 0.600000);
heatmap.set('dissipating', true);
}
</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="map_canvas" style="width: 100%; height: 100%;"></div>
</body>
</html>