making 1 the default for layer opacity. p=mosesonline,me r=me (closes #3441)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -35,9 +35,10 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
|
||||
/**
|
||||
* Property: opacity
|
||||
* {Float} The layer's opacity. Float number between 0.0 and 1.0.
|
||||
* {Float} The layer's opacity. Float number between 0.0 and 1.0. Default
|
||||
* is 1.
|
||||
*/
|
||||
opacity: null,
|
||||
opacity: 1,
|
||||
|
||||
/**
|
||||
* APIProperty: alwaysInRange
|
||||
@@ -349,7 +350,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
this.div.style.width = "100%";
|
||||
this.div.style.height = "100%";
|
||||
this.div.dir = "ltr";
|
||||
if (this.opacity != null) {
|
||||
if (this.opacity != null && this.opacity < 1) {
|
||||
OpenLayers.Util.modifyDOMElement(
|
||||
this.div, null, null, null, null, null, null, this.opacity
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user