[OpenLayers-Users] openlayers does not show shapefile

FCampos fcampos at efacec.pt
Thu Aug 7 06:43:07 EDT 2008


Hi,
i´m haviing trouble to show a simple shapefile frmo a wms server
(mapserver).

Here is the mapfile
http://www.nabble.com/file/p18867858/test.map test.map 


if i make shp2img -m test.map -o test.png -all_debug 10 the image is made,
so it´s not from mapserver.

the openlayers code is:

	    map = new OpenLayers.Map( 'map' );
		var layer = new OpenLayers.Layer.WMS( "SHAPEFILE", 
		
"http://172.18.210.67:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/wmssrvrefer/test.map&service=WMS",
{'layers': 'Cont_Freg_CAOP2008_HG73' , 'format':'image/png'}); 
        map.addLayer(layer);


the image shows only the background.
what´s wrong ?

Thanks.  
-- 
View this message in context: http://www.nabble.com/openlayers-does-not-show-shapefile-tp18867858p18867858.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list