[Commits] r1729 - sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets
commits at geoext.org
commits at geoext.org
Wed Jan 13 07:57:57 CET 2010
Author: cmoullet
Date: 2010-01-13 07:57:57 +0100 (Wed, 13 Jan 2010)
New Revision: 1729
Modified:
sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
Log:
add baseUrl as api config
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js 2010-01-12 20:38:34 UTC (rev 1728)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js 2010-01-13 06:57:57 UTC (rev 1729)
@@ -189,6 +189,11 @@
*/
readPermalink: true,
+ /** private: property[baseUrl]
+ * ``String`` base url of this directory resources necessary to get the images
+ */
+ baseUrl: scriptSourceGoogleEarth.replace('/ux/widgets/GoogleEarthPanel.js', ''),
+
/** private: method[initComponent]
* Private initComponent override.
*/
@@ -392,7 +397,6 @@
// Vector layer
this.earthLayer = new OpenLayers.Layer.Vector("Google Earth Navigation");
this.map.addLayer(this.earthLayer);
- 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',
@@ -400,7 +404,7 @@
pointRadius: 6}),
new OpenLayers.Feature.Vector(null, {role: 'lookAt'}, {pointRadius: 8,
fillColor: '#ff0000'}),
- new OpenLayers.Feature.Vector(null, {role: 'camera'}, {externalGraphic: baseUrl + '/resources/eye.png',
+ new OpenLayers.Feature.Vector(null, {role: 'camera'}, {externalGraphic: this.baseUrl + '/resources/eye.png',
graphicHeight: 18,
graphicWidth: 31,
graphicYOffset: -3,
More information about the Commits
mailing list