[OpenLayers-Users] Updating URL before sending to server

Christian López Espínola penyaskito at gmail.com
Thu Sep 11 05:09:44 EDT 2008


Hi Kumar,

On Thu, Sep 11, 2008 at 9:18 AM, Kumar Mettu <mksreddy at yahoo.com> wrote:
>
> Richard,
>
>  I am looking for a way to modify the URL Path. In this case bbox value
> need to be part of request URI rather than a parameter.
>  Is there a way to do that?

You could create a new layer class, that inherits from the layer that
you're using, and modify its getUrl method.

This is explained in the wiki,
http://trac.openlayers.org/wiki/YourOwnThirdPartyLayer

HTH

> Thanks,
> Kumar.
>
> Richard Greenwood wrote:
>>
>> 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
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Updating-URL-before-sending-to-server-tp19248864p19429195.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Cheers,

Christian López Espínola <penyaskito>


More information about the Users mailing list