Add mapserver layers as wms

المشرف العام

Administrator
طاقم الإدارة
I have be battling to add my mapserver layers as wms. Two things happen; all other layers lose their projections and intended layers are not shown, 2 nothing happens at all. Here is my code:var lay = new OpenLayers.Layer.WMS('Human Settlement', "http://localhost/cgi-bin/mapserv?/var/www/html/mapfile/Huma_Settlement.map", { layers:"2006_Human_Settlement, 2011_Human_Settlement" }, { transparent: true, numZoomLevels: 22, opacity: 0.5, extent: new OpenLayers.Bounds(16, -34, 32, -22), isBaseLayer: false } );and it is not working...



أكثر...
 
أعلى