[fusion-commits] r2570 - sandbox/adsk/2.3r/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Aug 15 20:05:44 PDT 2012
Author: liuar
Date: 2012-08-15 20:05:44 -0700 (Wed, 15 Aug 2012)
New Revision: 2570
Modified:
sandbox/adsk/2.3r/layers/MapGuide/MapGuide.js
Log:
On behalf of Andy Zhang:
Hide selection when the layer is turned off. Last submission 2548 didn?\226?\128?\153t solve the issue completely. Now use queryLayer.setVisibility() to set the visibility of selection layer.
Note: This is a hotfix for a specific user. It will be reverted after the hotfix is built and verified by user.
Modified: sandbox/adsk/2.3r/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/2.3r/layers/MapGuide/MapGuide.js 2012-08-10 18:14:15 UTC (rev 2569)
+++ sandbox/adsk/2.3r/layers/MapGuide/MapGuide.js 2012-08-16 03:05:44 UTC (rev 2570)
@@ -1047,10 +1047,10 @@
this.aShowLayers.push(layer.uniqueId);
if (!noDraw) {
this.drawMap();
- if (this.queryLayer) {
- this.drawSelection();
- }
}
+ if (this.queryLayer) {
+ this.queryLayer.setVisibility(true);
+ }
},
hideLayer: function( layer, noDraw ) {
@@ -1058,10 +1058,10 @@
this.aHideLayers.push(layer.uniqueId);
if (!noDraw) {
this.drawMap();
- if (this.queryLayer) {
- this.drawSelection();
- }
}
+ if (this.queryLayer) {
+ this.queryLayer.setVisibility(false);
+ }
},
showGroup: function( group, noDraw ) {
@@ -1079,11 +1079,11 @@
this.aShowGroups.push(group.uniqueId);
if (!noDraw) {
this.drawMap();
- if (this.queryLayer) {
- this.drawSelection();
- }
}
}
+ if (this.queryLayer) {
+ this.queryLayer.setVisibility(true);
+ }
},
hideGroup: function( group, noDraw ) {
this.processGroupEvents(group, false);
@@ -1100,11 +1100,11 @@
this.aHideGroups.push(group.uniqueId);
if (!noDraw) {
this.drawMap();
- if (this.queryLayer) {
- this.drawSelection();
- }
}
}
+ if (this.queryLayer) {
+ this.queryLayer.setVisibility(false);
+ }
},
refreshLayer: function( layer ) {
this.aRefreshLayers.push(layer.uniqueId);
More information about the fusion-commits
mailing list