[Mapbender-commits] r5249 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 23 08:58:22 EST 2009


Author: topi
Date: 2009-12-23 08:58:22 -0500 (Wed, 23 Dec 2009)
New Revision: 5249

Added:
   trunk/mapbender/http/plugins/ol_panZoomBar.js
Log:


Added: trunk/mapbender/http/plugins/ol_panZoomBar.js
===================================================================
--- trunk/mapbender/http/plugins/ol_panZoomBar.js	                        (rev 0)
+++ trunk/mapbender/http/plugins/ol_panZoomBar.js	2009-12-23 13:58:22 UTC (rev 5249)
@@ -0,0 +1,32 @@
+/**
+ * Package: ol_panZoomBar
+ *
+ * Description:
+ * An OpenLayers Layer Switch
+ * 
+ * Files:
+ *  - http/plugins/ol_panZoomBar.js
+ *
+ * SQL:
+ * > <SQL for element> 
+ * > 
+ * > <SQL for element var> 
+ *
+ * Help:
+ * http://www.mapbender.org/ol_panZoomBar
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Christoph_Baudson
+ * 
+ * License:
+ * Copyright (c) 2009, Open Source Geospatial Foundation
+ * This program is dual licensed under the GNU General Public License 
+ * and Simplified BSD license.  
+ * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
+ */
+
+Mapbender.events.init.register(function () {
+	var ol_map = Mapbender.modules[options.target[0]];	
+	ol_map.addControl(new OpenLayers.Control.PanZoomBar());	
+});
+



More information about the Mapbender_commits mailing list