Sha256: 92c8e064d3d31b992789321b07450fa84160294418f854beb46e2a2b830d2a24
Contents?: true
Size: 933 Bytes
Versions: 3
Compression:
Stored size: 933 Bytes
Contents
# frozen_string_literal: true # new({ atome: :map, type: :hash }) # new({particle: :longitude}) do |params, _user_proc| # render(:map, {longitude: params }) # params # end # # new({particle: :latitude}) do |params, _user_proc| # render(:map, {latitude: params }) # params # end # new({ method: :map, renderer: :html, type: :int }) do |params, _user_proc| # latitude_found=@latitude # longitude_found=@longitude # location_hash={longitude: longitude_found, latitude: latitude_found}.merge(params) # html.location(location_hash) # end m=map({id: :hgfh, longitude: 55.9876876, latitude: 33.987687, width: 333, height: 222,}) # wait 3 do p=map({id: :poilo, location: :auto, width: 333, height: 333, top: 333 , left: 333, zoom: 3}) # end b=box b.touch(true) do m.zoom(33) # p.zoom(3) # wait 2 do p.pan({ left: 370, top: 190 }) # end end # m=map({id: :locator, location: :auto}) # alert m.longitude
Version data entries
3 entries across 3 versions & 1 rubygems