mousewheelZoom

Description

Zoom in/out with the mousewheel.  Specify maps in target field.

Files

  • http/javascripts/mod_mousewheelZoom.js
  • http/extensions/jquery.mousewheel.min.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('<gui_id>','mousewheelZoom',
2,1,'adds mousewheel zoom to map module (target)','Mousewheel zoom',
'div','','',NULL ,NULL ,NULL ,NULL ,NULL ,'','','div',
'mod_mousewheelZoom.js','../extensions/jquery.mousewheel.min.js',
'mapframe1','','');

INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('<gui_id>', 'mousewheelZoom', 'factor', '2',
'The factor by which the map is zoomed on each mousewheel unit' ,'var');

Help

http://www.mapbender.org/MousewheelZoom

Maintainer

http://www.mapbender.org/User:Christoph_Baudson

Parameters

factor[optional] {Float} The factor by which the map is zoomed on each mousewheel unit.  Default is 2.

License

Copyright © 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

Close