openlayers/openlayers — pull request #233 by jorix (2012-02-20 19:11:09+00:00)
Title: Treat UI and non-UI controls differently

This proposal was developed by **elemoine**, this is just an update to current trunk.

See http://trac.osgeo.org/openlayers/ticket/3180.

Small adjustments in respect the initial proposal:

* The `MouseDefaults` and `MouseToolbar` controls are not changed since currently are in `deprecated.js`
* The `control.outsideViewport = (control.div != null);` of `Map.addControlToMap` has been moved into `if(typeof control.draw === 'function') {`
* In `Control.js`: `outsideViewport` property has been documented, and expanded documentation on `createDiv` method.
* In `deprecated.js` has been added the `Control.draw` method.