openlayers/ol3 — pull request #159 by elemoine (2013-01-24 21:42:09+00:00)
Title: Simplify map renderer

This PR suggests a simplification where the map, instead or the map renderer, listens to view, backgroundcolor, and size changes.

With the frameState work the map renderer has become more stupid. It just receives orders from the map (in the form of `renderFrame` calls). This PR is in line with that philosophy.

Note that the map renderer still listeners to layer add/remove. This is used to create and destroy layer renderers when layers are added and removed. I guess we could even do that in `renderFrame` instead of listening to add/remove events.