[OpenLayers-Trac] [OpenLayers] #2862: Panel: decouple the appearance of the icons to the Controls

OpenLayers trac-20090302 at openlayers.org
Mon Oct 4 13:38:31 EDT 2010

#2862: Panel: decouple the appearance of the icons to the Controls
 Reporter:  jorix          |       Owner:  jorix       
     Type:  feature        |      Status:  new         
 Priority:  minor          |   Milestone:  2.11 Release
Component:  Control.Panel  |     Version:  2.10        
 Keywords:                 |       State:              
 When a panel manages visual controls (such as another panel)"DOM"
 attributes  in icons and controls are mixed. The clearest example is the

 The ticket proposes:
  * Can specify different values for title and "displayclass" for the icon.
  * New property "CSSClasses" only for icons, to separate the additional
 classes from "displayclass", this allows a declaration of controls

 Implementation: Proposes a new property "panelIcon - {Object}" in
 control.js. To create a control "panelIcon" contains all the specific
 properties of the icon.

 The patch includes changes into example "panel.html":
  * Adapted to new: wiki/CodingStandards#WritingExamples.
  * Remove needless CSS to improve appearance.
  * Show the usage of TYPE_TOGGLE controls.
  * Change deprecated MouseDefaults control by Navigation
  * Show the usage of the new property "panelIcon".

 It includes new test for the properties into "panelIcon" object.

 This patch is independent of #2863, but is designed to work together.

Ticket URL: <http://trac.openlayers.org/ticket/2862>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list