slippy map alpha
authorSteve Coast <steve@asklater.com>
Sat, 26 Aug 2006 16:55:17 +0000 (16:55 +0000)
committerSteve Coast <steve@asklater.com>
Sat, 26 Aug 2006 16:55:17 +0000 (16:55 +0000)
app/controllers/site_controller.rb
app/views/layouts/site.rhtml [moved from app/views/layouts/user.rhtml with 99% similarity]
app/views/site/index.rhtml [new file with mode: 0644]
public/images/map_zoomin.png [new file with mode: 0644]
public/images/map_zoomout.png [new file with mode: 0644]

index eebb233..d01b86b 100644 (file)
@@ -1,2 +1,5 @@
 class SiteController < ApplicationController
+  def index
+
+  end
 end
similarity index 99%
rename from app/views/layouts/user.rhtml
rename to app/views/layouts/site.rhtml
index cee6491..0ff110c 100644 (file)
@@ -19,8 +19,6 @@
 
   </div>
 
-
-
   <span id="greeting">
     <%= link_to 'Login', {:controller => 'user', :action => 'login'}, {:id => 'loginanchor'}%> /
     <%= link_to 'Sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
@@ -34,8 +32,6 @@
     </ul>
   </div>
 
-
-
   <div id="left">
 
     <div id="logo">
@@ -89,7 +85,5 @@
         </div>
 
       </div>
-
-
-    </body>
-  </html>
+  </body>
+</html>
diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml
new file mode 100644 (file)
index 0000000..e08565a
--- /dev/null
@@ -0,0 +1,23 @@
+<div id="geocoder">
+  <form action="/search.html">
+    <input type="text" name="query" value="" size="60">
+    <input type="submit" value="Search">
+  </form>
+</div>
+
+<div id="drag" style="WIDTH: 700px; HEIGHT: 500px;">
+  <div id='controls'>
+    <a id="zoomout" class="mapcontrol"><img src="/images/map_zoomout.png" alt="zoom out"></a>
+    <a id="zoomin" class="mapcontrol"> <img src="/images/map_zoomin.png" alt="zoom in">  </a>
+  </div>
+</div>
+
+<div id="debuginfo"></div>
+
+<script type="text/javascript">
+  lat = 0;
+  lon = 0;
+  zoom = 0;
+
+  init();
+</script>
diff --git a/public/images/map_zoomin.png b/public/images/map_zoomin.png
new file mode 100644 (file)
index 0000000..1ac4864
Binary files /dev/null and b/public/images/map_zoomin.png differ
diff --git a/public/images/map_zoomout.png b/public/images/map_zoomout.png
new file mode 100644 (file)
index 0000000..d67a87d
Binary files /dev/null and b/public/images/map_zoomout.png differ