[Commits] r376 - in apps/opengeo/geoexplorer/trunk: lib theme
commits at geoext.org
commits at geoext.org
Mon Apr 13 22:18:51 CEST 2009
Author: dwins
Date: 2009-04-13 22:18:51 +0200 (Mon, 13 Apr 2009)
New Revision: 376
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css
Log:
Replace dummy legend panel with a real one.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-13 20:15:05 UTC (rev 375)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-13 20:18:51 UTC (rev 376)
@@ -96,6 +96,7 @@
var layersContainer = new Ext.Panel({
autoScroll: true,
border: false,
+ region: 'center',
title: "Layers",
anchor: "100%, -200",
items: [{
@@ -115,16 +116,21 @@
})]
});
- var legendContainer = new Ext.Panel({
+ var legendContainer = new GeoExt.LegendPanel({
title: "Legend",
border: false,
+ region: 'south',
height: 200,
- items: [{html: ""}]
+ collapsible: true,
+ split: true,
+ autoScroll: true,
+ map: this.map,
+ childDefaults: {border: false, cls: 'legend-title'}
});
var westPanel = new Ext.Panel({
border: true,
- layout: "anchor",
+ layout: "border",
region: "west",
width: 250,
split: true,
Modified: apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css
===================================================================
--- apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css 2009-04-13 20:15:05 UTC (rev 375)
+++ apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css 2009-04-13 20:18:51 UTC (rev 376)
@@ -36,4 +36,12 @@
.icon-pan {
background-image: url(img/geosilk/pan.png) !important;
-}
\ No newline at end of file
+}
+
+.legend-title label {
+ font-family: tahoma,arial,verdana,sans-serif;
+ font-size: 11px;
+ margin-top: 1em;
+ margin-left: 20px; /* Default GS legend swatch size */
+ font-weight: bold;
+}
More information about the Commits
mailing list