O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Common operations on layers

All raster layers inherit from ol.layer.Layer.

The following table is the list of available properties. You can also use them with vector although it's not required in this chapter:

Name

Type

Description

brightness

number|undefined

This property sets the layer brightness. See Wikipedia webpage (https://en.wikipedia.org/wiki/Brightness) for more information.

contrast

number|undefined

This property sets the layer contrast.

hue

number|undefined

This property sets the layer hue. You can discover more about hue with the Wikipedia page, https://en.wikipedia.org/wiki/Hue.

opacity

number|undefined

This property sets the layer opacity. Possible values are between 0 and 1. The default value is

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required