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",
|
||||||
|
|
||||||
@@ -127,8 +129,8 @@ 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,7 +151,7 @@ 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:
|
||||||
@@ -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,7 +297,7 @@ 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.
|
||||||
*
|
*
|
||||||
@@ -311,7 +313,8 @@ 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() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user