[Chameleon] maptips and layer visible?

Bart van den Eijnden (OSGIS) bartvde at xs4all.nl
Mon Jan 16 11:58:05 EST 2006


Hi list,

does anybody have a problem if I add a condition to the maptips widget 
that it does not generate the imagemap when the layer used is not 
visible? It does not make much sense IMHO to have the image map without 
the layer visible.

in GenerateImageMap()

        if ($oLayer == null || $oLayer->isVisible() == MS_FALSE)
        {
            return $szMap;
        }

Btw Jason, your approach worked fine for having a Maptips layer in the 
map by default. Thanks.

Best regards,
Bart

-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the Chameleon mailing list