[fusion-commits] r2531 - trunk/layers/Generic
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Mar 20 22:57:38 EDT 2012
Author: jng
Date: 2012-03-20 19:57:37 -0700 (Tue, 20 Mar 2012)
New Revision: 2531
Modified:
trunk/layers/Generic/Generic.js
Log:
#520: Fix Commercial layers not displaying if MapGuide Map Definition has no tiled layers. The problem is that fractionalZoom is not disabled if commercial layers exist. The logic for doing this has changed (for the worse) since the 2.2 release. This submission fixes this logic.
Modified: trunk/layers/Generic/Generic.js
===================================================================
--- trunk/layers/Generic/Generic.js 2012-02-28 07:49:14 UTC (rev 2530)
+++ trunk/layers/Generic/Generic.js 2012-03-21 02:57:37 UTC (rev 2531)
@@ -195,15 +195,13 @@
else {
this.oLayerOL = new OpenLayers.Layer[this.layerType](this.getMapName(), this.mapTag.layerOptions );
}
- }
-
- //fractionalZoom not permitted with tiled base layers
- this.mapWidget.oMapOL.minPx = null; //TODO: better fix here, this prevents a mapdraw before layer is ready
- if (!this.bSingleTile) {
+ //fractionalZoom not permitted with tiled base layers regardless
this.mapWidget.fractionalZoom = false;
this.mapWidget.oMapOL.setOptions({fractionalZoom: false});
}
-
+
+
+ this.mapWidget.oMapOL.minPx = null; //TODO: better fix here, this prevents a mapdraw before layer is ready
this.oLayerOL.events.register("loadstart", this, this.loadStart);
this.oLayerOL.events.register("loadend", this, this.loadEnd);
this.oLayerOL.events.register("loadcancel", this, this.loadEnd);
More information about the fusion-commits
mailing list