+
+ render :layout => map_layout
+ end
+
+ def search_latlon
+ lat = params[:lat].to_f
+ lon = params[:lon].to_f
+ if lat < -90 || lat > 90
+ @error = "Latitude #{lat} out of range"
+ render :action => "error"
+ elsif lon < -180 || lon > 180
+ @error = "Longitude #{lon} out of range"
+ render :action => "error"
+ else
+ @results = [{ :lat => lat, :lon => lon,
+ :zoom => params[:zoom],
+ :name => "#{lat}, #{lon}" }]
+
+ render :action => "results"
+ end