Displaying 1 result from an estimated 1 matches for "_all_markers".
Did you mean:
all_markers
2008 Mar 14
0
problem with rjs and marker group
...@sites.each do |site|
# draw the circles
site.map_stat.circle_image(@zoom)
end
@all_markers = make_map_markers(@sites, @zoom)
@map.overlay_global_init(GMarkerGroup.new(true, @all_markers), "myGroup")
end
def make_map_markers(sites, zoom)
_all_markers = Hash.new
sites.each_with_index do |site, i|
# load the circles
text = site.map_stat.marker_window_html()
# r = site.map_stat.radius.to_i
zoomhash = {13 => 0.5, 14 => 1, 15 => 2, 16 => 4}
r = (site.map_stat.radius.to_f * zoomhash[@...