AW: [OpenLayers-Users] Multiple TMS layers with different extents?
Arnd Wippermann
arnd.wippermann at web.de
Fri Apr 22 17:49:40 EDT 2011
You can try to set
maxExtent:new OpenLayers.Bounds(...),
in the options of your layers.
It does work for one TMS layer
http://gis.ibbeck.de/olclient/examples/TMS/WMS-C_at_different_resolutions.as
p
So there should no reason, that it not works for more than one TMS layer.
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Jason
Woolard
Gesendet: Donnerstag, 21. April 2011 22:38
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Multiple TMS layers with different extents?
I've seen a few posts on this topic but haven't been able to find a
solution.
I have multiple custom TMS layers overlaid on a Google Map and as I pan/zoom
around I'm getting tons of broken links (404 errors) for the image tiles
it's trying to pull down that don't actually exist. I understand it's using
the map extent and I've seen some older posts that stated different extents
for different TMS layers isn't yet available. I was wondering if this is
still true or if there is another way to solve the problem. The map works
fine on the surface but I can see the server logs filling up with 404 errors
for all the non-existent tiles.
Thanks in advance.
Jason
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list