[OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2
Lance Dyas
lancelot at inetnebr.com
Tue May 8 19:48:43 EDT 2007
Christopher Schmidt wrote:
> On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote:
>
>> Hello everyone,
>>
>> I'm getting a strange effect if I use a Mercator projection WMS server with a
>> bounding box which can take negative values in 2.4rc3 or the SVN version,
>> which I didn't get in 2.2.
>>
>> Looking at the URL constructed to get the tiles, it appears to be URL-encoding
>> the commas which messes up the bbox.
>>
>> i.e. the URL I get for the tiles in 2.4-rc3 is something like:
>>
>> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000
>> &WIDTH=500&HEIGHT=500
>>
>> rather than in 2.2:
>>
>> http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000
>> &WIDTH=500&HEIGHT=500
>>
>> Is this a bug or am I doing something wrong?
>>
>
> This is a change, but not a bug. In general, I'd expect that your server
> code would take care of converting this for you. I'm really surprised
> that it doesn't. (What are you using for CGI?)
>
There are quite a few WMS servers out there who can't handle url
encoding the way you might expect them
to point in fact only encoding the individual Layer Names seems to work
better with the largest number
of WMS servers in the wild. I modified the OpenLayers I am using (in
TNTmap) to only escape the layer names
when I started running into problems like the above.
More information about the Users
mailing list