[OpenLayers-Users] Supress loading of surrounding tiles?
Swärd Mårten
marten.sward at smhi.se
Tue Sep 15 09:57:58 EDT 2009
Sweet! Thanks! That was exactly what I was looking for, that will make a huge difference.
Best regards, Mårten
************************************************************************
Mvh:
Mårten Swärd
Systemutvecklare/Webbutvecklare, ITs
SMHI, Sveriges Meteorologiska och Hydrologiska Institut
Tel: +46 11 495 8469
________________________________
Från: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] För Kenneth Skovhede, GEOGRAF A/S
Skickat: den 15 september 2009 15:43
Till: users at openlayers.org
Ämne: Re: [OpenLayers-Users] Supress loading of surrounding tiles?
You can also set buffer to 0:
http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/Grid-js.html
Regards, Kenneth Skovhede, GEOGRAF A/S
Ingo Weinzierl skrev:
Hi Swärd,
On Tuesday 15 September 2009 15:26:59 Swärd Mårten wrote:
Hi folks!
Is there any way to get OL not to fetch the surrounding tiles( the one
that's not shown on the current view) from the WMS?
I think you can set the singleTile property of the WMS-layer to 'true', so
that only one tile will be fetched from the server.
We are using OL to show a map (not zoomable and no panning), just a
straight map, and therefor there is no need for OL to load the surrounding
tiles. The map that is shown is aproxomatly 2*2 tiles but if I look with
FireBug the application fetches more than 30 surrounding tiles witch is
quite unneccessary..
Best regards, Mårten
Regards,
Ingo
________________________________
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090915/a6e970e1/attachment.html
More information about the Users
mailing list