Armin Burger wrote:

[...] Or using the main map file and deleting all layers but the requested one with 'removeLayer()'. This does not work with PHP Mapscript since this method does not exist there.

The removeLayer() method does not exist in PHP MapScript, but you can achieve the same result by using the DELETED status on the layers to hide from the GetCapabilities:

  $layer->set("status", MS_DELETE);

Daniel
--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to