[OpenLayers-Users] Updating URL before sending to server

Richard Greenwood richard.greenwood at gmail.com
Tue Sep 2 20:54:57 EDT 2008


On Sun, Aug 31, 2008 at 10:47 PM, Kumar Mettu <mksreddy at yahoo.com> wrote:
> Hi,
>
>   I am looking for a way to update the URL that is sent to server to get a
> tile. In simple terms I need to update the BBOX value based on actions
> performed by user in JavaScript.
>   I see OpenLayers has FAQ on related topic :
>  http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowcanIseetheURLstringthatOpenLayersissendingtoaWMSserver
>
> This is not of my much for what I want to do. Any help is appreciated.
>
> Thanks,
> Kumar.

Not sure if this would help in your case but look at mergeNewParams() e.g.

yourLayer.mergeNewParams({
   map_imagetype: "JPEG"
});

would change the the image type of yourLayer.

-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com



More information about the Users mailing list