[Commits] r1724 - sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets

commits at geoext.org commits at geoext.org
Tue Jan 12 20:10:05 CET 2010


Author: cmoullet
Date: 2010-01-12 20:10:05 +0100 (Tue, 12 Jan 2010)
New Revision: 1724

Modified:
   sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
Log:
global variables...

Modified: sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js	2010-01-12 18:05:56 UTC (rev 1723)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js	2010-01-12 19:10:05 UTC (rev 1724)
@@ -13,10 +13,10 @@
  */
 Ext.namespace('GeoExt.ux');
 
-/** private: property[scriptSource]
+/** private: property[scriptSourceGoogleEarth]
  *  ``String``  Source of this script: complete URL
  */
-var scriptSource = (function() {
+var scriptSourceGoogleEarth = (function() {
     var scripts = document.getElementsByTagName('script'),
             script = scripts[scripts.length - 1];
 
@@ -392,7 +392,7 @@
                 // Vector layer
                 this.earthLayer = new OpenLayers.Layer.Vector("Google Earth Navigation");
                 this.map.addLayer(this.earthLayer);
-                var baseUrl = scriptSource.replace('/ux/widgets/GoogleEarthPanel.js', '');
+                var baseUrl = scriptSourceGoogleEarth.replace('/ux/widgets/GoogleEarthPanel.js', '');
                 // Camera and lookAt points to display
                 this.features = [
                     new OpenLayers.Feature.Vector(null, {role: 'line'}, {strokeColor: '#ff0000',



More information about the Commits mailing list