[OpenLayers-Users] openlayers does not show shapefile

Bilge Tutak bilge.tutak at gmail.com
Thu Aug 7 08:39:21 EDT 2008


Did you try calling it with a mapserver layer?
OpenLayers.Layer.Mapserver....

I am not sure if it makes a difference, but using MapServer layer works for me.

Bilge.

On Thu, Aug 7, 2008 at 6:43 AM, FCampos <fcampos at efacec.pt> wrote:
>
> 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.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list