X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5d3ecffa28510c867665001a7615559a185869c6..6835e8842f81b58a72be096c874df66428311640:/lib/quad_tile.rb diff --git a/lib/quad_tile.rb b/lib/quad_tile.rb index 347e7a817..931ec04a3 100644 --- a/lib/quad_tile.rb +++ b/lib/quad_tile.rb @@ -1,7 +1,7 @@ module QuadTile begin require "quad_tile/quad_tile_so" - rescue MissingSourceFile + rescue LoadError def self.tile_for_point(lat, lon) x = ((lon.to_f + 180) * 65535 / 360).round y = ((lat.to_f + 90) * 65535 / 180).round