Created
March 20, 2015 16:11
-
-
Save ihortkachuk/989a325248c40740e716 to your computer and use it in GitHub Desktop.
gmap
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
$(document).ready(function () { | |
function initialize() { | |
var mapProp = { //describe Gmap properties | |
center: new google.maps.LatLng(55.788818, 37.502207), | |
zoom: 16, | |
maxZoom: 17, | |
minZoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
scrollwheel: false, | |
navigationControl: false, | |
mapTypeControl: true, | |
scaleControl: false, | |
zoomControl: false, | |
draggable: false, | |
panControl: false, | |
streetViewControl: false | |
}; | |
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp); // create instance of Gmap | |
var marker=new google.maps.Marker({ | |
position:new google.maps.LatLng(55.788343, 37.508947), | |
icon:'sites/all/themes/onecstandart/images/marker.png' | |
}); | |
marker.setMap(map); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); //initialize our map when window loads | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment