I have an application in which I want to perform a HTTP request (which will handle some map transformations) before starting fetching WMS tiles from server.
How can I do a jQuery.post() before openlayers starts requesting WMS tiles?
I tried it in map.on('moveend') event but it seems that it is too late. I've done some tweaks to make the layer not visible on 'moveend' event, perform the jQuery.post() and then making the layer visible again.
But as I said 'moveend' event is too late, the requests are performed before the layer is invisible.
أكثر...
How can I do a jQuery.post() before openlayers starts requesting WMS tiles?
I tried it in map.on('moveend') event but it seems that it is too late. I've done some tweaks to make the layer not visible on 'moveend' event, perform the jQuery.post() and then making the layer visible again.
But as I said 'moveend' event is too late, the requests are performed before the layer is invisible.
أكثر...