mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
16 lines
286 B
Ruby
16 lines
286 B
Ruby
class UtilityController < ApplicationController
|
|
|
|
def tms_alt
|
|
# /z/x/y.png
|
|
# /z/x/y.png
|
|
# /z/x/(2*z-y-1).png
|
|
y = 2**params[:z].to_i-params[:y].to_i-1
|
|
puts y
|
|
redirect_to "/tms/#{params[:id]}/#{params[:z]}/#{params[:x]}/#{y}.png"
|
|
end
|
|
|
|
def tms_info
|
|
end
|
|
|
|
end
|