I’m stepping through a variant of the tutorial for the ym4r/GM mapping
and with heavily simplified code I’m basically doing this in the
controller (assume @map and @zoom are all good):
@center = GLatLng.new([ result.latitude, result.longitude ])
and in the .rjs file:
page << @map.set_center(@center, @zoom)
which makes it pretty clear that the GLatLng object is having to_s
I’m still debugging but thought perhaps others have hit this issue.
As far as I can tell this is exactly how both tutorials walk through
doing this, so I’m not sure what’s going on.
Appreciate any suggestions or will let folks know what I find.
- Walter Korman – http://www.lemurware.com