[OpenLayers-Dev] Toolbar Status
Christopher Schmidt
crschmidt at metacarta.com
Fri Mar 9 09:42:21 EST 2007
On Fri, Mar 09, 2007 at 03:30:47PM +0100, Steven M. Ottens wrote:
>
> On Mar 9, 2007, at 2:58 PM, Stephen Woodbridge wrote:
>
> >Christopher Schmidt wrote:
> >>
> >>
> >>So, the goal is to have 3 types of controls:
> >> * Button: A click triggers an action (like zoom in)
> >> * Modal: Turns state on temporarily. Drawing tools probably use
> >> this.
> >> * Toggles. Auto-pan might fall under this: when it's active, the
> >>map
> >> responds. when it's not, it doesn't.
> >>
> >>Do these fit all the needs address by buttons?
> >
> >Is there a need for something like a radio set for modal buttons that
> >are mutually exclusive? It can probably be built from the Modal
> >buttons,
> >but it might be nice to provide and easy way to do this in the api.
>
> A radio set would be useful; if you have for instance a series of
> editing buttons; point,line,polygon you want to be able to select on
> of the three buttons and deselect the other 2. Also if they are a
> radio set you can have multiple toolbars with mutually exclusive buttons
Yeah, that's what 'modal' buttons are: one modal button turns off all
the others within the same panel. 'toggles' are checkboxes -- they can
be on at the same time as other controls. And as I just replied to
Steven, I just made the idea of creating a toolbar of toolbars
'trivial'.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list