[Mapbender-commits] r4697 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Sep 26 02:35:05 EDT 2009
Author: christoph
Date: 2009-09-26 02:35:04 -0400 (Sat, 26 Sep 2009)
New Revision: 4697
Added:
trunk/mapbender/http/javascripts/mod_zoomOut1.js
Modified:
trunk/mapbender/http/javascripts/mod_zoomIn1.js
Log:
now a js file
Modified: trunk/mapbender/http/javascripts/mod_zoomIn1.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_zoomIn1.js 2009-09-26 06:32:27 UTC (rev 4696)
+++ trunk/mapbender/http/javascripts/mod_zoomIn1.js 2009-09-26 06:35:04 UTC (rev 4697)
@@ -5,7 +5,7 @@
* Click button, which minimizes the real world bounding box of the visible map section, doubles the scale (halfes the scale number). Image size is not affected.
*
* Files:
- * - http/javascripts/mod_zoomIn1.php
+ * - http/javascripts/mod_zoomIn1.js
*
* SQL:
* > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public,
@@ -14,7 +14,7 @@
* > e_closetag, e_js_file, e_mb_mod, e_target, e_requires, e_url)
* > VALUES('gui', 'zoomIn1', 2, 1, 'zoomIn button','Zoom in',
* > 'img','../img/button_gray/zoomIn2_off.png','',220,10,24,24,1,
- * > '','','','mod_zoomIn1.php','','mapframe1','',
+ * > '','','','mod_zoomIn1.js','','mapframe1','',
* > 'http://www.mapbender.org/index.php/ZoomIn');
*
* Maintainer:
Added: trunk/mapbender/http/javascripts/mod_zoomOut1.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_zoomOut1.js (rev 0)
+++ trunk/mapbender/http/javascripts/mod_zoomOut1.js 2009-09-26 06:35:04 UTC (rev 4697)
@@ -0,0 +1,50 @@
+/**
+ * Package: ZoomOut1
+ *
+ * Description:
+ * Click button, which doubles the real world bounding box of the visible
+ * map section, halfes the scale (doubles the scale number). Image size
+ * is not affected.
+ *
+ * Files:
+ * - http/javascripts/mod_zoomOut1.js
+ *
+ * SQL:
+ * > INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment,
+ * > e_title, e_element, e_src, e_attributes, e_left, e_top, e_width,
+ * > e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file,
+ * > e_mb_mod, e_target, e_requires, e_url) VALUES ('<app_id>','zoomOut1',
+ * > 2,1,'zoomOut button','Zoom out','img',
+ * > '../img/button_gray/zoomOut2_off.png','',245,10,24,24,1,'','','',
+ * > 'mod_zoomOut1.js','','mapframe1','',
+ * > 'http://www.mapbender.org/index.php/ZoomOut');
+ *
+ * Help:
+ * http://www.mapbender.org/ZoomOut
+ *
+ * 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
+ */
+$(this).click(function () {
+ if (!options.target) {
+ return;
+ }
+ if (!Mapbender.modules[options.target]) {
+ return;
+ }
+ Mapbender.modules[options.target].zoom(false, 2.0);
+}).mouseover(function () {
+ if (options.src) {
+ this.src = options.src.replace(/_off/, "_over");
+ }
+}).mouseout(function () {
+ if (options.src) {
+ this.src = options.src;
+ }
+});
\ No newline at end of file
More information about the Mapbender_commits
mailing list