I use  GoogleMaps with  rails fot a while now and I have never had  
such a problem.
here is a sample code I use (from a demo application that I will do in  
Railcamps Paris)
http://pastie.caboo.se/190933

HTH
Seb
On May 3, 2008, at 6:48 AM, Josh K wrote:

>
> Hi Guys,
>
> I am trying to build a Rails app which uses Prototype and Google Maps
> but have run into issues with Prototype and Google Maps both extending
> Objects and Arrays.
>
> I have searched about this problem and came across these two posts in
> the Google Maps group.
>
> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6776d9ffab859fa7/7854965c5bbd70a9?lnk=gst&q=prototype+js#7854965c5bbd70a9
>
> http://groups.google.com/group/Google-Maps-API/msg/8181afc4277d3991
>
> I was using Prototype to observe the document dom:loaded event to run
> a method which set up the Google Map, but this caused the following
> error:
>
> a has no properties
> http://maps.google.com/intl/en_ALL/mapfiles/108/maps2.api/main.js
> Line 50
> function Yb(a){var b;while(b=a.firstChild){Xb(b);a.removeChild(b)}}
> Yb(null)main.js (line 50)
> R(null, Object)main.js (line 521)
> xx(null, Object)main.js (line 1619)
>
> When I use the onload event hook inside of the body tag it seems to
> work better (although Firebug reports recursion warnings).
>
> Does anyone know how to use Prototype and Google Maps together without
> these errors.
>
> Thanks
>
> Josh
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to