Добавить карту Google через API



<script language="javascript" src="https://maps.googleapis.com/maps/api/js?v=3"></script>

      <script>
        
        var mapCoordinates = new google.maps.LatLng(47.938377, 33.408029);
        var egglabs = new google.maps.LatLng(47.938377, 33.408029);
        var markers = [];
		var image = new google.maps.MarkerImage(
			new google.maps.Size(79,108),
			new google.maps.Point(0,0),
			new google.maps.Point(42,56)
		  );
                  
        function initialize() {
    var latlng = new google.maps.LatLng(47.938377, 33.408029);
    var myOptions = {
        zoom: 14,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
            myOptions);
var marker = new google.maps.Marker({
    position: mapCoordinates,
    map: map
  });


}
  
 function addMarker() 
		{
			  markers.push(new google.maps.Marker({
			  position: egglabs,
			  raiseOnDrag: false,
			  icon: image,
			  map: map,
			  draggable: false
			  }));
			  
		}
google.maps.event.addDomListener(window, "load", initialize);


     </script>
<div id="map_canvas"></div>
 
135   0  
    Ничего не найдено.

Добавить ответ:
Отменить.