Displaying 1 result from an estimated 1 matches for "30map".
Did you mean:
30ma
2007 Jan 18
1
Clusterer generating javascript syntax error
...view I''m loading in the requisite javascript libraries,
including clusterer and mapstraction, and then displaying the map with
something 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...