[Commits] r1518 - in sandbox/cmoullet/ux/StreetViewPanel: examples ux/widgets
commits at geoext.org
commits at geoext.org
Sun Nov 29 07:24:05 CET 2009
Author: cmoullet
Date: 2009-11-29 07:24:05 +0100 (Sun, 29 Nov 2009)
New Revision: 1518
Modified:
sandbox/cmoullet/ux/StreetViewPanel/examples/StreetViewPanelExample.js
sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js
Log:
Typos + hide panorama when not useful
Modified: sandbox/cmoullet/ux/StreetViewPanel/examples/StreetViewPanelExample.js
===================================================================
--- sandbox/cmoullet/ux/StreetViewPanel/examples/StreetViewPanelExample.js 2009-11-29 06:17:03 UTC (rev 1517)
+++ sandbox/cmoullet/ux/StreetViewPanel/examples/StreetViewPanelExample.js 2009-11-29 06:24:05 UTC (rev 1518)
@@ -95,7 +95,7 @@
id: "readme",
title: 'README',
margins: {left: 5,top: 5, bottom: 5, right: 5},
- html: '<p style="font-size:12pt;color:#15428B;font-weight:bold;margin:5">Click somwehere in the map to see a panorama.<br>If you click on one arrow, the video show will start and you will move every 2 seconds to a new position. You can stop the video show by clicking on an arrow.</p>'
+ html: '<p style="font-size:12pt;color:#15428B;font-weight:bold;margin:5">Click somewehere in the map to see a panorama.<br>If you click on one arrow, the video show will start and you will move every 2 seconds to a new position. You can stop the video show by clicking on an arrow.</p>'
}
]
});
Modified: sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js
===================================================================
--- sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js 2009-11-29 06:17:03 UTC (rev 1517)
+++ sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js 2009-11-29 06:24:05 UTC (rev 1518)
@@ -209,6 +209,7 @@
if (data) {
if (data.code == 600) {
this.deleteFeatures();
+ this.panorama.hide();
if (this.panorama.videoMode && this.panorama.videoPlay) {
this.panorama.videoReady = true;
this.panorama.videoPlay = false;
@@ -217,6 +218,7 @@
alert(OpenLayers.i18n('Google Street View: No panorama found near this position. You have to click elsewhere ;-)'));
} else if (data.code == 500) {
this.deleteFeatures();
+ this.panorama.hide();
if (this.panorama.videoMode && this.panorama.videoPlay) {
this.panorama.videoReady = true;
this.panorama.videoPlay = false;
@@ -269,6 +271,7 @@
}
} else {
this.deleteFeatures();
+ this.panorama.hide();
if (this.panorama.videoMode && this.panorama.videoPlay) {
this.panorama.videoReady = true;
this.panorama.videoPlay = false;
More information about the Commits
mailing list