google map heatmap
by rexonms
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Heatmaps</title>
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
#panel {
position: absolute;
top: 5px;
left: 50%;
margin-left: -180px;
z-index: 5;
background-color: #fff;
padding: 5px;
border: 1px solid #999;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=visualization"></script>
<script>
// Adding 500 Data Points
var map, pointarray, heatmap;
var style = {
"stylers": [
{
"visibility": "simplified"
}
]
},
{
"elementType": "geometry",
"stylers": [
{
"color": "#0e0e0e"
}
]
},
{
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#757575"
}
]
},
{
"elementType": "labels.text.stroke",
"stylers": [
{
"color": "#212121"
}
]
},
{
"featureType": "administrative",
"elementType": "geometry",
"stylers": [
{
"color": "#757575"
},
{
"visibility": "on"
}
]
},
{
"featureType": "administrative.country",
"stylers": [
{
"color": "#757575"
},
{
"visibility": "on"
...