Sha256: 2ebf863aebee2df56c2bf646adff1d784985e6aa96c994c4418045549afad482
Contents?: true
Size: 884 Bytes
Versions: 24
Compression:
Stored size: 884 Bytes
Contents
script[type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"] script[type="text/javascript"] | google.maps.event.addDomListener(window, 'load', function() { var latlng = new google.maps.LatLng(<ruby code="= library.latitude"></ruby>, <ruby code="= library.longitude"></ruby>); var options = { zoom: 16, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, scaleControl: true }; var map = new google.maps.Map(document.getElementById("library_map"), options); var marker = new google.maps.Marker({ position: latlng, map: map, title: '<ruby code="= library.display_name.localize"></ruby>' }); var infowindow = new google.maps.InfoWindow({ content: '<ruby code="= library.display_name.localize"></ruby>' }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); }); #library_map[style="width: 500px; height: 500px;"]
Version data entries
24 entries across 22 versions & 2 rubygems