Thanks, that helps. I have used dropbox to host my file. However, the showing up of the KML layer is inconsistent. Sometimes it shows but other times it is simply failing to show up. No errors are shown. Also, if I debug I can see the KML layer added to the map but the loaded property is 'false'. If I use the dropbox link to open up the KML file in google earth, I can see the features.
What might prevent it from loading sometimes?
Thanks again.