search for: gmarkergroup

Displaying 4 results from an estimated 4 matches for "gmarkergroup".

2007 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
...s) 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.center_and_zoom_on_markers But I get the following error: this.v has no properties (on line 611 of main.js, according to Firebug). If I replace the line "@map.record_init group.center_and_zoom_on_...
2007 Oct 16
3
can''t define custom GIcon
...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 property in the GMarker constructor, everything works properly. When I do, the map loads, but the marker isn''t displayed,...
2007 Mar 08
1
map not displayed after Ajax.updater request
...or a map and display it in the corresponding partial the map is built without any problem with the icons and markers ( @map is correct...) @map = GMap.new("map_div") ... @map.icon_global_init(GIcon.new(:image => "/images/gm_contact.png", .... .. @map.overlay_global_init(GMarkerGroup.new(true, @markers[1]), "contact") .... from a radio button, an Ajax.Updater request is sent to my controller to require either table or map build and display... .... ....build table or map ,according to ajax request parameter if request.xml_http_request? render :partia...
2008 Mar 14
0
problem with rjs and marker 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_html() # r = site.map_stat.radius.to_i zo...