# 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 def api_infos { "example": "Purpose of the example", "methods_found": [ "987687", "9876876", "location", "longitude", "pan", "touch", "zoom" ], "987687": { "aim": "The `987687` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `987687`." }, "9876876": { "aim": "The `9876876` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `9876876`." }, "location": { "aim": "The `location` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `location`." }, "longitude": { "aim": "The `longitude` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `longitude`." }, "pan": { "aim": "The `pan` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `pan`." }, "touch": { "aim": "Handles touch or click events to trigger specific actions.", "usage": "Example: `touch(:tap) do ... end` triggers an action when tapped." }, "zoom": { "aim": "The `zoom` method's purpose is determined by its specific functionality.", "usage": "Refer to Atome documentation for detailed usage of `zoom`." } } end