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