[Mapbender-commits] r5365 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jan 20 08:01:37 EST 2010
Author: christoph
Date: 2010-01-20 08:01:35 -0500 (Wed, 20 Jan 2010)
New Revision: 5365
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
do not animate map after the srs has changed
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2010-01-20 11:25:30 UTC (rev 5364)
+++ trunk/mapbender/http/javascripts/map_obj.js 2010-01-20 13:01:35 UTC (rev 5365)
@@ -23,6 +23,7 @@
var mapMsgObj;
var extentHasChanged = false;
+ var srsHasChanged = false;
eventLocalize.register(function(){
localizeMap();
@@ -369,6 +370,7 @@
this.epsg = options.srs;
}
+ srsHasChanged = true;
return this.calculateExtent(options.extent);
};
@@ -1136,7 +1138,7 @@
// show new map
//
- if (doAnimation && extentHasChanged) {
+ if (doAnimation && extentHasChanged && !srsHasChanged) {
var previousRequest = $("#" + that.elementName + "_request_" + (index-1));
var wasPanned = parseInt(previousRequest.css("top"), 10) !== 0 ||
parseInt(previousRequest.css("left"), 10) !== 0;
@@ -1298,6 +1300,7 @@
this.history.forward(false);
extentHasChanged = false;
+ srsHasChanged = false;
};
var getLayerHtmlCode = function(ii, extent, width, height, top, left, requestCnt){
More information about the Mapbender_commits
mailing list