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