X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b2b6892a4553eeaa8d601737dee440eba0c6d6a6..e3de346bdd074e2c2f0c83daf0e6314b5990dbd6:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index fb5327b81..35e542699 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,76 +1,75 @@ + +
-
- - -
+ <%= start_form_tag :controller => 'geocoder', :action => 'search' %> + <%= text_field 'query', 'postcode'%> + <%= text_field 'query', 'place_name'%> + <%= submit_tag 'Search' %> + <%= end_form_tag %> +
+eg SW15 6JH +
+
+Essen +
-
- - - + +We're trialing adverts to support the project. Login and they go away. - - <% end %> + function init(){ - + map.events.register("moveend", map, function() { + var lonlat = map.getCenter(); + + var lon_deg = (lonlat.lon / 20037508.34) * 180; + var lat_deg = (lonlat.lat / 20037508.34) * 180; + var PI = 3.14159265358979323846; + lat_deg = 180/PI * (2 * Math.atan(Math.exp(lat_deg * PI / 180)) - PI / 2); + var zoom = map.getZoom(); + updatelinks(lon_deg,lat_deg,zoom); + }); + } + +init(); +// --> +