MapofLife/MOL — Issue #72: Layer opacity slider
Author: eightysteele
Created: 2012-02-10 16:13:53+00:00
State: open

Add a opacity slider to the layer widget using an HTML5 range slider element:

``

We should have a course `step`, like 25. When the slider event fires, we'll need to remove the layer tiles from the map, and then add them back using the new opacity values (converted to something between 0 and 1.0) in the `ImageMapTypeOptions`. See:

http://code.google.com/apis/maps/documentation/javascript/reference.html#ImageMapTypeOptions

Note that this will likely require a simple patch to the CartoCSS JS library, allowing us to pass in the layer opacity value. It will be a patch similar to this one that passed through the layer name value:

https://github.com/eightysteele/cartodb-gmapsv3/commit/5f6ef57e9b5b5a3bca2769111c619740438f2b86