[Mapbender-commits] r8646 - branches/2.7/http/plugins trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 4 00:32:04 PDT 2013


Author: verenadiewald
Date: 2013-06-04 00:32:04 -0700 (Tue, 04 Jun 2013)
New Revision: 8646

Modified:
   branches/2.7/http/plugins/mb_zoomBar.js
   trunk/mapbender/http/plugins/mb_zoomBar.js
Log:
show current scale on slider while sliding

Modified: branches/2.7/http/plugins/mb_zoomBar.js
===================================================================
--- branches/2.7/http/plugins/mb_zoomBar.js	2013-06-03 21:18:40 UTC (rev 8645)
+++ branches/2.7/http/plugins/mb_zoomBar.js	2013-06-04 07:32:04 UTC (rev 8646)
@@ -110,6 +110,7 @@
 		},
 		slide: function (event, ui) {
 			var scale = options.level[options.level.length-1-ui.value];
+			$zoomBar.attr("title", "1:" + scale);
 			that.events.slided.trigger({
 				scale: scale
 			});

Modified: trunk/mapbender/http/plugins/mb_zoomBar.js
===================================================================
--- trunk/mapbender/http/plugins/mb_zoomBar.js	2013-06-03 21:18:40 UTC (rev 8645)
+++ trunk/mapbender/http/plugins/mb_zoomBar.js	2013-06-04 07:32:04 UTC (rev 8646)
@@ -110,6 +110,7 @@
 		},
 		slide: function (event, ui) {
 			var scale = options.level[options.level.length-1-ui.value];
+			$zoomBar.attr("title", "1:" + scale);
 			that.events.slided.trigger({
 				scale: scale
 			});



More information about the Mapbender_commits mailing list