Sha256: e233295544e88e6a1305f209d9bb8d95a87dbdd9780cf593e29070c3aa5c1104

Contents?: true

Size: 960 Bytes

Versions: 9

Compression:

Stored size: 960 Bytes

Contents

<script type="text/javascript">
  $(document).ready(function(){
   var map = new GMaps({
      el: '#main_map',
      lat: <%= @map_view[:lat] %>,
      lng: <%= @map_view[:lon] %>,
      zoom: <%= @map_view[:zoom] %>,
      zoomControl : <%= @zoom_control %>,
      mapTypeControl : <%= @map_type_control %>,
      streetViewControl : <%= @street_view_control %>,
      overviewMapControl : <%= @overview_control %>,
      panControl : <%= @pan_control %>,
      zoomControlOpt: {
          style : 'DEFAULT',
          position: 'TOP_LEFT'
      },
    });
<% @points.each do |point| %>
    map.addMarker({
            lat: <%= point[:lat] %>,
            lng: <%= point[:lon] %>,
            title: "<%= h point[:title] %>",
            icon: "<%= @types[ point[:type] ][:icon] %>",
            infoWindow: {
              content: <%= erb :"_point_comment", :layout => false, :locals => {:point => point} %>
            }
    });
<% end %>
  });
</script>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
travlrmap-0.0.9 views/_map_js.erb
travlrmap-0.0.8 views/_map_js.erb
travlrmap-0.0.7 views/_map_js.erb
travlrmap-0.0.6 views/_map_js.erb
travlrmap-0.0.5 views/_map_js.erb
travlrmap-0.0.4 views/_map_js.erb
travlrmap-0.0.3 views/_map_js.erb
travlrmap-0.0.2 views/_map_js.erb
travlrmap-0.0.1 views/_map_js.erb