Displaying 15 results from an estimated 15 matches for "control_init".
2006 Nov 02
2
Update map
...;'ve just started playing around with the ym4r-plugin and try to update a
map as explained in the README-example...
but nothing happens. I can update normal html.
Heres my baby-code:
class AdminController < ApplicationController
def index
@map = GMap.new("map_div")
@map.control_init(:large_map => true)
@map.center_zoom_init([59.91106, 10.72223],16)
@map.overlay_init(GMarker.new([59.91122, 10.72217], :title => "Great!",
:info_window => "Hi"))
render :action => ''index''
end
def shift
@map = Variable.new("map...
2007 Oct 16
3
can''t define custom GIcon
Hi,
I am having trouble getting custom GIcons to display. Here is the code in
my controller:
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.icon_global_init(GIcon.new(:image => "images/APBox-20.png
"),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+
"<br/>MAC: "+result.mac.to_s+...
2006 Jul 25
1
Blank map?
Hey all,
I''m a little frustrated here. The controls for the Google Map show up,
but the map itself seems to either never appear or to briefly flicker
onto screen, then to disappear.
My controller is simply this:
@map = GMap.new("map_div")
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([0, 0], 6)
and my view is this:
<head>
<%= javascript_include_tag :defaults %>
<%= GMap.header %>
<%= @map.to_html %>
</head>
<body>
<h2>Map should be below</h2>
<%=...
2006 Aug 03
3
Calling/Executing javascript functions from controller
...ied:
class RandomController < ApplicationController
before_filter :login_required, :except => [:index, :initialize]
def index
@session[:mode] = ''view''
@map = GMap.new("map")
render :update do |page|
page.call("resizeMap")
end
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([38.539506, -121.757172],13)
store_location
end
end
This as expected does not work, it spits of the try{blah blah} catch
stuff.
Any help is greatly appreciated!
Russ
--
Posted via http://www.ruby-forum.com/.
2006 Nov 06
4
Event listeners
Hi!
Your plugin is really great! Thanks.
One more little question.
Is it possible to add event listeners to the maps via your plugin?
greetings
/till
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ym4r-user/attachments/20061106/6b1c6f4f/attachment.html
2007 Jan 18
1
Clusterer generating javascript syntax error
Hi all,
I''m using Ym4r with the Clusterer. The GMaps code in my controller
looks something like this:
# geo is an array of lon/lat points
session[:gmap] = GMap.new(''map_div'')
session[:gmap].control_init(:large_map => true,:map_type => true)
session[:gmap].center_zoom_init([38.134557,-95.537109],4)
markers = Array.new
geodata.each do |geo|
markers.push(GMarker.new([geo[''lon''], geo[''lat'']],
:info_window => "Hello", :tit...
2007 Mar 04
0
Event listeners
...nitialization.
I succeeded to do it in an rjs file (called from a form.. whenc
changing a location.. )
but I need to setup a first marker from my index action as I
initialize the map
I wrote
def index
@code_postal = "75018"
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@adresses = []
@adresses = lookup_geocodes(@code_postal << ", france")
@adresses.each do |marker|
@latitude = marker[:latitude]
@longitude = marker[:longitude]
@marker1 = GMarker.new([marker[:latitude]...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...oller geokittest.
The controller contains:
class GeokittestController < ApplicationController
require ''geokit''
require ''ym4r_gm''
include ym4r_gm::GoogleMaps
include GeoKit::Geocoders
def index
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.center_zoom_init([75.5,-42.56],4)
#@map.overlay_init(GMarker.new([75.6,-42.467],:title => "Hello",
:info_window => "Info! Info!"))
end
75.5,-42.56 should be the data for the map.
In the next step I want to initiate...
2008 Mar 14
0
problem with rjs and marker group
...there all,
i have a function that builds a bunch of markers to go on a google
map. I would like to update them with rjs.
Here is what i have so far.
def map_main_layout
@zoom = params[:zoom].to_i
@zoom = 14 if params[:zoom].nil?
@map = GMap.new("map_div")
# @map.control_init(:large_map => true, :map_type => true) #
(inserts map control)
# place the map where we want it ( center and zoom level )
@map.center_zoom_init([@group.group_map_stat.lat.to_f,
@group.group_map_stat.long.to_f], @zoom)
@map.set_map_type_init(GMapType::G_HYBRID_MAP)
@sit...
2006 Aug 03
0
N00b question...but here it goes
...ass RandomController < ApplicationController
before_filter :login_required, :except => [:index, :initialize]
def index
@session[:mode] = ''view''
@map = GMap.new("map")
render :update do |page|
page.call("resizeMap")
end
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([38.539506, -121.757172],13)
store_location
end
end
This as expected does not work, it spits of the try{blah blah} catch
stuff.
Any help is greatly appreciated!
Russ
--
Posted via http://www.ruby-forum.com/.
2019 Aug 01
0
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
...;?':
+ default:
+ usage();
+ }
+ }
+
+ if (!control_port)
+ usage();
+ if (opts.mode == TEST_MODE_UNSET)
+ usage();
+ if (opts.peer_cid == VMADDR_CID_ANY)
+ usage();
+
+ if (!control_host) {
+ if (opts.mode != TEST_MODE_SERVER)
+ usage();
+ control_host = "0.0.0.0";
+ }
+
+ control_init(control_host, control_port,
+ opts.mode == TEST_MODE_SERVER);
+
+ run_tests(test_cases, &opts);
+
+ control_cleanup();
+ return EXIT_SUCCESS;
+}
--
2.20.1
2019 Aug 01
13
[PATCH v2 00/11] VSOCK: add vsock_test test suite
The vsock_diag.ko module already has a test suite but the core AF_VSOCK
functionality has no tests. This patch series adds several test cases that
exercise AF_VSOCK SOCK_STREAM socket semantics (send/recv, connect/accept,
half-closed connections, simultaneous connections).
Stefan: Do you think we should have a single application or is better to
split it in single tests (e.g.
2019 Oct 09
2
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
...if (opts.peer_cid == VMADDR_CID_ANY)
> + usage();
> +
> + if (!control_host) {
> + if (opts.mode != TEST_MODE_SERVER)
> + usage();
> + control_host = "0.0.0.0";
> + }
> +
> + control_init(control_host, control_port,
> + opts.mode == TEST_MODE_SERVER);
> +
> + run_tests(test_cases, &opts);
> +
> + control_cleanup();
> + return EXIT_SUCCESS;
> +}
> --
> 2.20.1
2019 Oct 09
2
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
...if (opts.peer_cid == VMADDR_CID_ANY)
> + usage();
> +
> + if (!control_host) {
> + if (opts.mode != TEST_MODE_SERVER)
> + usage();
> + control_host = "0.0.0.0";
> + }
> +
> + control_init(control_host, control_port,
> + opts.mode == TEST_MODE_SERVER);
> +
> + run_tests(test_cases, &opts);
> +
> + control_cleanup();
> + return EXIT_SUCCESS;
> +}
> --
> 2.20.1
2019 Dec 18
13
[PATCH net-next v3 00/11] VSOCK: add vsock_test test suite
The vsock_diag.ko module already has a test suite but the core AF_VSOCK
functionality has no tests. This patch series adds several test cases that
exercise AF_VSOCK SOCK_STREAM socket semantics (send/recv, connect/accept,
half-closed connections, simultaneous connections).
The v1 of this series was originally sent by Stefan.
v3:
- Patch 6:
* check the byte received in the recv_byte()
* use