Opened 12 years ago

Closed 12 years ago

#528 closed defect (fixed)

Feature Info widget defects

Reported by: jng Owned by: jng
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

From Gordon:

Modify the the featureinfo.php widget to only show layers that are both selectable and visible in the legend.

if(($layer->IsVisible?()) && $layer->GetSelectable?()) { $layerName[$layer->GetName?()] = $layer->GetLegendLabel?(); }

Around line 53 in /fusion/widgets/featureinfo/classes/featureinfo.php

Ideally also, this list of layers should update itself as the map scale changes.

Secondly, when display_errors = On in php.ini attempting to do a selection will fail because due to a PHP notice on the server side:

PHP Notice:  Undefined variable: _SESSION in C:\Workspace\fusion-trunk\layers\MapGuide\php\Utilities.php on line 793

Change History (1)

comment:1 by jng, 12 years ago

Resolution: fixed
Status: newclosed

Fixed r2543. We won't make the layer list auto-refresh as Fusion does not expose a map scale changed event that we could hook onto. The user can always re-invoke the widget to get the current list.

Note: See TracTickets for help on using tickets.