Skip to content

Instantly share code, notes, and snippets.

@mbajur
Created December 8, 2012 10:10
Show Gist options
  • Save mbajur/4239685 to your computer and use it in GitHub Desktop.
Save mbajur/4239685 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
Gmaps.map = new Gmaps4RailsGoogle();
Gmaps.load_map = function() {
Gmaps.map.map_options.zoom = 18;
Gmaps.map.map_options.auto_zoom = false;
Gmaps.map.initialize();
Gmaps.map.markers = [{"description":"Description","picture":"/assets/marker.png","width":"32","height":"37","shadow_picture":"/assets/marker_shadow.png","shadow_width":"51","shadow_height":"37","lat":35.6873983,"lng":139.7230538}];
Gmaps.map.create_markers();
Gmaps.map.adjustMapToBounds();
Gmaps.map.callback();
};
Gmaps.oldOnload = window.onload;
window.onload = function() { Gmaps.triggerOldOnload(); Gmaps.loadMaps(); };
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment