coding standards - mostly 4ixing spacing issues with ND comments.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -10,10 +10,12 @@
|
|||||||
* Inherits from:
|
* Inherits from:
|
||||||
* - <OpenLayers.Control>
|
* - <OpenLayers.Control>
|
||||||
*/
|
*/
|
||||||
OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
OpenLayers.Control.LayerSwitcher =
|
||||||
|
OpenLayers.Class(OpenLayers.Control, {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: activeColor
|
* Property: activeColor
|
||||||
|
* {String}
|
||||||
*/
|
*/
|
||||||
activeColor: "darkblue",
|
activeColor: "darkblue",
|
||||||
|
|
||||||
@@ -124,12 +126,12 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: draw
|
* Method: draw
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} A reference to the DIV DOMElement containing the switcher
|
* {DOMElement} A reference to the DIV DOMElement containing the
|
||||||
* tabs
|
* switcher tabs.
|
||||||
*/
|
*/
|
||||||
draw: function() {
|
draw: function() {
|
||||||
OpenLayers.Control.prototype.draw.apply(this);
|
OpenLayers.Control.prototype.draw.apply(this);
|
||||||
|
|
||||||
@@ -149,8 +151,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: clearLayersArray
|
* Method: clearLayersArray
|
||||||
* user specifies either "base" or "data". we then clear all the
|
* User specifies either "base" or "data". we then clear all the
|
||||||
* corresponding listeners, the div, and reinitialize a new array.
|
* corresponding listeners, the div, and reinitialize a new array.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* layersType - {String}
|
* layersType - {String}
|
||||||
@@ -172,8 +174,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: redraw
|
* Method: redraw
|
||||||
* Goes through and takes the current state of the Map and rebuilds the
|
* Goes through and takes the current state of the Map and rebuilds the
|
||||||
* control to display that state. Groups base layers into a radio-button
|
* control to display that state. Groups base layers into a
|
||||||
* group and lists each data layer with a checkbox.
|
* radio-button group and lists each data layer with a checkbox.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} A reference to the DIV DOMElement containing the control
|
* {DOMElement} A reference to the DIV DOMElement containing the control
|
||||||
@@ -295,9 +297,9 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method:
|
* Method: onLayerClick
|
||||||
* Need to update the map accordingly whenever user clicks in either of
|
* Need to update the map accordingly whenever user clicks in either of
|
||||||
* the layers.
|
* the layers.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* e - {Event}
|
* e - {Event}
|
||||||
@@ -310,8 +312,9 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: updateMap
|
* Method: updateMap
|
||||||
* Cycles through the loaded data and base layer input arrays and makes
|
* Cycles through the loaded data and base layer input arrays and makes
|
||||||
* the necessary calls to the Map object such that that the map's
|
* the necessary calls to the Map object such that that the map's
|
||||||
* visual state corresponds to what the user has selected in the control
|
* visual state corresponds to what the user has selected in
|
||||||
|
* the control.
|
||||||
*/
|
*/
|
||||||
updateMap: function() {
|
updateMap: function() {
|
||||||
|
|
||||||
@@ -354,7 +357,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: minimizeControl
|
* Method: minimizeControl
|
||||||
* Hide all the contents of the control, shrink the size,
|
* Hide all the contents of the control, shrink the size,
|
||||||
* add the maximize icon
|
* add the maximize icon
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* e - {Event}
|
* e - {Event}
|
||||||
@@ -374,7 +377,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: showControls
|
* Method: showControls
|
||||||
* Hide/Show all LayerSwitcher controls depending on whether we are
|
* Hide/Show all LayerSwitcher controls depending on whether we are
|
||||||
* minimized or not
|
* minimized or not
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* minimize - {Boolean}
|
* minimize - {Boolean}
|
||||||
@@ -529,7 +532,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: mouseDown
|
* Method: mouseDown
|
||||||
* Register a local 'mouseDown' flag so that we'll know whether or not
|
* Register a local 'mouseDown' flag so that we'll know whether or not
|
||||||
* to ignore a mouseUp event
|
* to ignore a mouseUp event
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* evt - {Event}
|
* evt - {Event}
|
||||||
@@ -542,8 +545,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
/**
|
/**
|
||||||
* Method: mouseUp
|
* Method: mouseUp
|
||||||
* If the 'isMouseDown' flag has been set, that means that the drag was
|
* If the 'isMouseDown' flag has been set, that means that the drag was
|
||||||
* started from within the LayerSwitcher control, and thus we can
|
* started from within the LayerSwitcher control, and thus we can
|
||||||
* ignore the mouseup. Otherwise, let the Event continue.
|
* ignore the mouseup. Otherwise, let the Event continue.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* evt - {Event}
|
* evt - {Event}
|
||||||
|
|||||||
Reference in New Issue
Block a user