Displaying 2 results from an estimated 2 matches for "max_visible_mark".
2007 Jan 18
1
Clusterer generating javascript syntax error
...([38.134557,-95.537109],4)
markers = Array.new
geodata.each do |geo|
markers.push(GMarker.new([geo[''lon''], geo[''lat'']],
:info_window => "Hello", :title => "HOYOYO"))
end
clusterer = Clusterer.new(markers, :max_visible_markers => 2)
session[:gmap].overlay_init(clusterer)
Then in my view I''m loading in the requisite javascript libraries,
including clusterer and mapstraction, and then displaying the map with
something like:
<%= session[:gmap].div(:width => 600, :height => 400) %>
However...
2007 Mar 09
0
Clusterer
trying to use a Clusterer (other capabilities are running well....) I
got an error :
addDescriptionToMarker is not defined => line 169
my controller..
clusterer = Clusterer.new(@my_markers,
:max_visible_markers => 2,
:grid_size => 10,
:min_markers_per_cluster => 2,
:max_lines_per_info_box => 10,
:icon => icons[2])
@map.overlay_init(clusterer)
@marker_myself = GMarker.new
([@user.user_lat, at user.user_lng], :title => @user.pseudo)...