Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brightness not working when initialize layer #845

Closed
ThomasG77 opened this issue Jun 29, 2013 · 2 comments
Closed

Brightness not working when initialize layer #845

ThomasG77 opened this issue Jun 29, 2013 · 2 comments

Comments

@ThomasG77
Copy link
Contributor

I get a wrong display using the code below on Chrome. On Firefox, the brightness is working fine. My Firefox version is 22.0 on Linux. My Chrome version is 28 (I've also try with version 26)

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Simple example</title>
    <link rel="stylesheet" href="http://ol3js.org/en/master/build/ol.css" type="text/css" />
    <style type="text/css">
        .map {
          height: 500px;
          width: 100%;
        }
    </style>
  </head>
  <body>
    <div id="map" class="map"></div>
    <script src="http://ol3js.org/en/master/build/ol-whitespace.js" type="text/javascript"></script>
    <script>
        var osmLayer = new ol.layer.TileLayer({
          source: new ol.source.OSM(),
          opacity: 0.6,
          brightness: 0.2
        });
        var map = new ol.Map({
          renderers: ol.RendererHints.createFromQueryData(),
          target: 'map'
        });
        map.addLayer(osmLayer);
        var myPlace = new ol.View2D({
          center: [0, 0],
          zoom: 4
        });
        map.setView(myPlace);
    </script>
  </body>
</html>

Are you able to reproduce the error?

Trying to change properties hue, saturation, contrast, brightness at http://ol3js.org/en/master/examples/bind-input.html with Chrome I encounter the same error (always working well in Firefox)

@fredj
Copy link
Member

fredj commented Jul 1, 2013

@ThomasG77 hue, saturation, contrast and brightness depend on WebGL. Go to http://get.webgl.org/ to see if your browser supports it.

@ThomasG77
Copy link
Contributor Author

It was previously working with Chrome but after check, it seems I break it with Chrome update.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants