Desaturate tile layer in OpenLayers 3

المشرف العام

Administrator
طاقم الإدارة
I have a OL3 map with one tile and one vector layer. Since the features on the vector layer don't stand out enough against the tile layer in the background, I want to desaturate the tile layer.

I'm aware of the Hue/Saturation Example, but this approach works only with WebGL. WebGL in turn does not support vector layers.

How can I desaturate an OpenLayers 3 tile layer when using the canvas renderer?

NOTE: I cannot desaturate the tiles on the server, because I don't control the server that hosts the tiles.



أكثر...
 
أعلى