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

MilesTogoe miles.togoe at gmail.com
Tue Feb 26 12:51:25 EST 2008


Christopher Schmidt wrote:
> 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.
>   
Thks for the tip.  On the image we set the projection and bounds but 
didn't use maxExtent or maxResolution - but we'll experiment on setting 
some settings to the vector layer or map as well.  

> Regards,
>   




More information about the Users mailing list