Sha256: 90cc33cb1be145cc263fa8ec0246ca7a70833ee0225c70868c4e880a397beda9

Contents?: true

Size: 925 Bytes

Versions: 9

Compression:

Stored size: 925 Bytes

Contents

<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
  google.maps.event.addDomListener(window, 'load', function() {
    var latlng = new google.maps.LatLng(<%= library.latitude %>, <%= library.longitude %>);
    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: '<%= library.display_name %>'
    });
    var infowindow = new google.maps.InfoWindow({
      content: '<%= library.display_name %>'
    });
    google.maps.event.addListener(marker, 'click', function() {
      infowindow.open(map,marker);
    });
  });
</script>
<div id="library_map" style="width: 500px; height: 500px;"></div>

Version data entries

9 entries across 5 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 app/views/libraries/_map.html+phone.erb
enju_library-0.4.0.beta.4 app/views/libraries/_map.html+phone.erb
enju_library-0.4.0.beta.4 app/views/libraries/_map.html.erb
enju_library-0.4.0.beta.3 app/views/libraries/_map.html+phone.erb
enju_library-0.4.0.beta.3 app/views/libraries/_map.html.erb
enju_library-0.4.0.beta.2 app/views/libraries/_map.html.erb
enju_library-0.4.0.beta.2 app/views/libraries/_map.html+phone.erb
enju_library-0.4.0.beta.1 app/views/libraries/_map.html.erb
enju_library-0.4.0.beta.1 app/views/libraries/_map.html+phone.erb