This content has been marked as final.
Show 1 reply
-
1. Re: PDMarker and other scripts are incompatible with rich:gm
irun5k Jul 30, 2008 4:13 PM (in response to irun5k)For anybody searching the archives for this problem, I have to following solution to offer:
Since you can't include scripts via loadScript that reference objects from the Google Map API (since it hasn't been loaded at that point) you have to play a trick or two.
In the oninit of your rich:gmap component, you can make an AJAX request to the server to get your javascript file, and on the callback, eval it. Because, at this point the Map API *has* been loaded so your script should be fine even if it does things like prototyping GMarker or something.