[OpenLayers-Users] layers drawing order

Christopher Schmidt crschmidt at metacarta.com
Thu Apr 10 17:14:47 EDT 2008


On Thu, Apr 10, 2008 at 10:51:10PM +0200, Guillaume Sueur wrote:
> Hi,
> Is there a way to render the layers in another order than their original 
> add-to-map order ? Something like priority on each of them ?
> Most of the time, the bottom layer is a tiled layer that makes you wait 
> while the surrounding tiles are loading, and your "working layers" can 
> be interesting to render before that.

1. Use different hostnames for your different layers.
2.
http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer

(which is also lowerLayer, when passed a negative index)

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list