Displaying 2 results from an estimated 2 matches for "bounding_box_center".
2007 Oct 16
3
can''t define custom GIcon
...<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 property in the GMarker constructor,
everything works properly. When...
2007 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
...nit(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_markers" with
"@map.center_zoom_init(bounding_box_center(@gmap_markers),
9)" everything works as expected. bounding_box_center is just a function I
wrote quickly to get the center point of the group of markers.
Has anybody else used the center_and_zoom_on_markers method successfully?
I''m not sure what the problem is, as I think I am using...