Created
June 27, 2012 09:30
-
-
Save larswittenberg/3002885 to your computer and use it in GitHub Desktop.
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
<div id="map"> | |
<span class="loading">Karte wird geladen</span> | |
</div> | |
{include file="includes/footer.tpl" maps=true} |
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
// Kontakt > Google Maps | |
if($('#map').length > 0){ | |
var myLatlng = new google.maps.LatLng(XXX); | |
var map = new google.maps.Map($('#map')[0],{ | |
zoom: 12, | |
center: myLatlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
streetViewControl: false, | |
mapTypeControl: false, | |
scrollwheel: false, | |
navigationControlOptions: { style: google.maps.NavigationControlStyle.SMALL } | |
}); | |
var marker = new google.maps.Marker({ | |
position: myLatlng, | |
map: map | |
}); | |
} |
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
#map {width: 100%; height: 500px;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment