[OpenLayers-Users] mapserver example
Christopher Schmidt
crschmidt at metacarta.com
Tue May 1 16:05:07 EDT 2007
On Tue, May 01, 2007 at 01:10:50PM -0600, J?nos Gonzales wrote:
> Hello,
> I'm trying to use the mapserver example included with OpenLayers 2.3.
> I modified mapserver.html to point to my map file and I added the
> layer name that I wanted.
>
> When I view mapserver.html in the browsers i get a bunch of pink
> tiles. If I try to see the source of each tile I get a URL like :
>
> http://localhost/cgi-bin/mapserv?map=mymap.map&LAYERS=states&MODE=map&MAP_IMAGETYPE=png&mapext=-11.25+33.75+0+45&imgext=-11.25+33.75+0+45&map_size=256+256&imgx=128&imgy=128&imgxy=256%2B256
>
> This gives an error loadForm(): Web application error. Not enough
> arguments for imgxy.
>
> However, if I replace all the %2B strings in the URL with plus signs
> + then the image works. What is up with that?
This is a known bug in OpenLayers 2.3. OpenLayers 2.4 fixes this bug. If
you can not use OpenLayers 2.4 for this application (it's currently in
late RC stage, and should be final soon), please reply, and I will
provide code which will fix this bug against 2.3.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list