[fusion-commits] r2403 - in trunk: text widgets/Measure

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jun 14 11:14:08 EDT 2011


Author: jng
Date: 2011-06-14 08:14:08 -0700 (Tue, 14 Jun 2011)
New Revision: 2403

Modified:
   trunk/text/en
   trunk/widgets/Measure/Measure.css
   trunk/widgets/Measure/Measure.php
Log:
First official submission. Improve the usability of the Measure widget by including localizable usage instructions in the Measure UI

Modified: trunk/text/en
===================================================================
--- trunk/text/en	2011-06-14 08:53:58 UTC (rev 2402)
+++ trunk/text/en	2011-06-14 15:14:08 UTC (rev 2403)
@@ -134,6 +134,7 @@
 MEASUREPARTIAL          = Partial
 MEASURETOTAL            = total
 MEASURELAYER            = Measure
+MEASUREHINT             = To measure multiple distances, continue clicking new points. To finish, double click on the last point. You can cancel and restart the measuring by pressing the ESC key.
 
 # FeatureInfoUI
 FEATUREINFOTITLE        = Feature Information

Modified: trunk/widgets/Measure/Measure.css
===================================================================
--- trunk/widgets/Measure/Measure.css	2011-06-14 08:53:58 UTC (rev 2402)
+++ trunk/widgets/Measure/Measure.css	2011-06-14 15:14:08 UTC (rev 2403)
@@ -6,6 +6,12 @@
     border: 0px;
 }
 
+#MeasurementWidgetResults p {
+    font-size: 11px;
+    margin: 0px;
+    padding: 10px;
+}
+
 .divMeasureMarker {
   position: absolute;
   background-color: #fff;

Modified: trunk/widgets/Measure/Measure.php
===================================================================
--- trunk/widgets/Measure/Measure.php	2011-06-14 08:53:58 UTC (rev 2402)
+++ trunk/widgets/Measure/Measure.php	2011-06-14 15:14:08 UTC (rev 2403)
@@ -38,6 +38,7 @@
     $locale = GetDefaultLocale();
   }
 
+  $hint = GetLocalizedString('MEASUREHINT', $locale);
   $type = $_REQUEST['type'];
   switch ($type) {
       case 1:
@@ -73,6 +74,8 @@
 </head>
 <body id="MeasurementWidgetResults">
     <h1><?php echo $title ?></h1>
+    <hr />
+    <p><?php echo $hint ?></p>
     <table id="MeasurementWidgetResultsTable" border="0" cellspacing="5" cellpadding="5">
 <?php if ($type & 1): ?>
         <thead>



More information about the fusion-commits mailing list