[fusion-trac] #116: Legend.js: startGroup Initial value is checked,
wether or not set in Studio
Fusion
trac_fusion at osgeo.org
Mon Sep 1 16:07:18 EDT 2008
#116: Legend.js: startGroup Initial value is checked, wether or not set in Studio
--------------------------+-------------------------------------------------
Reporter: poulet1212 | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: 1.1
Component: Widgets | Version: 1.0.6
Severity: Major | Keywords:
External_id: | State: New
Browser: All | Os: All
--------------------------+-------------------------------------------------
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;
}}}
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/116>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list