[Mapbender-commits] r3866 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 7 14:38:30 EDT 2009


Author: christoph
Date: 2009-04-07 14:38:30 -0400 (Tue, 07 Apr 2009)
New Revision: 3866

Modified:
   trunk/mapbender/http/javascripts/mapnf.php
Log:
http://trac.osgeo.org/mapbender/ticket/433

Modified: trunk/mapbender/http/javascripts/mapnf.php
===================================================================
--- trunk/mapbender/http/javascripts/mapnf.php	2009-04-07 18:32:47 UTC (rev 3865)
+++ trunk/mapbender/http/javascripts/mapnf.php	2009-04-07 18:38:30 UTC (rev 3866)
@@ -22,18 +22,30 @@
 
 (function () {
 
+<?php
+include(dirname(__FILE__) . "/../include/dyn_js.php");
+?>
+
 	var mapTimeout;
 	var	sum_delta = 0;
 	var lastTimestamp;
 	var lastScrollPosition;
 	var mapObject;
 	
-	
-	
 	eventInitMap.register(function init_mod_map1(){
 			
 		mapObject = mb_registerMapObj('', '<?php echo $e_id; ?>', null,<?php echo $e_width; ?>, <?php echo $e_height; ?>);
 		
+		
+		try {
+			if (restrictedExtent !== '') {
+				mapObject.setRestrictedExtent(restrictedExtent);
+			}
+		}
+		catch (e) {
+			new Mb_notice("Restricted extent not set via element variable.");
+		}
+		
 		$(document).mousewheel(function (e, delta) {
 			if (sum_delta == 0) {
 				mapTimeout = setTimeout(function () {



More information about the Mapbender_commits mailing list