Skip to content

Instantly share code, notes, and snippets.

@trescube
Last active August 13, 2018 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trescube/90f33a8c44f2b8ae9d1f0365b59d1ffc to your computer and use it in GitHub Desktop.
Save trescube/90f33a8c44f2b8ae9d1f0365b59d1ffc to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Delaware Mapping Workshop</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
#map {
height: 100%;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
function initMap() {
const map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 39.1172707, lng: -75.4815594},
zoom: 9
});
const doverMarker = new google.maps.Marker({
position: {
lat: 39.159456,
lng: -75.524494
},
title: 'Dover, DE',
icon: 'https://cdn2.iconfinder.com/data/icons/security-law/500/law_iconsArtboard_1_copy_6-2-24.png',
map: map
});
const workshopMarker = new google.maps.Marker({
position: {
lat: 39.6811201,
lng: -75.751328
},
label: 'W',
title: '221 Academy Street, Newark, DE',
map: map
});
// add all museum markers
const museumIcon = 'https://cdn2.iconfinder.com/data/icons/maki/100/museum-24.png';
const winterthurMarker = new google.maps.Marker({
position: {
lat: 39.808811,
lng: -75.603726
},
title: 'Winterthur',
icon: museumIcon,
map: map
});
const cannonballMarker = new google.maps.Marker({
position: {
lat: 38.775936,
lng: -75.139399
},
title: 'Cannonball Maritime House/Museum',
icon: museumIcon,
map: map
});
const seafordMarker = new google.maps.Marker({
position: {
lat: 38.640344,
lng: -75.613109
},
title: 'Seaford Museum',
icon: museumIcon,
map: map
});
const amcMarker = new google.maps.Marker({
position: {
lat: 39.118667,
lng: -75.45657
},
title: 'Air Mobility Command Museum',
icon: museumIcon,
map: map
});
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=<YOUR API KEY>
&callback=initMap"
></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment