[OpenLayers-Users] vector layer visibility or z-order with image layer

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 26 06:01:22 EST 2008


On Tue, Feb 26, 2008 at 02:51:21AM -0700, MilesTogoe wrote:
> I'm now working with svn trunk as it seems to fix some previous issues 
> and my image layer is now correctly bounded, projected with long/lat  - 
> however, if I have an image layer and add a vector layer, the vector 
> features are not showing and the vector layer is "grayed" out in the 
> layer switcher.  If the layers are added as such:
> map.addLayers([graphic,vlayer]); 
> the vector layer should be on top, correct ?  Does some visibility 
> switch need to be set ?  Any ideas ? 

I bet you're setting your maxExtent, maxResolution, etc. on the image
layer and not on the map. If so, either 1. set them on the map as well,
or 2. set them on the vector layer as well.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list