Displaying 2 results from an estimated 2 matches for "clear_overlay".
Did you mean:
clear_overlays
2006 Nov 02
2
Update map
...g :defaults %>
<%= GMap.header %>
<%= @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
...@site_marks = make_map_markers(@group.sites, @zoom)
@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