X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fe37259e012cdeef1e22e1dfb887be108193a086..a80b42652bfbe6d5362db3f37ad3285d57e4f300:/app/controllers/geocoder_controller.rb diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 531cce422..18812689b 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -29,7 +29,7 @@ class GeocoderController < ApplicationController if results_count == 1 position = results.collect { |s| s[:results] }.compact.flatten[0] - page.call "setPosition", position[:lat], position[:lon], position[:zoom] + page.call "setPosition", position[:lat].to_f, position[:lon].to_f, position[:zoom].to_i else page.call "openSidebar" end