lib/renderers/html/spatial.rb in atome-0.5.7.5.4 vs lib/renderers/html/spatial.rb in atome-0.5.7.5.9
- old
+ new
@@ -62,5 +62,32 @@
end
new({ renderer: :html, method: :center }) do |params|
html.center(params, attach)
end
+
+
+new({ method: :map, renderer: :html, type: :int }) do |params, _user_proc|
+ #TODO : missing zoom params
+ if params== :auto
+ params={longitude: :auto, latitude: :auto}
+ end
+ latitude_found=@latitude
+ longitude_found=@longitude
+ location_hash={longitude: longitude_found, latitude: latitude_found}.merge(params)
+ html.location(location_hash)
+end
+
+new({ method: :map_zoom, renderer: :html, type: :int }) do |params, _user_proc|
+ html.map_zoom(params)
+end
+
+new({ method: :map_pan, renderer: :html, type: :int }) do |params, _user_proc|
+ html.map_pan(params)
+end
+
+
+
+
+
+
+