search for: glargemapcontrol

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

2007 Jan 18
1
Clusterer generating javascript syntax error
...ng like: <%= session[:gmap].div(:width => 600, :height => 400) %> However, I get this Javascript error when I view my page: illegal character 30map.setCenter(new GLatLng(38.134557,-95.537109),4);map.addOverlay(#<Ym4r::MapstractionPlugin::Clusterer:0x9b3d608>);map.addControl(new GLargeMapControl()); It seems pretty obvious that a Ruby object reference is somehow getting inserted into the generated Javascript. Removing the clusterer lines from my controller solves the problem. Any idea what''s going on? Regards, Joseph
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+