search for: gmap_markers

Displaying 2 results from an estimated 2 matches for "gmap_markers".

2007 Oct 16
3
can''t define custom GIcon
...;MAC: "+result.mac.to_s+ "<br/><br/><a href=''/stats/table''>Table View</a>" marker = GMarker.new(latlng, :info_window => infoString, :icon => "ap_none") point = GLatLng.new(latlng) @gmap_markers << marker @map.center_zoom_init(bounding_box_center(@gmap_markers), 15) @map.overlay_global_init(GMarkerGroup.new(true, @gmap_markers),"NOI") In my view I simply have: <%= @map.div(:width => 600,:height => 400) %> When I don''t define the :icon proper...
2007 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
Hi, I found the funcitoned mentioned in title (center_and_zoom_on_markers) but am having troubles getting it working. I have several markers being added to an array (@gmap_markers = []) in the following manner: marker = GMarker.new(latlng, :info_window => infoString, :icon => my_icon) @gmap_markers << marker I am then trying to do the following: group = GMarkerGroup.new(true, @gmap_markers) @map.overlay_global_init(group,"NOI") @map.record_init group...