[ka-Map-dev] [Bug 1510] New: [ka-map] add options to make kaLegend controls optional

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Tue Jun 27 21:02:10 EDT 2006


           Summary: [ka-map] add options to make kaLegend controls optional
           Product: ka-Map
           Version: 0.3
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: ka-map-dev at lists.maptools.org
        ReportedBy: pspencer at dmsolutions.ca

Request from danmo on IRC today to make the kaLegend controls for opacity and layer order optional.  
Modify kaLegend to accept an options object in its constructor.

It was also proposed to have a way of setting global options like this without having to modify 
startUp.js.  Modify startUp.js to automatically look for global variables to control layer visibility.

Global variables can be set as follows:

<script type="text/javascript">
gbLegendVisibilityControl = false;
gbLegendOrderControl = false;
gbLegendQueryControl = false;
gbLegendOpacityControl = false;

Not setting a global variable will default the value to true.  The global variable(s) can be set any time 
prior to the page load being triggered (ie include it in index.html)

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the ka-Map-dev mailing list