[OpenLayers-Dev] Rico deprecation

Tim Schaub tschaub at opengeo.org
Mon Dec 12 19:59:04 EST 2011


On Sat, Dec 10, 2011 at 9:48 AM, Peter Robins
<openlayers at peterrobins.co.uk> wrote:
> we can also get rid of the Rico reference in build/license.txt, no?

Good catch.

https://github.com/openlayers/openlayers/commit/92ea378729738defedc381a7fbb3ca98b6448664

With a full build (including Rico) using Closure Compiler this license
will still be displayed.

> On 7 December 2011 06:16, Eric Lemoine <eric.lemoine at camptocamp.com> wrote:
>> Hi
>>
>> So we currently use Rico for the following:
>>
>> - LayerSwitcher
>> - AnchoredBubble
>>
>> For the LayerSwitcher corners are rounded if the roundedCorners option is
>> set to true, which is the default.
>>
>> <https://github.com/openlayers/openlayers/pull/37> suggests removing Rico
>> entirely.
>>
>> I fully agree with the general idea. But here's the deprecation plan I'm
>> proposing:
>>
>> - The AnchoredBubble popup doesn't make sense if Rico is no longer there to
>> round its corners. And rounding a popup's corners should be done using CSS
>> by the application developer. So I'd suggest that we deprecate
>> AnchoredBubble entirely. For 2.12 we can just mark it as deprecated in the
>> API docs, and make its constructor display a deprecation warning. After 2.12
>> we can move it to deprecated.js.
>>
>> - Leave the Rico lib where it currently is for now, and move it to
>> deprecated.js after 2.12 is released.
>>
>> - For LayerSwitcher we remove the `@include
>> Rico.js` statement, mark the roundedCorners option as deprecated in the API
>> docs, change its default value to false, and make the constructor display a
>> deprecation message if roundedCorners is true. With 2.12 users would need to
>> explicitely include Rico.js to have rounded corners for their layer
>> switchers. After 2.12 they would need to include deprecated.js (where the
>> Rico lib will be).
>>
>> What do you think?
>>
>> --
>> Eric Lemoine
>>
>> Camptocamp France SAS
>> Savoie Technolac, BP 352
>> 73377 Le Bourget du Lac, Cedex
>>
>> Tel : 00 33 4 79 44 44 96
>> Mail : eric.lemoine at camptocamp.com
>> http://www.camptocamp.com
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev



-- 
Tim Schaub
OpenGeo http://opengeo.org/
Expert service straight from the developers.


More information about the Dev mailing list