Displaying 5 results from an estimated 5 matches for "overlay_global_init".
2007 Oct 16
3
can''t define custom GIcon
.../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 I do, the map loads, but the marker isn''...
2007 Mar 08
1
map not displayed after Ajax.updater request
...a standard table
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?
re...
2007 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
...g.
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_markers" with
"@map.center_zoom_init(bou...
2008 Mar 14
0
problem with rjs and marker group
....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_html()
# r = site.map_stat.radius.to_i...
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks
like YM4R GM (and Mapstraction) doesn''t support this. I need an init like:
marker = new GMarker(...
GEvent.addListener(marker, "dragend", function() { })
but the current setup makes "anonymous" markers - never creates variable
that can be used to access them. Has anyone thought about