public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.