> I've started a project using both the maps and search apis along with
> the epoly extension.   I wanted to try using the jsapi script call to
> load both apis with just one script call instead of two, e.g:
> <script src="http://www.google.com/jsapi?key=...></script>
> then:

The bit you missed out is your call of
   <script src="epoly.js" ...
which appears before
>   google.load("maps", "2");
>   google.load("search", "1");


Understand that epoly.js uses and modifies some google maps API
objects, like GPolygon.
So, clearly the google maps API needs to be loaded before epoly.

A first look might think you just need to move <script src="epoly.js"
to after the maps load request.  But that won't work either, because
you've chosen to use the asynchronous loader.
    google.load("maps", "2");
fires off a request, but doesn't stop and wait.  If it gets to <script
src="epoly.js" before the API comes back - which is very likely -
you'll get the same error.

You need to load epoly in sequence, by loading it in the API loaded
callback event.

Similar discussion -
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/cc759f56db4ce2b6/8df37bb98ae80f7b?lnk=gst&q=loader+callback#8df37bb98ae80f7b

It's in this search for your symptom -
http://groups.google.com/group/Google-Maps-API/search?q=epoly+gpolygon+not+defined&start=0&scoring=d&;

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to