[Mapbender-commits] r4998 - in branches/2.6/http: html javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Nov 16 12:18:34 EST 2009
Author: mschulz
Date: 2009-11-16 12:18:33 -0500 (Mon, 16 Nov 2009)
New Revision: 4998
Modified:
branches/2.6/http/html/mod_treefolderPlain.php
branches/2.6/http/javascripts/mapnf.php
Log:
added element_var enlargetreewidth; http://trac.osgeo.org/mapbender/ticket/559
Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php 2009-11-16 15:24:35 UTC (rev 4997)
+++ branches/2.6/http/html/mod_treefolderPlain.php 2009-11-16 17:18:33 UTC (rev 4998)
@@ -122,6 +122,7 @@
if (typeof(alerterror) === 'undefined')alerterror = 'false';
if (typeof(openfolder) === 'undefined')openfolder = 'false';
if (typeof(handlesublayer) === 'undefined')handlesublayer = 'false';
+if (typeof(enlargetreewidth) === 'undefined') enlargetreewidth = 'false';
if (typeof(menu) === 'undefined')menu = '';
if (typeof(redirectToMetadataUrl) !== 'undefined' && redirectToMetadataUrl == "false") {
redirectToMetadataUrl = false;
@@ -162,6 +163,19 @@
eventAfterMapRequest.register(updateScale);
eventAfterMapRequest.register(updateCheckState);
+if (enlargetreewidth) {
+ eventAfterInit.register(function(){
+ var initialWidth = parseInt($('#treeGDE').css("width"));
+ $('#treeGDE').bind("mouseover", function() {
+ $(this).css({'width':initialWidth+enlargetreewidth, 'zIndex':'300'});
+ $(this).mousewheel();
+ });
+ $('#treeGDE').bind("mouseout", function() {
+ $(this).css({'width':initialWidth, 'zIndex':'3'});
+ });
+ });
+}
+
if(wmsbuttons != "true")
jst_highlight = false;
Modified: branches/2.6/http/javascripts/mapnf.php
===================================================================
--- branches/2.6/http/javascripts/mapnf.php 2009-11-16 15:24:35 UTC (rev 4997)
+++ branches/2.6/http/javascripts/mapnf.php 2009-11-16 17:18:33 UTC (rev 4998)
@@ -50,7 +50,7 @@
mapObject = mb_registerMapObj('', '<?php echo $e_id; ?>', null,<?php echo $e_width; ?>, <?php echo $e_height; ?>);
- $(document).mousewheel(function (e, delta) {
+ $("#"+mapObject.elementName).mousewheel(function (e, delta) {
if (sum_delta == 0) {
mapTimeout = setTimeout(function () {
lastScrollPosition = mapObject.getMousePosition(e);
More information about the Mapbender_commits
mailing list