[OpenLayers-Commits] r2047 - sandbox/camptocamp/advancedcontrol/lib/OpenLayers/Control

commits at openlayers.org commits at openlayers.org
Wed Dec 13 10:53:05 EST 2006


Author: bertil
Date: 2006-12-13 10:53:05 -0500 (Wed, 13 Dec 2006)
New Revision: 2047

Added:
   sandbox/camptocamp/advancedcontrol/lib/OpenLayers/Control/MouseListener.js
Log:
Interface for mouse listeners

Added: sandbox/camptocamp/advancedcontrol/lib/OpenLayers/Control/MouseListener.js
===================================================================
--- sandbox/camptocamp/advancedcontrol/lib/OpenLayers/Control/MouseListener.js	                        (rev 0)
+++ sandbox/camptocamp/advancedcontrol/lib/OpenLayers/Control/MouseListener.js	2006-12-13 15:53:05 UTC (rev 2047)
@@ -0,0 +1,21 @@
+OpenLayers.Control.MouseListener = OpenLayers.Class.create();
+OpenLayers.Control.MouseListener.prototype = {
+    initialize: function () {},
+    /** Set the map property for the control. This is done through an accessor
+     *   so that subclasses can override this and take special action once 
+     *   they have their map variable set. 
+     * 
+     * @param {OpenLayers.Map} map
+     */
+    setMap: function(map) {
+        this.map = map;
+    },
+	mouseClick: function (evt) {},
+	mouseDblClick: function (evt) {},
+	mouseUp: function (evt) {},
+	mouseDown: function (evt) {console.log("test")},
+	mouseOver: 	function (evt) {},
+	mouseOut: function (evt) {},
+	mouseMove: function (evt) {},
+	mouseWheel: function (evt) {}
+}
\ No newline at end of file



More information about the Commits mailing list