Module Template: Toggle button with map interaction
From MapbenderWiki
This is a tutorial for Mapbender 2.7 and newer (note: this equals trunk at the moment, September 2009).
Requirements
This tutorials build upon "How to Write a Mapbender module", "Using the Mapbender API" and "Module Template: Toggle button". Make sure to have read it.
Objective
Create a new module for Mapbender, which is a toggle button. On mouse over, the button is highlighted. On click, the button is activated, and interacts with the map, the events mousedown, mousemove and mouseup are caught. A mouse cursor might be set. After the action has been executed, the button can be deactivated, then these events will be removed from the target.
