[Commits] r1562 - in sandbox/cmoullet/ux/GoogleEarthPanel: examples ux/widgets
commits at geoext.org
commits at geoext.org
Sun Dec 6 06:14:28 CET 2009
Author: cmoullet
Date: 2009-12-06 06:14:28 +0100 (Sun, 06 Dec 2009)
New Revision: 1562
Modified:
sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.html
sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.js
sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.html
sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.js
sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
Log:
Improve permalink support. Make it autonomous.
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.html
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.html 2009-12-05 07:20:06 UTC (rev 1561)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.html 2009-12-06 05:14:28 UTC (rev 1562)
@@ -1,6 +1,6 @@
<html>
<head>
- <title>GeoExt StreetView Panel UX Example</title>
+ <title>GeoExt Google Earth Panel UX Example</title>
<script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" />
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.js
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.js 2009-12-05 07:20:06 UTC (rev 1561)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelExample.js 2009-12-06 05:14:28 UTC (rev 1562)
@@ -122,8 +122,4 @@
GoogleEarthPanel.add(googleEarthPanelItem);
GoogleEarthPanel.doLayout();
viewport.doLayout();
-
- var parameters = OpenLayers.Util.getParameters();
- var googleEarthPanelItemObj = Ext.getCmp("googleEarthPanelItem");
- googleEarthPanelItemObj.setPermalink(parameters);
});
\ No newline at end of file
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.html
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.html 2009-12-05 07:20:06 UTC (rev 1561)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.html 2009-12-06 05:14:28 UTC (rev 1562)
@@ -1,6 +1,6 @@
<html>
<head>
- <title>GeoExt StreetView Panel UX Example</title>
+ <title>GeoExt Google Earth Panel UX with WMS / WFS Example</title>
<script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" />
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.js
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.js 2009-12-05 07:20:06 UTC (rev 1561)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/examples/GoogleEarthPanelWmsExample.js 2009-12-06 05:14:28 UTC (rev 1562)
@@ -148,8 +148,4 @@
treePanel.doLayout();
GoogleEarthPanel.doLayout();
viewport.doLayout();
-
- var parameters = OpenLayers.Util.getParameters();
- var googleEarthPanelItemObj = Ext.getCmp("googleEarthPanelItem");
- googleEarthPanelItemObj.setPermalink(parameters);
});
\ No newline at end of file
Modified: sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js
===================================================================
--- sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js 2009-12-05 07:20:06 UTC (rev 1561)
+++ sandbox/cmoullet/ux/GoogleEarthPanel/ux/widgets/GoogleEarthPanel.js 2009-12-06 05:14:28 UTC (rev 1562)
@@ -155,6 +155,15 @@
*/
layerCache: {},
+ /** api: config[readPermalink]
+ * ``Boolean`` Read the permalink in the url if presents
+ */
+ /** private: property[readPermalink]
+ * ``Boolean`` Read the permalink in the url if presents
+ */
+
+ readPermalink: true,
+
/** private: method[initComponent]
* Private initComponent override.
*/
@@ -178,6 +187,12 @@
}
GeoExt.ux.GoogleEarthPanel.superclass.afterRender.call(this);
+ // Use the permalink
+ if (this.readPermalink) {
+ var parameters = OpenLayers.Util.getParameters();
+ this.setPermalink(parameters);
+ }
+
// http://code.google.com/apis/earth/documentation/reference/google_earth_namespace.html
if (!this.ge) {
google.earth.createInstance(this.body.dom, this.initCallback.createDelegate(this), this.failureCallback.createDelegate(this));
More information about the Commits
mailing list