[OpenLayers-Dev] A generic button class:
jdege at korterra.com
Tue Jul 31 11:03:27 EDT 2007
> From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
> Sent: Tuesday, July 31, 2007 6:41 AM
> To: Jeff Dege
> Cc: Tim Schaub; dev at openlayers.org
> Subject: Re: [OpenLayers-Dev] A generic button class:
> On 30-Jul-07, at 4:50 PM, Jeff Dege wrote:
> > [...]
> > At which point, things are simple enough that I'm not at all sure
> > we gain anything by defining a separate Button class.
> are you going to modify your own code to stop using the Button
> control and use the last case,
Well, I did, in one case, just to make sure the example I used would
work, before I posted.
> or do you still see it as being
> desirable to have a separate 'Button' control? Given that OL is
> usually fairly semantically verbose already, I don't see a real
> problem with having a distinct Button control.
Thinking about it, I'm realizing that using OpenLayers.Control is only
became clear to me because of my experience with using my Button
control. A distinct Button control doesn't add much except perhaps for
a bit of conceptual clarity. And that might be worth it, by itself.
So I've updated the code in Ticke #872 to reflect the changes suggested
More information about the Dev