[fusion-trac] #186: Legend Items do not display
Fusion
trac_fusion at osgeo.org
Fri Nov 28 14:27:49 EST 2008
#186: Legend Items do not display
--------------------------+-------------------------------------------------
Reporter: pdeschamps | Owner: pdeschamps
Type: defect | Status: new
Priority: P2 | Milestone: 2.0
Component: Core | Version: 1.1.0
Severity: Minor | Keywords:
External_id: | State: New
Browser: All | Os: All
--------------------------+-------------------------------------------------
in svn rev 1694. the legend items do not render. The issue was some string
=> boolean conversion that was hapening in Layers.js. Aparently MapGuide
is setting these booleans as strings and we needed to convert them into
Booleans.
{{{
this.editable = o.editable=="true"?true:false;
this.visible = o.visible=="true"?true:false;
this.selectable = o.selectable=="true"?true:false;
this.displayInLegend = o.displayInLegend=="true"?true:false;
this.expandInLegend = o.expandInLegend=="true"?true:false;
this.actuallyVisible = o.actuallyVisible=="true"?true:false;
}}}
However in Mapserver it was already a boolean and thus making all these
items false causing a legend to display with no items.
For the time being until we equalize this: "To be or Not to be a string"
issue I am patching up this with an if typeof = boolean
This bug should remain open for us to trac this MG / MS differences. As we
go deeper in the rabbit hole.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/186>
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