[fusion-commits] r2907 - trunk/lib/OpenLayers
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 7 05:16:01 PDT 2015
Author: jng
Date: 2015-05-07 05:16:01 -0700 (Thu, 07 May 2015)
New Revision: 2907
Modified:
trunk/lib/OpenLayers/OpenLayers.js
Log:
#631: Now check in the actual fix for OpenLayers.js, as we now have the custom modifications on hand. A fresh uncompressed build of OpenLayers.js with our modifications overlaid on top of the original 2.13.1 source shows the same changes as the OpenLayers.js on 3.0m
Modified: trunk/lib/OpenLayers/OpenLayers.js
===================================================================
--- trunk/lib/OpenLayers/OpenLayers.js 2015-05-07 12:10:55 UTC (rev 2906)
+++ trunk/lib/OpenLayers/OpenLayers.js 2015-05-07 12:16:01 UTC (rev 2907)
@@ -8727,8 +8727,13 @@
var bounds = this.getExtent();
- //send the move call to the baselayer and all the overlays
-
+ //send the move call to the baselayer and all the overlays
+ if (zoom && this.baseLayer.CLASS_NAME != "OpenLayers.Layer.MapGuide") {
+ if (zoom >= this.baseLayer.MAX_ZOOM_LEVEL)
+ this.baseLayer.setVisibility(false);
+ else
+ this.baseLayer.setVisibility(true);
+ }
if(this.baseLayer.visibility) {
this.baseLayer.moveTo(bounds, zoomChanged, options.dragging);
options.dragging || this.baseLayer.events.triggerEvent(
@@ -9110,6 +9115,12 @@
if (map.baseLayer.wrapDateLine) {
zoom = map.adjustZoom(zoom);
}
+ if (zoom && map.baseLayer.CLASS_NAME != "OpenLayers.Layer.MapGuide") {
+ if (zoom >= map.baseLayer.MAX_ZOOM_LEVEL)
+ map.baseLayer.setVisibility(false);
+ else
+ map.baseLayer.setVisibility(true);
+ }
if (map.zoomTween) {
var currentRes = map.getResolution(),
targetRes = map.getResolutionForZoom(zoom),
More information about the fusion-commits
mailing list