How can I open a kmz file with Google's GEplugin?

1.1k views Asked by At

I've opened a kml file with sharpkml and GEplugin but I was wondering how to open a kmz file with it.

Anyone knows how to do it?

1

There are 1 answers

0
CramerTV On

I'm not sure how to do it using sharpkml but the GE plugin API includes the function fetchKml to load kml and kmz files.

Below is the code (from code samples playground: I changed the link to use an example kmz file from this sample page.)

var url = 'http://kml-samples.googlecode.com/svn/trunk/kml/Region/GroundOverlay/usa-ca-sf.kmz';

google.earth.fetchKml(ge, url, finished);

Using the winforms geplugin library I use the wrapper function FetchKml: geWebBrowser1.FetchKml("http://" + sServerIP + "//sample.kmz");