Skip to content

Instantly share code, notes, and snippets.

@poltib
Created April 26, 2014 09:34
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 poltib/11315792 to your computer and use it in GitHub Desktop.
Save poltib/11315792 to your computer and use it in GitHub Desktop.
gmap_script_gmapinit
gm_init = function() {
var gm_center, gm_map_type, map_options;
gm_center = new google.maps.LatLng(50.633333, 5.566667);
gm_map_type = google.maps.MapTypeId.ROADMAP;
map_options = {
zoom: 14,
center: gm_center,
panControl: false,
backgroundColor: "rgba(0,0,0,0)",
mapTypeControl: false,
disableDoubleClickZoom: true,
scrollwheel: false,
draggableCursor: "crosshair"
};
return new google.maps.Map(this.map_canvas, map_options);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment