On Wednesday, January 12, 2011, Matt Priour <[email protected]> wrote: > Given the change in the way layers configured in the map panel are loaded in > the map: > > (http://trac.geoext.org/wiki/Release/1.0/Notes): "Layers configured in the > MapPanel's layers property won't be added to the map before it is rendered. > This is a behavioral change that may require changes in code that relies on > a layer's map property before the map is rendered." > > Are there plans to change the internal GeoExt code so that components which > rely on the layer's map property are initialized after the layer is added to > the map or instead use the GeoExt.MapPanel.guess() and its map property. > > I recently ran into this problem when attempting to use a GridPanel > configured with a FeatureStore and a FeatureSelectionModel. I'm sure other > components also have this issue. I solved it by manually binding the > FeatureStore and FeatureSelectionModel in an 'afterrender' listener for the > MapPanel.
Would that solve the issue if these components could be optionally be configured with a Map or a MapPanel? -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
