[Users] MapPanel refresh after a wmcFormat.read()

Arnaud Jean-Charles a.jean-charles at valabre.com
Mon Jan 9 15:44:17 CET 2012


Hi all

I try to refresh my mappanel (inside a viewport) after :

var wmcFormat   = new OpenLayers.Format.WMC();

map.destroy();

var jsonFormat = new OpenLayers.Format.JSON();

var mapOptions = jsonFormat.read('{"allOverlays": true}');

map   = wmcFormat.read(context, {map: mapOptions}); 



The FireFox error is : layers is null in MapPanel.js (ligne 301)

 

And do I have to re-build all the GeoExt widgets (ScaleStore, LegendPanel,
OverviewMap.) which are bind to my map ??


Thanks for the help

Arno

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120109/ca495d8f/attachment.htm 


More information about the Users mailing list