Created
May 7, 2018 00:00
-
-
Save dhd5076/f801537e7008f898c28e14cc382b47b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Map</title> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<meta charset="utf-8"> | |
<style> | |
/* Always set the map height explicitly to define the size of the div | |
* element that contains the map. */ | |
#map { | |
height: 100%; | |
} | |
/* Optional: Makes the sample page fill the window. */ | |
html, body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script> | |
var map; | |
function initMap() { | |
map = new google.maps.Map(document.getElementById('map'), { | |
center: {lat: 430842625 / 1e7, lng: -776727242 / 1e7}, | |
zoom: 8, | |
mapTypeId: 'satellite' | |
}); | |
heatmap = []; | |
locations = data[0].locations; | |
for(var i = 0; i < locations.length - 1; i++) { | |
var cityCircle = new google.maps.Circle({ | |
strokeColor: '#FF0000', | |
strokeOpacity: 0.8, | |
strokeWeight: 2, | |
fillColor: '#FF0000', | |
fillOpacity: 0.35, | |
map: map, | |
center: {lat: locations[i].latitudeE7 / 1e7, lng: locations[i].longitudeE7 / 1e7}, | |
radius: 2 | |
}); | |
} | |
} | |
</script> | |
<script type="text/javascript"> | |
data = ["REDACTED"] | |
</script> | |
<script src="https://maps.googleapis.com/maps/api/js?key=[REDACTED]&callback=initMap&libraries=visualization" | |
async defer></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment