[Commits] r2330 - core/trunk/geoext/lib/GeoExt/widgets
commits at geoext.org
commits at geoext.org
Fri Sep 10 16:02:47 CEST 2010
Author: ahocevar
Date: 2010-09-10 16:02:47 +0200 (Fri, 10 Sep 2010)
New Revision: 2330
Modified:
core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
Log:
bind a LayerStore provided as layers property to the MapPanel. r=pgiraud (closes #293)
Modified: core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js 2010-09-10 13:58:05 UTC (rev 2329)
+++ core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js 2010-09-10 14:02:47 UTC (rev 2330)
@@ -126,6 +126,9 @@
map: this.map
});
}
+ if(!this.layers.map) {
+ this.layers.bind(this.map);
+ }
if(typeof this.center == "string") {
this.center = OpenLayers.LonLat.fromString(this.center);
More information about the Commits
mailing list