Displaying 3 results from an estimated 3 matches for "add_overlay".
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
2006 Nov 02
2
Update map
...er %>
<%= @map.to_html %>
</head><body>
<%= @map.div(:width => 600, :height => 400) %>
<%= link_to_remote("Update", :url => {:action => :shift}) %>
</body>
</html>
my shift.rjs:
page << @map.clear_overlays
page << @map.add_overlay(@marker)
What''s wrong here??
thanks in advance,
till
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ym4r-user/attachments/20061102/bcfd7a47/attachment.html
2008 Mar 14
0
problem with rjs and marker group
...@marker = GMarker.new([75.89,-42.767],:title => "Update",
:info_window => "I have been placed through RJS")
end
I am using a simple form_remote_tag in the view, and in the rjs file i have
page << @map.clear_overlays
@site_marks.each {|mark| page << @map.add_overlay(mark)}
now, when i execute the button, the markers go away, but are not redrawn.
Anybody help me please ?
thanks again
shawn