Last active
August 28, 2016 22:12
-
-
Save Sysetup/28f175440eadcff9f8e766b8e883c0fb to your computer and use it in GitHub Desktop.
Simple Google Map.
This file contains hidden or 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
| (function initMap() { | |
| var contentString = '<div id="content">'+ | |
| '<div id="bodyContent">'+ | |
| '<p><h3>Sysetup.com</h3>' + | |
| '<address class="md-margin-bottom-40">'+ | |
| '<i class="fa fa-phone"></i> <a href="tel:+573116417210">COL: (+57) 311 641 7210 </a> <br>'+ | |
| '<i class="fa fa-phone"></i> <a href="tel:+573209004589">COL: (+57) 320 900 4589 </a> <br>'+ | |
| '<i class="fa fa-home"></i> Cll 2 14-02, 630004 Armenia Q. Colombia. <br>'+ | |
| '<i class="fa fa-envelope"></i> <a href="mailto:contact@sysetup.com">contact@sysetup.com</a>'+ | |
| '</address>'+ | |
| '</p>'+ | |
| '</div>'+ | |
| '</div>'; | |
| var mapDiv = document.getElementById('contact-map'); | |
| var position = {lat: 4.542525, lng: -75.663486}; | |
| var map = new google.maps.Map(mapDiv, { | |
| center: position, | |
| scrollwheel: false, | |
| zoom: 15 | |
| }); | |
| var marker = new google.maps.Marker({ | |
| position: position, | |
| map: map, | |
| icon: 'http://sysetup.com/assets/img/logo-pin.png' | |
| }); | |
| var infowindow = new google.maps.InfoWindow({ | |
| content: contentString | |
| }); | |
| marker.addListener('mouseover', function() { | |
| infowindow.open(map, marker); | |
| }); | |
| })(); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <script async defer src="https://maps.googleapis.com/maps/api/js?key=MY_KEY"></script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment