[OpenLayers-Users] Displaying Multiple Layers from Mapserver

ajayravichandran ajayr.email at gmail.com
Tue Dec 30 15:36:41 EST 2008


Hey Suresh

I believe you can set an option called isBaseLayer: true (or false)
depending on whether you want a layer to be a base layer or not.

Regards

Ajay


Suresh wrote:
> 
> Hello!
> 
> New Year Wishes to you.
> 
> I have started using Openlayers two days back. I am using UMN Mapserver
> (accessing shape files) and Openlayers. I have spent past two days trying
> to display multiple layers in Openlayers. I am using the following code to
> create layer
>    var layer1 = new OpenLayers.Layer.MapServer( "IOS1",
> "http://localhost/cgi-bin/mapserv.exe", {map:    
>    '/ms4w/apache/htdocs/sitedatabase/Om5.map'},{gutter: 15});
> When I create the second layer with mapserver (with a different mapfile),
> it is treated as another base layer by Openlayers. As a result, a user can
> select one of them. This does not solve the purpose. I would like it to be
> the Overlay layer so that users can select them depending on the
> requirements.
> 
> An early help would be great.
> 
> Thanks
> 

-- 
View this message in context: http://n2.nabble.com/Displaying-Multiple-Layers-from-Mapserver-tp2092406p2093901.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list