1

Current version of OL 3 is 3.11.2 , I've seen in old example (3.8) there is support for brightness / contrast : http://openlayers.org/en/v3.8.1/examples/brightness-contrast.html

But newer versions don't support such feature.

Any ways to affect the layers brightness/contrast ?

1

This is what it says in the upgrade notes:

The experimental setHue, setContrast, setBrightness, setSaturation, and the corresponding getter methods have been removed. These properties only worked with the WebGL renderer. If are interested in applying color transforms, look for the postcompose event in the API docs. In addition, the ol.source.Raster source provides a way to create new raster data based on arbitrary transforms run on any number of input sources.

3
  • 1
    Sorry , I didn't understand this answer. Is there a chance for an example how to do such a task ? I've tried to look for the API and didn't see. My goal is to set the base layer darker when user is outside in the sun and want darker image – Alophind Nov 27 '15 at 21:09
  • 1
    Can you point me to an example which will help me do such task ? – Alophind Dec 4 '15 at 22:15
  • @Alophind any workaround for this ? – isuruAb Mar 14 '17 at 4:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.