Ticket #116 (closed defect: wontfix)
Legend.js: startGroup Initial value is checked, wether or not set in Studio
| Reported by: | poulet1212 | Owned by: | madair |
|---|---|---|---|
| Priority: | P2 | Milestone: | 1.1 |
| Component: | Widgets | Version: | 1.0.6 |
| Severity: | Major | Keywords: | |
| Cc: | External ID: | ||
| state: | Analysing | Browser: | All |
| Operating System: | All |
Description
In studio you can set a group to be "initially displayed in the map". You can set what you want, legend.js will always initially set the group as "checked".
Legend.js: Draw function
for (var i=0; i<startGroup.groups.length; i++) {
startGroup.groups[i].visible = true;
this.processMapGroup(startGroup.groups[i], this.oRoot);
}
The fellowing line should be removed, it should'nt be always set as "true".
startGroup.groups[i].visible = true;
Change History
Note: See
TracTickets for help on using
tickets.
