[OpenLayers-Users] How to show "nothing" when a tile is not found with TileCache

Jay Douillard jay.douillard at ubc.ca
Tue Jun 23 12:08:03 EDT 2009


OpenLayers.Util.onImageLoadErrorColor = "transparent";



----- Original Message -----
From: "Linde Ackermans" <roselinda.ackermans at ec.europa.eu>
To: users at openlayers.org
Sent: Tuesday, June 23, 2009 6:00:41 AM GMT -08:00 US/Canada Pacific
Subject: [OpenLayers-Users] How to show "nothing" when a tile is not found with TileCache


Hi all,

I defined my layers with OpenLayers.TileCache

f.i. 
	var l1= new OpenLayers.Layer.TileCache("xxx", 
            ["http://xx.xx.xx.xx/tilecache/cache/",
             "l1",
             {scales: Scales, resolutions: Resolutions,
              buffer:0, format:"image/png", isBaseLayer:false},
             );

Say I have a base layer l0, extent = europe.
I want to overlay l1, but this layer only contains detailed information on
capital cities, on a very high scale.
I do not want to make a cache for layer l1 for the whole extent of the base
layer ( would be too much ), but only for a few selected rectangles.
How can I do this ? How can I show "nothing" for tiles not found ? ( Or an
empty tile which is transparent ? )
Thanks for any help.
Linde

-- 
View this message in context: http://n2.nabble.com/How-to-show-%22nothing%22-when-a-tile-is-not-found-with-TileCache-tp3142295p3142295.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list