[Chameleon-dev] [Bug 1067] New: LegendTemplate widget should leave STATUS DEFAULT layers alone

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Fri May 27 07:58:46 EDT 2005


http://bugzilla.maptools.org/show_bug.cgi?id=1067

           Summary: LegendTemplate widget should leave STATUS DEFAULT layers
                    alone
           Product: Chameleon
           Version: 2.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


I have STATUS DEFAULT layers in my MAP file. I excluded those layers from the
LegendTemplate using [if] statement in the html template.

When pressing the update map button, all my STATUS DEFAULT layers are set to
STATUS OFF. Clearly this cannot be intentional.

I have fixed this in my local version:

legendtemplate.widget.php (line 408):

                        if (in_array($oLayer->name, $aLayers ))
                        {
                            if (!($oLayer->status == MS_DEFAULT))
                            {
                              $oLayer->set("status", MS_OFF);
                            }
                        }

Will update CVS Head tonight.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list