Skip to content

Commit

Permalink
opacity fixes required after reverting r12185. r=mosesonline (closes …
Browse files Browse the repository at this point in the history
…#3441)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
ahocevar committed Aug 12, 2011
1 parent fe5b8a7 commit a8d3d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/Markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ OpenLayers.Layer.Markers = OpenLayers.Class(OpenLayers.Layer, {
addMarker: function(marker) {
this.markers.push(marker);

if (this.opacity != null) {
if (this.opacity < 1) {
marker.setOpacity(this.opacity);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Tile/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
this.frame.appendChild(this.imgDiv);
this.layer.div.appendChild(this.frame);

if(this.layer.opacity != null) {
if(this.layer.opacity < 1) {

OpenLayers.Util.modifyDOMElement(this.imgDiv, null, null, null,
null, null, null,
Expand Down

0 comments on commit a8d3d6a

Please sign in to comment.