Skip to content

Instantly share code, notes, and snippets.

@ihortkachuk
Created March 20, 2015 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihortkachuk/989a325248c40740e716 to your computer and use it in GitHub Desktop.
Save ihortkachuk/989a325248c40740e716 to your computer and use it in GitHub Desktop.
gmap
$(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