[Mapbender-commits] r8470 - branches/2.7/http/javascripts trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Aug 24 01:30:03 PDT 2012


Author: verenadiewald
Date: 2012-08-24 01:30:02 -0700 (Fri, 24 Aug 2012)
New Revision: 8470

Modified:
   branches/2.7/http/javascripts/mod_resize_mapsize.js
   trunk/mapbender/http/javascripts/mod_resize_mapsize.js
Log:
http://trac.osgeo.org/mapbender/ticket/563

Modified: branches/2.7/http/javascripts/mod_resize_mapsize.js
===================================================================
--- branches/2.7/http/javascripts/mod_resize_mapsize.js	2012-08-22 19:30:03 UTC (rev 8469)
+++ branches/2.7/http/javascripts/mod_resize_mapsize.js	2012-08-24 08:30:02 UTC (rev 8470)
@@ -98,6 +98,7 @@
 }
 
 function adjustDimension(skipMapRequest) {
+	var currentScale = map.getScale();
 	var mapheight = frameHeight() - parseInt(map.getDomElement().style.top, 10) + adjust_height;
 	var mapwidth = frameWidth() - map_frame_left - legend_width + adjust_width;
 	map.setWidth(mapwidth);
@@ -105,6 +106,7 @@
 
 	if (mapExtent !== undefined) {
 		map.calculateExtent(mapExtent);
+		map.repaintScale(null, null, currentScale);
 	}
 	if (!skipMapRequest) {
 		map.setMapRequest();

Modified: trunk/mapbender/http/javascripts/mod_resize_mapsize.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_resize_mapsize.js	2012-08-22 19:30:03 UTC (rev 8469)
+++ trunk/mapbender/http/javascripts/mod_resize_mapsize.js	2012-08-24 08:30:02 UTC (rev 8470)
@@ -98,6 +98,7 @@
 }
 
 function adjustDimension(skipMapRequest) {
+	var currentScale = map.getScale();
 	var mapheight = frameHeight() - parseInt(map.getDomElement().style.top, 10) + adjust_height;
 	var mapwidth = frameWidth() - map_frame_left - legend_width + adjust_width;
 	map.setWidth(mapwidth);
@@ -105,6 +106,7 @@
 
 	if (mapExtent !== undefined) {
 		map.calculateExtent(mapExtent);
+		map.repaintScale(null, null, currentScale);
 	}
 	if (!skipMapRequest) {
 		map.setMapRequest();



More information about the Mapbender_commits mailing list