Displaying 5 results from an estimated 5 matches for "record_init".
Did you mean:
record_in
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 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
...ay (@gmap_markers = []) in the
following manner:
marker = GMarker.new(latlng, :info_window => infoString, :icon => my_icon)
@gmap_markers << marker
I am then trying to do the following:
group = GMarkerGroup.new(true, @gmap_markers)
@map.overlay_global_init(group,"NOI")
@map.record_init group.center_and_zoom_on_markers
But I get the following error: this.v has no properties (on line 611 of
main.js, according to Firebug). If I replace the line "@map.record_init
group.center_and_zoom_on_markers" with
"@map.center_zoom_init(bounding_box_center(@gmap_markers),
9)"...
2007 Mar 04
0
Event listeners
Hello.. I am playing around on a pilot project with this wonderful
Rails plugin.... thanks for sharing it w us !
I read in a post , in reply to this subject yjat :
Events are possible. Either through the @map.record_init "azeazeae" (for
arbitrary events like domlistener) or through the
@map.event_init(@map,:click,"function(){alert(''HOYOYO'');}").
The latter will give you: GEvent.addListener(map,"click",
function(){alert(''HOYOYO'');}) inserted during in...
2007 Mar 04
0
Event listeners.. solved
sorry.. I paid a little bit more attention to your reply.. especially
using Firebug extension... (so helpful...)
and I got it (maybe not so good writing..
@map.declare_init(@marker1, ''marker1'')
@map.overlay_init(@marker1)
@map.record_init "GEvent.addListener(marker1, ''dragend'',
function () {
point = marker1.getPoint();
map.setCenter(point);
map.savePosition();
GLog.write(''New position of insert = ''+ point.lat() + '',''+
point.lng()); });"...
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+