2014-11-17 10:44:55 +00:00
|
|
|
<!DOCTYPE html>
|
2014-11-17 15:49:06 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- Meta -->
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2014-11-17 16:11:28 +00:00
|
|
|
<title>These3Words Map</title>
|
2014-11-17 15:49:06 +00:00
|
|
|
<!-- Style -->
|
|
|
|
<style type="text/css">
|
|
|
|
html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="map-canvas"></div>
|
|
|
|
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function initialize() {
|
2014-11-17 15:59:10 +00:00
|
|
|
var loc = {
|
|
|
|
lat: {{ lat }},
|
|
|
|
lng: {{ lng }}
|
2014-11-17 15:49:06 +00:00
|
|
|
};
|
2014-11-17 15:59:10 +00:00
|
|
|
var map = new google.maps.Map(document.getElementById('map-canvas'), {
|
|
|
|
center: loc,
|
|
|
|
zoom: 14
|
|
|
|
});
|
|
|
|
var marker = new google.maps.Marker({
|
|
|
|
position: loc,
|
|
|
|
map: map,
|
|
|
|
title: "{{ threewords }}"
|
|
|
|
});
|
2014-11-17 15:49:06 +00:00
|
|
|
}
|
|
|
|
google.maps.event.addDomListener(window, 'load', initialize);
|
|
|
|
</script>
|
|
|
|
</body>
|
2014-11-17 10:44:55 +00:00
|
|
|
</html>
|