I am creating a KMZ file as output from my program (using SharpKML). How can I set the initial view so that when this file is opened in Google Earth it centres and zooms around my data?
When I open a KML file in GE this behaviour is by default, but when I open my KMZ the browser just opens to the default whole world view centred on users country. If I double click the main KML within my KMZ file, then I get the correct zoom and centering around my data. How can I make this happen automatically when Google Earth loads the KMZ?
Thanks.
I used to open my kmz files in Javascript and they would center automatically, but now as of a few weeks ago, my maps open up above the north pole. I created the kmz files so long ago I don't want to look at them or edit them. Is there some code I can add so that it works like it did before? I had before my open code
this bogus looking code that does not seem to initialze anything, but worked