Opened 16 years ago
Closed 11 years ago
#833 closed defect (fixed)
Runtime map is missing legend information, if layer is initially hidden from the legend
Reported by: | ksgeograf | Owned by: | jng |
---|---|---|---|
Priority: | medium | Milestone: | 2.6 |
Component: | Resource Service | Version: | 2.1.0 |
Severity: | trivial | Keywords: | haspatch |
Cc: | tomfukushima | External ID: |
Description
If the layer is not visible in the legend at startup, the legend labels are not persisted into the runtime map.
Presumably, this is an attempt to optimize the size of the runtime map. However, it is possible to show the layer in the legend by toggling the corresponding flag. This will show the layer in the legend, but it will not have the legend label.
It is fairly difficult to itterate the MapDefinition and assign the missing values manually, so I propose that the optimization is removed. The resulting overhead should be minimal, and the user may enter use a blank legend label, to achieve the previous behavior.
The attached patch should work on the current trunk.
Attachments (1)
Change History (11)
by , 16 years ago
Attachment: | Patch for not removing legend information.diff added |
---|
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Owner: | set to |
---|
comment:3 by , 15 years ago
I believe this may be a duplicate (sure looks familiar). Is this still a problem with 2.1? If so, could we get a review of the suggested fix?
comment:4 by , 15 years ago
Version: | 2.0.2 → 2.1.0 |
---|
This has not been applied: https://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp#L197
comment:6 by , 13 years ago
Keywords: | haspatch added |
---|
comment:7 by , 12 years ago
Milestone: | → 2.5 |
---|
comment:8 by , 12 years ago
Milestone: | 2.5 → 2.6 |
---|
comment:9 by , 11 years ago
Owner: | changed from | to
---|
Taking ownership of the ticket. This is a problem for some applications where we want to have layers hidden first, but to reveal them later on.
comment:10 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Has this been applied?