[Mapbender-commits] r2567 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 1 05:42:09 EDT 2008


Author: verenadiewald
Date: 2008-07-01 05:42:09 -0400 (Tue, 01 Jul 2008)
New Revision: 2567

Modified:
   branches/2.5/http/javascripts/mod_measure.php
Log:
function drawDashedLine: set width and height of mapframe again for measuring

Modified: branches/2.5/http/javascripts/mod_measure.php
===================================================================
--- branches/2.5/http/javascripts/mod_measure.php	2008-06-30 14:13:03 UTC (rev 2566)
+++ branches/2.5/http/javascripts/mod_measure.php	2008-07-01 09:42:09 UTC (rev 2567)
@@ -143,10 +143,10 @@
 function drawDashedLine(){
 	//check if epsg has changed
 	var ind = getMapObjIndexByName(mod_measure_target);
+	mod_measure_width = mb_mapObj[ind].width;
+	mod_measure_height = mb_mapObj[ind].height;
 	if(mod_measure_epsg != mb_mapObj[ind].epsg){
 		mod_measure_delete();
-		mod_measure_width = mb_mapObj[ind].width;
-		mod_measure_height = mb_mapObj[ind].height;
 		mod_measure_epsg = mb_mapObj[ind].epsg;
 	}
 	var str_mPoints = "<div style='position:absolute;left:0px;top:0px' ><img src='"+mb_trans.src+"' width='"+mod_measure_width+"' height='0'></div>";



More information about the Mapbender_commits mailing list