Created
December 8, 2012 10:10
-
-
Save mbajur/4239685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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