[OpenLayers-Dev] OpenLayers.Handler has APIMethod's!
eric.c2c at gmail.com
Tue Nov 13 08:37:59 EST 2007
On Nov 13, 2007 12:28 PM, Lourens Veen <veen at science.uva.nl> wrote:
> On Tuesday 13 November 2007 10:11:38 Eric Lemoine wrote:
> > Hello
> > OpenLayers.Handler includes methods annotated as APIMethod's. I'm a
> > bit surprised with that. To me, handlers belong to OpenLayers
> > internals and shouldn't be part of OpenLayers API. What do you think?
> I just wrote a custom control called SelectBox. It'll let you select features
> in one or more vector layers by either clicking (all features under the mouse
> will be selected) or dragging a box (all features completely within the box
> will be selected). I'm hoping this will help deal with overlapping features.
> Because OpenLayers has this nice Handler/Control architecture, setting this up
> was a breeze. I used the Box handler (used by the ZoomBox control) from my
> own SelectBox control, and all I had to do was write the actual selection
> code based on the input from the handler.
The Box handler has no APIMethods. So I guess things could change from
under your feet...
More information about the Dev