From 823ea15e519cfae1559bb8ffec64d9c971b4cb42 Mon Sep 17 00:00:00 2001 From: vicchi Date: Sat, 26 Jan 2013 10:51:25 +0000 Subject: [PATCH] Reworked OpenLayers Polyline.show and Polyline.hide in line with @dezfowler's comments on Issue #209 --- source/mxn.openlayers.core.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/mxn.openlayers.core.js b/source/mxn.openlayers.core.js index 581124b..6b0d013 100644 --- a/source/mxn.openlayers.core.js +++ b/source/mxn.openlayers.core.js @@ -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); } }