On Fri, Oct 28, 2011 at 8:40 AM, Robert Buckley <[email protected]> wrote: > Hi, > after taking my application apart and rebuilding line by line testing the > results as I went along I found that when I replaced this line > maxExtent: new OpenLayers.Bounds(772338.842959, 6576723.127095, > 1567283.936983, 7127069.730649), > ..with > maxExtent: new OpenLayers.Bounds(-20037508, -20037508,20037508, > 20037508.34), > ...everything lined-up and worked as wanted. > > The bounds in the first line where an attempt to restrict my map area to > this extent, which were then followed by an restrictedExtent. > Could anyone please explain to me why these bounds had such a devastating > affect on the output of my geowebcache layer so that I can understand this > better?
My understanding is that both OL and GWC use the gridset's lower left corner coordinate as tile origin, so that when a tile is requested by its geographic bounds, gwc can steadily determine which tile index those bounds correspond to. Alternatively you can set the tileOrigin property of the OpenLayers layer to that point, so that it requests matching tiles. Cheers, Gabriel > yours, > Rob > ________________________________ > Von: GeoGEOrge <[email protected]> > An: [email protected] > Gesendet: 14:55 Donnerstag, 27.Oktober 2011 > Betreff: Re: [Geoserver-users] Geowebcache in openlayers problem > > I am trying to do something similar, without much success. > you might see if this is related to your problem: > > It is, however, very possible to create an OpenLayers application that > caches tiles; just make sure that the tileorigin aligns with the gridset. > from: http://docs.geoserver.org/latest/en/user/geowebcache/using.html > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Geowebcache-in-openlayers-problem-tp6936192p6936229.html > Sent from the GeoServer - User mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
