Skip to content

Instantly share code, notes, and snippets.

@digiltd
Last active September 11, 2015 23:20
Show Gist options
  • Select an option

  • Save digiltd/f4d3e5599d7e786f7e48 to your computer and use it in GitHub Desktop.

Select an option

Save digiltd/f4d3e5599d7e786f7e48 to your computer and use it in GitHub Desktop.
google-maps no-scroll
if ($("#contact").length) {
function initialize() {
var myLatLong = new google.maps.LatLng(40.7526, -73.9797);
var mapOptions = {center: myLatLong,scrollwheel: false,zoom: 13};
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
var marker = new google.maps.Marker({position: myLatLong,map: map,title: "123 Broadway"});
}
google.maps.event.addDomListener(window, 'load', initialize);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment