Non-displayed layers blocking queries to other layers

Rodrigo Del C. Andrade rodrigo.andrade at DIGITRO.COM.BR
Wed May 30 04:57:32 PDT 2007


    I am not so sure 0 is really the value for OFF (probably is, but 
query result successes return 0 as far as I know, so I always get 
confused), its safer to use the mapscript constants :

	layerObj.setStatus(mapscript.MS_OFF)

    But anyway, you said the top layer is "masking" the underneath 
layer, but what you're really doing is querying? If the layer turned off 
is no longer visible, I suppose your problem lies somewhere else, in the 
query method or the layer being queryed.
   
    Rod

-- 

*Rodrigo Del C. Andrade*
/Programador/
/SIC - SSE - Soluções Segurança Pública/

*DÍGITRO TECNOLOGIA*
*E-mail:* rodrigo.andrade at digitro.com.br 
<mailto:rodrigo.andrade at digitro.com.br>
*Fone:* +55 48 3281-7314 / +55 48 3281-7000
*Fax:* +55 48 3281-7299
*Site:* www.digitro.com <http://www.digitro.com>


LITTLE Nelson wrote:
> Hi all,
>
> I am using Java Mapscript and in my application the user is able to turn
> the display of layers on or off dynamically. This appears to work as the
> layer turned off is no longer visible on the map image.
>
> The problem is that a layer which is drawn on top of another layer is
> masking the layer underneath even though the top layer has been turned
> off. When I say turned off I mean I have set the status of that layer to
> OFF (layerObj.setStatus(0)).
>
> How do I know this is happening? If I edit the map file to not include
> the top layer then they are able to query the other layer.
>
> Perhaps I have failed to do something; I followed the PHP Mapscript
> tutorials fairly closely. Any ideas or help is greatly appreciated as
> this is a bit of a show stopper for me.
>
> Cheers
> Nelson
>
>
>
> Disclaimer :
> The contents of this e-mail including any attachments are intended only
> for the person or entity to which this e-mail is addressed.  If you are not,
> or believe you may not be, the intended recipient, please advise the sender
> immediately by return e-mail, delete this e-mail and destroy any copies.
> Tenix does not warrant nor guarantee that this email communication is free
> from errors, virus, interception or interference.
>
>
>   



More information about the MapServer-users mailing list