Skip to content

Instantly share code, notes, and snippets.

@Ravenstine
Last active August 31, 2015 21:15
Show Gist options
  • Save Ravenstine/cb9cd76183ec83bfdeb2 to your computer and use it in GitHub Desktop.
Save Ravenstine/cb9cd76183ec83bfdeb2 to your computer and use it in GitHub Desktop.
Project Full Circle Map
<style>
#siteWrapper #page{
margin: none;
padding: none;
max-width: none;
}
main {
padding: 0 !important;
}
#fullcirclemap img{
max-width: none !important;
}
</style>
<div id="fullcirclemap" style="width: 100%; height: 600px"></div>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
google.maps.event.addDomListener(window, 'load', function() {
var ctaLayer, followMeeURL, gmapURL, map, mapElement, options;
followMeeURL = "https://www.followmee.com/api/tracks.aspx?key=4915631036dcae1188bad47ababc6353&username=fullcircle&output=kml&function=currentfordevice&deviceid=10993763";
gmapURL = 'https://gist.githubusercontent.com/Ravenstine/a3b18c71942a812b5b11/raw/dafd404a0410bfbc7c4ef77ef1c6437b313e8cf0/testmap.kml';
options = {
zoom: 2,
center: {
lat: -33,
lng: 151
},
scrollwheel: false
};
mapElement = document.getElementById('fullcirclemap');
map = new google.maps.Map(mapElement, options);
ctaLayer = new google.maps.KmlLayer({
url: gmapURL,
map: map,
preserveViewport: true
});
return ctaLayer = new google.maps.KmlLayer({
url: followMeeURL,
map: map,
preserveViewport: true
});
});
// ---
// generated by coffee-script 1.9.2
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment