Nuria,

first of all I would like to ask users when reporting problems/bugs to 
specify
* p.mapper version
* modified or not
* PHP version (4 or 5)
* OS (Win or Unix)

In your case I suppose that you are using p.mapper below version 1.0.8 
and PHP 4. There was a bug introduced in 1.0.6 that prevented a correct 
layer switch on/off. This was removed in version 1.0.8. It should be 
sufficient to take the file '/incphp/common.php' and replace the one you 
have.

I hope this will remove the problem.

BTW: The STATUS settings in the map file for layers mentioned in the 
config.ini under 'allGroups' are not used and considered, ie, the 
settings are overwritten by pmapper. In case you eg. want to always 
display a layer without the possibility for the user to switch it off 
(like copyright, etc), set layer STATUS to default and don't specify the 
layer name in the config.ini.

Armin

Nuria Gonz?lez wrote:
> Hi,
> 
> I have a .map file with 3 layers: one is a raster layer (called DEM) and 
> the others one are vectorial layers (called Rivers and Provinces). I 
> have set "STATUS ON" for the 3 layers.
> In config.ini file, I have set the 3 layers visible at start.
> When I display my application I view all right. If I disable (or enable) 
> the "Provinces" layer in the tree menu it works right, but if I disable 
> the "Rivers" o "DEM" layers, these layers don't disappear.
> 
> Have you any idea about my problem?
> 
> Thanks in advance.
> 
> _________________________________________________________________
> ?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras 
> en MSN Motor. http://motor.msn.es/researchcentre/
> 
> 
> _______________________________________________
> Pmapper-users mailing list
> [EMAIL PROTECTED]
> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users
> 
> 

Reply via email to