[Mapbender-commits] r3869 - branches/pseudoSlippy/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Apr 10 07:32:32 EDT 2009
Author: christoph
Date: 2009-04-10 07:32:32 -0400 (Fri, 10 Apr 2009)
New Revision: 3869
Modified:
branches/pseudoSlippy/http/javascripts/map_obj.js
Log:
Modified: branches/pseudoSlippy/http/javascripts/map_obj.js
===================================================================
--- branches/pseudoSlippy/http/javascripts/map_obj.js 2009-04-10 06:41:51 UTC (rev 3868)
+++ branches/pseudoSlippy/http/javascripts/map_obj.js 2009-04-10 11:32:32 UTC (rev 3869)
@@ -740,11 +740,15 @@
}
}
- this.setMapRequest = function(){
+ this.setMapRequest = function(skipAnimation){
+ if (typeof(skipAnimation) === "undefined") {
+ skipAnimation = false;
+ }
if (typeof(this.requestArray) === "undefined") {
this.requestArray = [];
}
+
if (typeof(this.requestCount) === "undefined") {
this.requestCount = 0;
}
@@ -774,7 +778,12 @@
}
// this is the start position for the animation
- currentRequest.styleString += "top:"+this.oldExtentPix.maxy+"px;left:"+this.oldExtentPix.minx+"px;";
+ if (!skipAnimation) {
+ currentRequest.styleString += "top:"+this.oldExtentPix.maxy+"px;left:"+this.oldExtentPix.minx+"px;";
+ }
+ else {
+ currentRequest.styleString += "top:0px;left:0px;";
+ }
}
currentRequest.styleString += "z-index:" + ii + ";";
@@ -828,7 +837,7 @@
}
var width, height;
- if (this.requestCount === 0) {
+ if (this.requestCount === 0 || skipAnimation) {
// no animation for first map request
width = this.width;
height = this.height;
@@ -863,7 +872,7 @@
//
// no animation necessary if first request.
- if (this.requestCount > 0) {
+ if (this.requestCount > 0 && !skipAnimation) {
// animate previous request div and images
var oldLL = new Point(this.oldExtent.minx, this.oldExtent.miny);
@@ -877,8 +886,6 @@
var width = oldURPix.x - oldLLPix.x;
var height = oldLLPix.y - oldURPix.y;
- console.log(previousRequest.requestId);
-
var mapDiv = $("#" + previousRequest.requestId);
mapDiv.animate({
left: left + "px",
More information about the Mapbender_commits
mailing list