]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
completed UK postcode search
[rails.git] / app / views / site / index.rhtml
index 6971e5faa468e43a15ba5c948847b6b59ff095eb..a066677ea666ee26203565d1c29e5ba6f244ea9c 100644 (file)
@@ -1,13 +1,18 @@
 
 
 <div id="geocoder">
-  <%= start_form_tag :controller => 'way_tag', :action => 'search' %>
-  <%= text_field 'query', 'query'%>
+  <%= start_form_tag :controller => 'geocoder', :action => 'search' %>
+  <%= text_field 'query', 'postcode'%>
+  <%= text_field 'query', 'place_name'%>
   <%= submit_tag 'Search' %>
   <%= end_form_tag %>
+<div id="postcode-helper">
+eg: SW15 6JH
+</div>
+<div id="placename-helper">
+eg:Essen
+</div>
 </div>
-
-
 
 <% lon =  params['lon'] || '-0.1' %>
 <% lat =  params['lat'] || '51.5' %>
@@ -38,7 +43,7 @@
   function init(){
 
     OpenLayers.Util.onImageLoadError = function() {
-      this.src = "http://<%= SERVER_URL %>/javascript/img/404.png";
+      this.src = "http://www.openstreetmap.org/javascript/img/404.png";
     }
     map = new OpenLayers.Map( "map", 
         {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxZoomLevel:18, maxResolution:156543, units:'meters', projection: "EPSG:41001"} );