[fusion-trac] #635: Search Widget Does Not Toggle Layer and Group On

Fusion trac_fusion at osgeo.org
Wed Oct 28 05:15:53 PDT 2015


#635: Search Widget Does Not Toggle Layer and Group On
-----------------------------+----------------------
        Reporter:  gluckett  |        Owner:  madair
            Type:  defect    |       Status:  new
        Priority:  P2        |    Milestone:  Future
       Component:  Core      |      Version:  2.0
        Severity:  Minor     |     Keywords:
         Browser:  All       |  External ID:
Operating System:  All       |        state:  New
-----------------------------+----------------------
 The Search widget (search.php) does not turn on layer and parent groups
 when selecting feature.

 Correct code: (line 84)

 if($layer->GetName() == $layerName)
 {
     $layer->SetVisible(true);
     $layer->ForceRefresh();
     $currentGroup = $layer->GetGroup();
     while ($currentGroup)
     {
         $currentGroup->SetVisible(true);
         $currentGroup->SetDisplayInLegend(1);
         $currentGroup->SetExpandInLegend(1);
         $currentGroup = $currentGroup->GetGroup();
     }
     $map->Save();

--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/635>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list