diff --git a/template.html b/template.html index 42d925a..99b33ca 100644 --- a/template.html +++ b/template.html @@ -255,6 +255,18 @@ google.maps.event.addListener(marker, 'click', function() { // initialize the markers and regions initMarkers(); initRegions(); + + var compassDiv = document.createElement('DIV'); + + compassDiv.style.padding = '5px'; + + var compassImg = document.createElement('IMG'); + compassImg.src="compass.png"; + compassDiv.appendChild(compassImg); + + map.controls[google.maps.ControlPosition.TOP_RIGHT].push(compassDiv); + + } diff --git a/web_assets/compass.png b/web_assets/compass.png new file mode 100644 index 0000000..4b0c255 Binary files /dev/null and b/web_assets/compass.png differ