[mapguide][MG91][New] Base layer groups hidden in legend don't display
Walt Welton-Lair
walt.welton-lair at autodesk.com
Fri Mar 10 14:34:41 EST 2006
You can view the artifact detail at the following URL:
https://mapguide.osgeo.org/servlets/Scarab/id/MG91
Type
Defect
Artifact ID
MG91 (Base layer groups hidden in legend don't display)
Reported by
Walt Welton-Lair
waltweltonlair (walt.welton-lair at autodesk.com)
New artifact details:
---------------------------------------------------------
- Defect Severity set to new value
High
- Operating system set to new value
All
- Priority set to new value
P2
- Platform set to new value
All
- Version set to new value
1.0.0
- Artifact Status set to new value
New
- Developer Notes set to new value
The mapframe javascript determines if the map has tiles by checking if the legend control has any base groups. See the "delayedInit" function in ajaxmappane.templ.
When groups are set to not display in the legend, then they're not added to the legend control, and then the check fails.
One way to fix this is to always add all groups (regular and base) to the legend control, but use their "show in legend" flag to set their visibility in the control. That way the rest of the code still has access to the complete list of groups.
- Component set to new value
Web Server Extensions
- Summary set to new value
Base layer groups hidden in legend don't display
- Description set to new value
If you create a base layer group but turn off its show in legend flag, then the base layer group does not display.
- Artifact created
- Steps to Reproduce set to new value
1) Create a map definition in Studio
2) Create a group in the "Base Layers..." section of the map editor
3) Uncheck the "Group is visible in legend" checkbox
4) Add a layer to the group
5) Preview the map (using the AJAX viewer)
=> The base layer group does not display
- Subcomponent set to new value
AJAX Viewer
---------------------------------------------------------
This message was automatically generated by Project Tracker.
More information about the Mapguide_issues
mailing list