Re: [OpenLayers-Users] custom control.button problems

2009-01-05 Thread Heidt, Christopher M.
: Re: [OpenLayers-Users] custom control.button problems Hi You don't pass a function in the options but the return code of a function. Try this: var onTrigger = function() { alert("yo"); }; var btn = new OpenLayers.Control.Button({ trigger: onTrigger }); Cheers, Eric

Re: [OpenLayers-Users] custom control.button problems

2009-01-05 Thread Eric Lemoine
Hi You don't pass a function in the options but the return code of a function. Try this: var onTrigger = function() { alert("yo"); }; var btn = new OpenLayers.Control.Button({ trigger: onTrigger }); Cheers, Eric 2009/1/5, David Hollema : > Couple question as an openlayers newbie. > >

[OpenLayers-Users] custom control.button problems

2009-01-05 Thread David Hollema
Couple question as an openlayers newbie. * I can't get custom control.buttons to fire. What am I doing wrong? I tried in IE7 and FF and neither work properly. * When I first open the web page, the functions which are assigned to the trigger events of my custom control buttons are fired. What's