Created
April 18, 2016 08:14
-
-
Save inskyer/91ed8fcad101b55b92bc39ca7519cfd8 to your computer and use it in GitHub Desktop.
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
| <script> | |
| function initMap() { | |
| var mapDiv = document.getElementById('map'); | |
| var myLatLng = {lat: 56.009391, lng: 92.814371}; | |
| var map = new google.maps.Map(mapDiv, { | |
| center: myLatLng, | |
| zoom: 16, | |
| scrollwheel: false, | |
| scaleControl: true, | |
| }); | |
| var contentString = '<div id="content">'+ | |
| '<div id="siteNotice">'+ | |
| '</div>'+ | |
| '<h1 id="firstHeading" class="firstHeading">Наш Адрес:</h1>'+ | |
| '<div id="bodyContent">'+ | |
| '<p><b>г.Красноярск</b> ул. Ладо Кецховели 22а<b>, офис 901</p>' + | |
| '</div>'+ | |
| '</div>'; | |
| var infowindow = new google.maps.InfoWindow({ | |
| content: contentString | |
| }); | |
| var marker = new google.maps.Marker({ | |
| position: myLatLng, | |
| map: map, | |
| title: 'ул. Ладо Кецховели 22а, офис 901' | |
| }); | |
| marker.addListener('click', function() { | |
| infowindow.open(map, marker); | |
| }); | |
| } | |
| </script> | |
| <script src="https://maps.googleapis.com/maps/api/js?callback=initMap" | |
| async defer></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment