[mapguide-trac] #167: Legend does not refresh correctly,
when using the summary parameter
MapGuide Open Source
trac_mapguide at osgeo.org
Thu May 24 07:03:53 EDT 2007
#167: Legend does not refresh correctly, when using the summary parameter
-------------------------+--------------------------------------------------
Reporter: ksgeograf | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 1.2
Component: Server | Version: 1.2.0
Severity: major | Keywords: legend summary refresh
External_id: |
-------------------------+--------------------------------------------------
To reproduce, create a new datasource + layer + map + weblayout. On the
map, set the layer "Display in legend" to false.
Then, using the .Net API, modify the current map, and call
"SetDisplayInLegend(true)" on the layer. Then on the client, call
GetMapFrame().Refresh().
The layer never shows in the legend. Zoom (eg. change scale) does not make
the layer appear.
This happens with both DWF viewer and AJAX viewer. The layer contents
appear, and as of 1.2, the tooltips appear, and the "Selectability" works
correct.
When modifying the legendctrl.templ, line 16, removing the "&SUMMARY="
string, the AJAX viewer now correctly refreshes the legend, obeying the
"SetDisplayInLegend". However the legend label is not displayed. Setting
the legend label using the API, makes the label appear.
I cannot modify the call from the DWF, to test the DWF behavior.
I believe that the server has a defect, when it constructs the legend
update summary. There is also a defect, when creating the runtime map, as
layers that are not displayed in the legend does not get their label
transfered.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/167>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list