X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/073ea140d8b3506d1e7fdad8e406801dcd214779..83beee6d6a49c7403ac21e0603b923905f56d527:/app/views/site/index.rhtml?ds=sidebyside diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 86dbb9e70..d6a0fe8a3 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -2,21 +2,20 @@
<%= start_form_tag :controller => 'geocoder', :action => 'search' %> - <%= text_field 'query', 'postcode'%> + <%= 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 + geocoder.us, geocoder.ca and geonames.org
- eg: SW15 6JH, 95472 or H2L4C1 + Enter a postcode or zip code, eg: SW15 6JH, 95472
- eg:Essen + Enter a place-name, eg:Essen
@@ -129,14 +128,8 @@ var el = document.getElementById( 'map' ); var left = getStyle( el, 'left' ); var top = getStyle( el, 'top' ); - var bottom = el.old_bottom; - if( ! bottom ) { - bottom = getStyle( el, 'bottom' ); - } - var right = el.old_right; - if( ! right ) { - right = getStyle( el, 'right' ); - } + var bottom = getStyle( el, 'bottom' ); + var right = getStyle( el, 'right' ); var width = el.old_width; if( ! width ) { width = getStyle( el, 'width' ); @@ -169,9 +162,10 @@ } if( top != 'auto' && bottom != 'auto' && height == 'auto' ) { el.old_height = height; - var new_height = (pheight - el.offsetHeight - parseInt( bottom ) ); + var new_height = (pheight - el.offsetTop - parseInt( bottom ) ); el.style.height = new_height + 'px'; } + map.updateSize(); } if( ie6 ) {