[Mapbender-commits] r5251 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Dec 23 09:16:27 EST 2009
Author: topi
Date: 2009-12-23 09:16:26 -0500 (Wed, 23 Dec 2009)
New Revision: 5251
Added:
trunk/mapbender/http/plugins/ol_mousePosition.js
Modified:
trunk/mapbender/http/plugins/ol_keyboardDefaults.js
Log:
Modified: trunk/mapbender/http/plugins/ol_keyboardDefaults.js
===================================================================
--- trunk/mapbender/http/plugins/ol_keyboardDefaults.js 2009-12-23 14:04:46 UTC (rev 5250)
+++ trunk/mapbender/http/plugins/ol_keyboardDefaults.js 2009-12-23 14:16:26 UTC (rev 5251)
@@ -1,5 +1,5 @@
/**
- * Package: ol_eyboardDefaults
+ * Package: ol_keyboardDefaults
*
* Description:
* An OpenLayers KeyboardDefaults
Added: trunk/mapbender/http/plugins/ol_mousePosition.js
===================================================================
--- trunk/mapbender/http/plugins/ol_mousePosition.js (rev 0)
+++ trunk/mapbender/http/plugins/ol_mousePosition.js 2009-12-23 14:16:26 UTC (rev 5251)
@@ -0,0 +1,32 @@
+/**
+ * Package: ol_mousePosition
+ *
+ * Description:
+ * An OpenLayers MousePosition
+ *
+ * Files:
+ * - http/plugins/ol_mousePosition.js
+ *
+ * SQL:
+ * > <SQL for element>
+ * >
+ * > <SQL for element var>
+ *
+ * Help:
+ * http://www.mapbender.org/ol_mousePosition
+ *
+ * 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.MousePosition());
+});
+
More information about the Mapbender_commits
mailing list