3 <%= javascript_include_tag 'main.js' %>
4 <!--[if IE]><%= javascript_include_tag 'pngfix.js' %><![endif]--> <!-- thanks, microsoft! -->
5 <%= javascript_include_tag 'tile.js' %>
6 <%= javascript_include_tag 'site.js' %>
8 <script type="text/javascript">
9 lon = <% if cgi['lon'].length > 0 then print cgi['lon'].to_f else print '0' end %>;
10 lat = <% if cgi['lat'].length > 0 then print cgi['lat'].to_f else print '0' end %>;
11 zoom = <% if cgi['zoom'].length > 0 then print cgi['zoom'].to_f else print '0' end %>;
12 <% if cgi['scale'].length > 0 then %>
13 zoom = Math.log(360.0/(( <% print cgi['scale'].to_f() %> ) * 512.0)) / Math.log(2.0);
16 <link rel="stylesheet" type="text/css" href="/css/style.css" />
17 <title>OpenStreetMap</title>
20 <%= @content_for_layout %>