[Users] Refresh map or layers inside a Ext.Window
Christian Mayer
mayer at terrestris.de
Mon Jan 20 20:32:59 CET 2014
Hi Max,
although this is more an OpenLayers related question maybe we can help
you if you post some more code showing how your map is defined and how
you try to refresh which kind of layer.
In general it is correct to use OpenLayers.Layer.redraw
(http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.redraw)
Best regards
Chris
Am 10.01.2014 21:43, schrieb Max Demars:
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140120/b413fbb7/attachment.htm
More information about the Users
mailing list