[mapserver-users] Call layer

jbloc1878 at googlemail.com jbloc1878 at googlemail.com
Mon Oct 5 09:49:19 EDT 2009


Thanks for the response. I am using openlayers and my map does not  
appear unless layer is STATUS DEFAULT.

I call layer as follows

layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS",
       "http://localhost/cgi-bin/mapserv.exe?", { layers: "testlayer",  
map: '/ms4w/.../data/tr00.map',
       gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' });

  map.addLayer(layer1);

I only view pink tiles when STATUS ON?

Thanks

On 5 Oct 2009, at 14:40, "Fawcett, David" <David.Fawcett at state.mn.us>  
wrote:

> You don’t.  That is how you tell MapServer that you want to view a p 
> articular layer that doesn’t have a status of default.
>
>
>
> In many cases, if you are viewing your map using a client like  
> OpenLayers, the client does this for you.
>
>
>
> David.
>
>
>
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver- 
> users-bounces at lists.osgeo.org] On Behalf Of jbloc1878 at googlemail.com
> Sent: Monday, October 05, 2009 8:31 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Call layer
>
>
>
> Hi,
>
>
>
>
> If  the status of my layer is set to ON how do I call the layer  
> without adding '&layer=[layername]' on the end of the URL?
>
>
>
>
> I am viewing the map via localhost/cgi-bin/mapserv.exe?
>
>
>
> Cheers for any help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091005/8a16f217/attachment-0001.html


More information about the mapserver-users mailing list