Skip to content

Commit

Permalink
Reworked OpenLayers Polyline.show and Polyline.hide in line with @dez…
Browse files Browse the repository at this point in the history
…fowler's comments on Issue #209
  • Loading branch information
vicchi committed Jan 26, 2013
1 parent 9ba98c7 commit 823ea15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/mxn.openlayers.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,11 @@ mxn.register('openlayers', {
},

show: function() {
this.proprietary_polyline.style.display = "block";
this.proprietary_polyline.layer.redraw();
this.proprietary_polyline.layer.setVisibility(true);
},

hide: function() {
this.proprietary_polyline.style.display = "none";
this.proprietary_polyline.layer.redraw();
this.proprietary_polyline.layer.setVisibility(false);
}
}

Expand Down

0 comments on commit 823ea15

Please sign in to comment.