[Mapbender-commits] r5670 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 25 08:18:23 EST 2010


Author: verenadiewald
Date: 2010-02-25 08:18:23 -0500 (Thu, 25 Feb 2010)
New Revision: 5670

Modified:
   branches/2.6/http/javascripts/ovnf.php
Log:
new event onSelectExtent

Modified: branches/2.6/http/javascripts/ovnf.php
===================================================================
--- branches/2.6/http/javascripts/ovnf.php	2010-02-25 13:17:05 UTC (rev 5669)
+++ branches/2.6/http/javascripts/ovnf.php	2010-02-25 13:18:23 UTC (rev 5670)
@@ -27,6 +27,8 @@
 	skipWmsIfSrsNotSupported = 0;
 }
 
+onSelectExtent = new MapbenderEvent();
+
 var mod_overview_target = "<?php echo $e_target[0]; ?>";
 if (typeof(overview_wms) === 'undefined')overview_wms = 0;
 overview_wms = parseInt(overview_wms);
@@ -74,7 +76,12 @@
 	var targetId = $.browser.msie ? window.event.srcElement.id : e.target.id;
 	if(targetId.substr(0, mb_isBF.length) === mb_isBF){
 		mb_zF = mod_overview_target;
-		mod_box_setValidClipping(mod_box_stop(e));
+		var coordObj = od_box_stop(e);
+		mod_box_setValidClipping(coordObj);
+		var extentObj = new Extent(coordObj[0],coordObj[1],coordObj[2],coordObj[3]);
+		onSelectExtent.trigger({
+			coords : extentObj
+		});
 		return false;
 	}
 	return true;



More information about the Mapbender_commits mailing list