@@ -255,8 +255,7 @@ OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {
|
||||
var moOldZoom = this.getMapObjectZoom();
|
||||
var oldZoom= this.getOLZoomFromMapObjectZoom(moOldZoom);
|
||||
|
||||
if ( !(newCenter.equals(oldCenter)) ||
|
||||
!(newZoom == oldZoom) ) {
|
||||
if (!(newCenter.equals(oldCenter)) || newZoom != oldZoom) {
|
||||
|
||||
if (!zoomChanged && oldCenter && this.dragPanMapObject &&
|
||||
this.smoothDragPan) {
|
||||
|
||||
@@ -284,7 +284,7 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
|
||||
if (this.map.baseLayer !== this) {
|
||||
zoom = this.map.baseLayer.getZoomForResolution(
|
||||
this.getResolutionForZoom(zoom)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
return zoom;
|
||||
|
||||
@@ -227,10 +227,10 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
var h = this.standardTileSize;
|
||||
if (x == this.tierSizeInTiles[z].w -1 ) {
|
||||
var w = this.tierImageSize[z].w % this.standardTileSize;
|
||||
};
|
||||
}
|
||||
if (y == this.tierSizeInTiles[z].h -1 ) {
|
||||
var h = this.tierImageSize[z].h % this.standardTileSize;
|
||||
};
|
||||
}
|
||||
return (new OpenLayers.Size(w, h));
|
||||
} else {
|
||||
return this.tileSize;
|
||||
|
||||
Reference in New Issue
Block a user