earthoutreach / earth-api-utility-library

Automatically exported from code.google.com/p/earth-api-utility-library
0 stars 0 forks source link

displayKml() does not work #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gex.util.displayKml(url)

fix: line 4750

var pluginInstance = this.pluginInstance;
    google.earth.fetchKml(this.pluginInstance, url, function(kmlObject) {
        if (kmlObject) {
            pluginInstance.getFeatures().appendChild(kmlObject);
        }
    });

instead of
    google.earth.fetchKml(this.pluginInstance, url, function(kmlObject) {
        if (kmlObject) {
            this.pluginInstance.getFeatures().appendChild(kmlObject);
        }
    });

Original issue reported on code.google.com by Eugene.F...@gmail.com on 10 Jun 2009 at 9:55

GoogleCodeExporter commented 9 years ago
Ah, typical failure on my part to be careful with closures. Fixed in trunk, 
thanks!

Original comment by api.roman.public@gmail.com on 10 Jun 2009 at 9:20