[OpenLayers-Users] How do you represent multiple layers in a MapServer Query

Linda Rawson linda.rawson at gmail.com
Tue Feb 12 16:06:05 EST 2008


I think you need to change it to something like this:

var loadedMap = new OpenLayers.Layer.MapServer( "OpenLayers WMS",
"http://localhost:8085/cgi-bin/mapserv?map=/ms4w/apps/app/test.map",
{layers: states_poly,states_line},
{buffer: 0});

Linda
On Feb 12, 2008 12:54 PM, David H. McCoy <davidhmccoy at cox.net> wrote:

>
> I have this
>
> map=/ms4w/apps/app/test.map&layer=states_poly&layer=states_line&mode=map
>
> And I want this
>
> var loadedMap = new OpenLayers.Layer.MapServer( "OpenLayers WMS",
> "http://localhost:8085/cgi-bin/mapserv.exe",
> {map: '/ms4w/apps/app/test.map, layer:'states_poly,states_line',
> mode:'map',
> format: 'png', transparent:'false'},
> {layers: 'basic'},
> {gutter: 15});
>
>
>
> But it doesn't display. If you want to have multiple occurrances of the
> same
> param, but different values, how is this represented?
>
> --
> View this message in context:
> http://www.nabble.com/How-do-you-represent-multiple-layers-in-a-MapServer-Query-tp15441564p15441564.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com<http://nabble.com/>
> .
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080212/d7ff64f0/attachment.html


More information about the Users mailing list