X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cdb9d2527a8524eea02856c27fff10ad5c138344..61ae5e7af0dd759ddb1acfcea10adcbede9da58c:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 6971e5faa..31b0a480e 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,13 +1,24 @@
- <%= 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 %> -
- +
+ Geolocation provided by npemap.org.uk, + geocoder.us, geocoder.ca + and geonames.org +
+
+eg: SW15 6JH, 95472 or H2L4C1 +
+
+eg:Essen +
+ <% lon = params['lon'] || '-0.1' %> <% lat = params['lat'] || '51.5' %> @@ -38,7 +49,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"} );