[OpenLayers-Dev] Reduce OpenLayers.Layer.Grid's buffer throughout

Marc Jansen jansen at terrestris.de
Thu Oct 7 17:37:10 EDT 2010


Hi jtm,

try to add

OpenLayers.Layer.Grid.prototype.buffer = 1;

to your script.

This is untested.

Regards,
Marc





Am 07.10.2010 23:23, schrieb joanne.mcgraw at sympatico.ca:
>
> I can't believe this is a question that no one has any ideas about. 
> It's more likely that I'm not posting these into the forum properly. I 
> seem to be the only person who has viewed my post (actually 2 posts 
> because I really did mess up the first time and posted a second time, 
> which may have been a mistake...who knows).
>
> Anyway, I'm trying a different approach this time and mailing directly 
> to 'dev at openlayers.org' rather than using the forum GUI. Could someone 
> just Reply All once and let me know if these are getting out there at all?
>
> Cheers
> jtm
>
> > Date: Wed, 6 Oct 2010 16:32:28 -0700
> > From: joanne.mcgraw at sympatico.ca
> > To: dev at openlayers.org
> > CC:
> > Subject: [OpenLayers-Dev] Reduce OpenLayers.Layer.Grid's buffer 
> throughout
> >
> >
> > I've seen the posts that show me how to reduce the buffer size to 1 
> when I am
> > adding an individual layer to my map. E.g. new OpenLayers.Layer.WMS(...,
> > {buffer: 1});
> >
> > Is there a way to change it for all of OpenLayers?
> >
> > I've tried:
> >
> > OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.Grid, {
> > buffer: 1
> > });
> >
> > And, although the prototype says buffer = 1 when the new object is being
> > initialized, in all the functions for the OpenLayers.Layer.Grid 
> object the
> > original buffer value of 2 is referenced through 'this'.
> >
> > Obviously, I'm doing this wrong.
> >
> > Any ideas what the correct way to approach this is?
> > --
> > View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Reduce-OpenLayers-Layer-Grid-s-buffer-throughout-tp5609405p5609405.html
> > Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20101007/51b18510/attachment.html


More information about the Dev mailing list