Created
October 14, 2016 18:26
-
-
Save kajatiger/1937ca020e42249ba02d6ea26ac3dab2 to your computer and use it in GitHub Desktop.
implementing google maps
This file contains 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
<script src="js/scripts.js"></script> | |
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyACgYearY6AZ7p6x5SM2gr6PB2cNkTAOZ4&callback=initMap" | |
async defer></script> |
This file contains 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
<div class="stalker-poster"> | |
<h3><span class="glyphicon glyphicon-map-marker"></span> Where can you find me?</h3> | |
<p>If you need to meet me in person, you can find me at the <strong>Amerika-Gedenk-Bibliothek</strong> in Kreuzberg</p> | |
<div id="map"></div> | |
</div> <!-- stalker poster end --> | |
This file contains 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
//GOOGLE MAP ZOOM | |
function initMap() { | |
var myLatLng = {lat: 52.4965527, lng: 13.3924497}; | |
var map = new google.maps.Map(document.getElementById('map'), { | |
center: myLatLng, | |
zoom: 14 | |
}); | |
var marker = new google.maps.Marker({ | |
position: myLatLng, | |
map: map, | |
title: 'Find Me Here!' | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment