[OpenLayers-Users] wms untiled 'busy loading' message or image

Erik Uzureau erik.uzureau at metacarta.com
Tue Jul 10 17:52:48 EDT 2007


Arf. Yes, Josh is right. you will have border cases, in which case
this isnt very useful.

If you want cached tiles, however... you will always have this gridded case.

Erik

On 7/10/07, Josh Livni <josh at livniconsulting.com> wrote:
> It seems to me that it's still possible, with a tilesize far great than
> the viewport size, you may end up loading 4 tiles.  Such as if you
> happened to be looking at an area where four (very large) tiles came
> together.
>
> I may well be missing something obvious though (including, at the very
> least, why it's important to only load exactly one tile).
>
>   -Josh
>
>
> Erik Uzureau wrote:
> > Good answer Tim.
> >
> > Does that make sense, Trond?
> >
> >
> > If you set the buffer to 0, then OL wont pre-load any tiles that are
> > outside the bounds of the viewport of the map.... therefore, if you
> > set a tile size that is bigger than the viewport, you will always only
> > be loading one tile... and since you're still in normal gridded mode,
> > you will be snapping to grid and benefit from cacheing.
> >
> >
> >
> > On 7/10/07, Tim Schaub <noreply at geocartic.com> wrote:
> >
> >> Trond Michelsen wrote:
> >>
> >>> On Tue, Jul 10, 2007 at 11:23:29AM -0500, Erik Uzureau wrote:
> >>>
> >>>> :-) So the good news is that the essential part of the patch that I'm
> >>>> working on is to bring the Gridded and Untiled layers back together.
> >>>>
> >>>> Instead of declaring your layer as OpenLayers.WMS.Untiled, you will
> >>>> simply declare it OpenLayers.WMS and pass it an option { singleTile:
> >>>> true }
> >>>>
> >>> Great news.
> >>>
> >>> One thing, though :)
> >>>
> >>> Would it be possible to make the singletile-version have a "snap to
> >>> grid"-functionality, so that even the singletiles can be cached?
> >>>
> >>>
> >> Try a layer with a very big tile size and zero buffer if you want to
> >> cache big tiles.
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >>
> >>
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>



More information about the Users mailing list