[Users] Refresh map or layers inside a Ext.Window
Max Demars
burton449geo at gmail.com
Fri Jan 10 21:43:40 CET 2014
Hi,
Im trying to refresh or redraw the OpenLayers.map (or some of its layers)
that is contained inside a Ext.Window withtout succes.
I thought that calling the OpenLayers.layer.redraw() would do the job but
no.
what is the proper way to do that?
This is how I use geoExt to generate the map:
var mapWindow = new Ext.Window({
title: "Map: Test",
x: 500,
y: 85,
height: 500,
width: 500,
layout: "fit",
collapsible: true,
closable: false,
bodyBorder: false,
shadowOffset: 6,
items: [{
xtype: "gx_mappanel",
map: map,
center: new OpenLayers.LonLat(0,0),
zoom: 0,
tbar: toolbarItems
}]
}).show();
Thank you
Max Demars
--
Stack Overflow: http://stackoverflow.com/users/1914034/burton449
GIS Overflow: http://gis.stackexchange.com/users/14426/burton449
LastFm: http://www.lastfm.fr/user/burton449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140110/50e53b16/attachment.htm
More information about the Users
mailing list