[fusion-commits] r2573 - in trunk/widgets: . widgetinfo
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Aug 31 00:19:16 PDT 2012
Author: liuar
Date: 2012-08-31 00:19:16 -0700 (Fri, 31 Aug 2012)
New Revision: 2573
Added:
trunk/widgets/widgetinfo/GoogleStreetViewer.xml
Modified:
trunk/widgets/GoogleStreetViewer.js
trunk/widgets/widgetinfo/cursorposition.xml
Log:
On behalf of Ted Yang.
fix the ticket 2101: http://trac.osgeo.org/mapguide/ticket/2101
The submission is mainly implement the RFC 125:http://trac.osgeo.org/mapguide/wiki/MapGuideRfc125
part 3:
1. dd is not valid cs code in cursorposition.xml, fix it with EPSG:4326
2. the globalization text initialized position should be refined
3. fix the problem miss to add file GoogleStreetViewer.xml
Modified: trunk/widgets/GoogleStreetViewer.js
===================================================================
--- trunk/widgets/GoogleStreetViewer.js 2012-08-28 08:36:34 UTC (rev 2572)
+++ trunk/widgets/GoogleStreetViewer.js 2012-08-31 07:19:16 UTC (rev 2573)
@@ -40,8 +40,8 @@
hoverStrokeWidth: 0.2
},
directionLength: 22,
- csTransformErrorMessage: OpenLayers.i18n("googleSteetViewCSTransformError"),
- serviceUnavailableMessage: OpenLayers.i18n("googleSteetViewNotAvailableError"),
+ csTransformErrorMessage: null,
+ serviceUnavailableMessage: null,
/*
* Constructor: GoogleStreetViewer
@@ -52,7 +52,10 @@
*
*/
initializeWidget: function(widgetTag) {
-
+
+ this.csTransformErrorMessage = OpenLayers.i18n("googleSteetViewCSTransformError");
+ this.serviceUnavailableMessage = OpenLayers.i18n("googleSteetViewNotAvailableError");
+
this.targetCs = new OpenLayers.Projection("EPSG:4326");
var json = widgetTag.extension;
this.targetWindow = json.Target ? json.Target[0] : "TaskPane";
Added: trunk/widgets/widgetinfo/GoogleStreetViewer.xml
===================================================================
--- trunk/widgets/widgetinfo/GoogleStreetViewer.xml (rev 0)
+++ trunk/widgets/widgetinfo/GoogleStreetViewer.xml 2012-08-31 07:19:16 UTC (rev 2573)
@@ -0,0 +1,52 @@
+<WidgetInfo>
+ <Type>GoogleStreetViewer</Type>
+ <LocalizedType>Google StreetViewer</LocalizedType>
+ <Description>This widget is used to show Google StreetView on the map</Description>
+ <Location></Location>
+ <Label>Google StreetView</Label>
+ <Tooltip>Click to show Google StreetView</Tooltip>
+ <StatusText></StatusText>
+ <ImageUrl>../../../widgets/GoogleStreetViewer/GoogleStreetView.png</ImageUrl>
+ <StandardUi>true</StandardUi>
+ <ContainableBy>Any</ContainableBy>
+ <Parameter>
+ <Name>Target</Name>
+ <Label>Target</Label>
+ <Type>target</Type>
+ <Description>The frame, window, or TaskPane in which to display Google StreetView for the widget. If empty, a new window is used</Description>
+ <IsMandatory>true</IsMandatory>
+ <DefaultValue>TaskPane</DefaultValue>
+ </Parameter>
+ <Parameter>
+ <Name>SymbolLayerName</Name>
+ <Label>Symbol Layer Name</Label>
+ <Description>The name of layer that shows the navigator symbol on map</Description>
+ <Type>string</Type>
+ <IsMandatory>false</IsMandatory>
+ <DefaultValue>GoogleStreetViewerSymbolLayer</DefaultValue>
+ </Parameter>
+ <Parameter>
+ <Name>ShowDirection</Name>
+ <Label>Show Direction</Label>
+ <Type>boolean</Type>
+ <Description>Whether to show a line to describe the current direction of the camera</Description>
+ <IsMandatory>false</IsMandatory>
+ <DefaultValue>true</DefaultValue>
+ </Parameter>
+ <Parameter>
+ <Name>DirectionLength</Name>
+ <Label>Direction Line Length</Label>
+ <Type>integer</Type>
+ <Description>The length of the line to describe the current direction of the camera</Description>
+ <IsMandatory>false</IsMandatory>
+ <DefaultValue>22</DefaultValue>
+ </Parameter>
+ <Parameter>
+ <Name>AdditionalParameter</Name>
+ <Description>A list of key/value pairs that will be added to the URL</Description>
+ <Type>XML</Type>
+ <Label>Additional parameter</Label>
+ <DefaultValue></DefaultValue>
+ <IsMandatory>false</IsMandatory>
+ </Parameter>
+</WidgetInfo>
Modified: trunk/widgets/widgetinfo/cursorposition.xml
===================================================================
--- trunk/widgets/widgetinfo/cursorposition.xml 2012-08-28 08:36:34 UTC (rev 2572)
+++ trunk/widgets/widgetinfo/cursorposition.xml 2012-08-31 07:19:16 UTC (rev 2573)
@@ -29,7 +29,7 @@
<Type>string</Type>
<Label>DisplayProjection</Label>
<Description>The projection to display mouse coordinates in. This can be an EPSG code (EPSG:XXXX) or a WKT string. This parameter takes precedence over the Units parameter if specified</Description>
- <DefaultValue>dd</DefaultValue>
+ <DefaultValue>EPSG:4326</DefaultValue>
<IsMandatory>0</IsMandatory>
</Parameter>
<Parameter>
More information about the fusion-commits
mailing list