camptocamp/cgxp — pull request #318 by asaunier (2012-12-14 13:10:54+00:00)
Title: Mapopacityslider improvements

This PR brings 2 improvements:
* if ``orthoRef`` is set to null/''/false in the plugin's config, no ortho layer is added and the opacity slider is not displayed => only the baselayer combo is shown.
* it is possible to insert the tool for instance in the tbar or bbar of the "center" region (above/below the map) by adding an "actionTarget" param to the plugin's config.

I have noticed a small problem with the "actionTarget" mode: since the tool is actually rendered only when the application is "ready" (because we need to retrieve the list of layers, which is not set yet when addActions() is called), the height of the toolbar might not be enough to show the tool completely (the worst case being when no other tool is added to the toolbar => nothing is shown at all). A workaround could be to use CSS to set the height of the tool containing div but perhaps there is a better solution?