[OpenLayers-Dev] Performance question

Eric Lemoine eric.c2c at gmail.com
Mon Jul 30 14:42:28 EDT 2007


On 7/30/07, Antonio Volpicelli <volpicelli at oato.inaf.it> wrote:
> Hi Eric,

Hi Antonio,

> I have about 50 requests per layer. This when I go up with the zoom.
> Now I am using the Mapserver class , probably I will switch to WMS.
> You told me about buffer:0 but I didn't find in the docs this parameter
> for the Mapserver class.
> I wrote a line like this:
>  layers[2] = new OpenLayers.Layer.MapServer( "AIS",
>                     wmsserver, {layers: 'AIS',format:
> "image/png",transparent: true,buffer:0});
> Is it correct?

No. 'buffer' is an option, not a URL parameter. Do this instead:

layers[2] = new OpenLayers.Layer.MapServer( "AIS",
    wmsserver, {layers: 'AIS',format:"image/png",transparent: true},
   {buffer:0});

--
Eric



More information about the Dev mailing list