[OpenLayers-Users] layer WMS don't redraw

Marc-André Trottier trottier.marcandre at gmail.com
Mon Nov 4 05:53:21 PST 2013


oh ho !
it's working fine.
i missed this.
better solution than mine :

wmsLayer.setVisibility(false);
wmsLayer.setVisibility(true);

now, why 'true' is needed now ?




2013/11/1 Alexandre Dubé <adube at mapgears.com>

>  Hi Marc-André,
>
>   Have you tried forcing the layer to redraw using the force parameter ?
>
>
> http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw
>
>   wmsLayer.redraw(true);
>
> HTH,
>
> Alexandre
>
>
>
> On 13-10-31 09:49 AM, Marc-André Trottier wrote:
>
> i'm using :
> -OL 2.13.1
> -a wms layer
> -the function redraw().
>
>  the problem : the function don't redraw the layer. I watched the code in
> lib\OpenLayers\Layer.js line 570 and this launch the trigger 'moveend' of
> the wms layer but it do not exist.
>
>  is it normal ?
>
>  Marc-André T.
>
>
> _______________________________________________
> Users mailing listUsers at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131104/cc15ef23/attachment.html>


More information about the Users mailing list