From 954d0b351a70f5c29f64e610c306c576bb80adb7 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 26 Aug 2006 15:26:10 +0000 Subject: [PATCH] Better documentation of need to set controls: [] on constructor to turn off MouseDefaults. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- doc/Control.MouseToolbar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Control.MouseToolbar.txt b/doc/Control.MouseToolbar.txt index 5f48fe6221..05344079ad 100644 --- a/doc/Control.MouseToolbar.txt +++ b/doc/Control.MouseToolbar.txt @@ -1,6 +1,6 @@ OpenLayers.Control.MouseToolbar -Control to set up mouse handling. This includes clicks, double clicks, scrollwheel events, and mouse movement. There are a number of functions which act as the default handlers for these events: if you wish to create your own mouse control which behaves differently, you should create a subclass of MouseToolbar, replacing the functions whose behavior you wish to change. Additionally, a toolbar of images can be clicked to start events, as well as using the keyboard shortcuts. +Control to set up mouse handling. This includes clicks, double clicks, scrollwheel events, and mouse movement. There are a number of functions which act as the default handlers for these events: if you wish to create your own mouse control which behaves differently, you should create a subclass of MouseToolbar, replacing the functions whose behavior you wish to change. Additionally, a toolbar of images can be clicked to start events, as well as using the keyboard shortcuts. Note that if you wish to use the MouseToolbar, you *must* add a 'controls' option to the map constructor, otherwise you will have both MouseDefaults and MouseToolbar on the map, which will not work. * Constructor OpenLayers.Control.MouseToolbar({OpenLayers.Pixel|position}, {String|direction}) -- Creates a new control. The direction of the control can be either "vertical" or "horizontal". The default is vertical.