Hi Marc-André,
A request url which is exactly the same as one previously sent can
(or will?) be prevented from being sent by the browser.
Take a look at the redraw method to see what it does when receiving
the 'force' parameter to true:
https://github.com/openlayers/openlayers/blob/v2.13.1/lib/OpenLayers/Layer/HTTPRequest.js#L135
It adds a "_olSalt" parameter equals to Math.random(), which make
sure that the request url is deferent than the one previously sent, thus
allowing it to be sent properly.
HTH,
Alexandre
On 13-11-04 08:53 AM, Marc-André Trottier wrote:
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é <ad...@mapgears.com <mailto:ad...@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 <tel:13-10-31%2009>: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 list
us...@lists.osgeo.org <mailto:us...@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Alexandre Dubé
Mapgears
www.mapgears.com <http://www.mapgears.com>
_______________________________________________
Users mailing list
us...@lists.osgeo.org <mailto:us...@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Alexandre Dubé
Mapgears
www.mapgears.com
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users