Displaying 1 result from an estimated 1 matches for "make_map_markers".
2008 Mar 14
0
problem with rjs and marker group
...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)
@sites = @group.sites
@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_htm...