[OpenLayers-Dev] Custom control handlers
Alexandre Dube
adube at mapgears.com
Mon Dec 22 11:30:44 EST 2008
Hi devs,
Controls have a "handler" property, but no "handlers". By default, in
Controls.js, on activation, it checks this.handler and activate it.
Which of these solutions is the best when you have multiple handlers
for a new custom control :
- register an on.("activate", function(){}) to activate its handlers
- create a new activate function for the customized control that
handles the handlers property
- modify Controls.js, add a handlers property and modify the activate
function to also check if handlers exist and activate all its handlers.
The same goes for deactivation.
Any tips ?
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Dev
mailing list