[Mapbender-commits] r4832 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Oct 20 08:20:43 EDT 2009
Author: christoph
Date: 2009-10-20 08:20:42 -0400 (Tue, 20 Oct 2009)
New Revision: 4832
Modified:
branches/2.6/http/javascripts/mapnf.php
Log:
id dynamic
srs option
Modified: branches/2.6/http/javascripts/mapnf.php
===================================================================
--- branches/2.6/http/javascripts/mapnf.php 2009-10-20 12:17:14 UTC (rev 4831)
+++ branches/2.6/http/javascripts/mapnf.php 2009-10-20 12:20:42 UTC (rev 4832)
@@ -18,7 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-
?>
(function () {
@@ -41,16 +40,16 @@
var lastScrollPosition;
var mapObject;
+ eventAfterInit.register(function () {
+ var mapObject = getMapObjByName('<?php echo $e_id; ?>');
+ mapObject.skipWmsIfSrsNotSupported =
+ skipWmsIfSrsNotSupported === 1 ? true : false;
+ });
-
eventInitMap.register(function init_mod_map1(){
- mapObject = mb_registerMapObj('', 'mapframe1', null,<?php echo $e_width; ?>, <?php echo $e_height; ?>);
+ mapObject = mb_registerMapObj('', '<?php echo $e_id; ?>', null,<?php echo $e_width; ?>, <?php echo $e_height; ?>);
- mapObject.skipWmsIfSrsNotSupported =
- skipWmsIfSrsNotSupported === 1 ? true : false;
-
-
$(document).mousewheel(function (e, delta) {
if (sum_delta == 0) {
mapTimeout = setTimeout(function () {
More information about the Mapbender_commits
mailing list