Hmmm. Cant quiet figure out how and what you mean... Well, guess I
have to give up... Thanks anyyway :-|

On 21 Jun., 15:02, Rossko <[email protected]> wrote:
> > Where do I go wrong?
>
> You created your customicons[] in local scope in your load() function.
>     var customicons = ....
> When load() has finished, customicons ceases to exist too.
> GDownLoadUrl is asynchronous, meaning that the data request is kicked
> of during load() but the data comes back much later, after load() has
> finished.
>
> You can make your customicons global in scope, by defining outside of
> load()
>    var customicons = [];
> and then populating it later within load()
>    customicons["course2"] = ....
>
> I think you might run into similar scope issues with 'map'

-- 
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