slippy map alpha
This commit is contained in:
parent
613e88c4a8
commit
a42dc9f482
5 changed files with 28 additions and 8 deletions
|
@ -1,2 +1,5 @@
|
|||
class SiteController < ApplicationController
|
||||
def index
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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>
|
23
app/views/site/index.rhtml
Normal file
23
app/views/site/index.rhtml
Normal file
|
@ -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>
|
BIN
public/images/map_zoomin.png
Normal file
BIN
public/images/map_zoomin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
public/images/map_zoomout.png
Normal file
BIN
public/images/map_zoomout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
Loading…
Add table
Add a link
Reference in a new issue