Displaying 3 results from an estimated 3 matches for "icon_anchor".
2008 Mar 04
0
question about updating the map
...ck
That is the main thing i want to update,
here is what draws the markers
text = "<strong>some text for the marker balloons</strong>"
icon = GIcon.new(:image => "/images/tmp/#{site.id}.png", :icon_size =>
GSize.new((r*2),(r*2)),
:icon_anchor => GPoint.new(r,r),
:info_window_anchor => GPoint.new(r,r))
marker = GMarker.new([site.map_stat.lat.to_f , site.map_stat.long.to_f],
:title => title, :icon => icon, :info_window => text)
the #{site.id},png is the image drawn earlier by RMagick. That is th...
2008 Mar 14
0
problem with rjs and marker group
...% [@group.name, site.site_name,
(KeyWord.stat_description(site.status_sensor.last_value)[0])]
# create the icon image ( the pivot circle )
icon = GIcon.new(:image => "/images/tmp/#{site.id}.png",
:icon_size => GSize.new((r*2),(r*2)),
:icon_anchor => GPoint.new(r,r),
:info_window_anchor => GPoint.new(r,r))
# place the marker on the map
marker = GMarker.new([site.map_stat.lat.to_f ,
site.map_stat.long.to_f],
:title => title, :icon => icon, :info_window => text)
_all_mark...
2007 Oct 16
3
can''t define custom GIcon
Hi,
I am having trouble getting custom GIcons to display. Here is the code in
my controller:
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.icon_global_init(GIcon.new(:image => "images/APBox-20.png
"),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+