But then how do I know, when the data has been loaded?
>From all I read about the "JSON-Method" I think I do need that
processData() instruction inside the JSON file, otherwise nothing will
happen.
Sorry for being slightly off topic, but I am stuck with my google maps
application without it.
Do you happen to know a better place to ask that javascript/JSON
question?
On 24 Sep., 11:31, marcelo <[EMAIL PROTECTED]> wrote:
> You need to move the processData() instruction outof the JSON file,
> making it a passive data only file, and then call processData() in
> your main script, if the data has been loaded.
>
> Something like this:
>
> // JSON file
> myData = {
> lat:50.28609,
> lon:11.042236,
> comment:"This is a test page."
>
> }
>
> // In the main script
> if (typeof myData != 'undefined') {
> processData(myData);
>
> }
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---