4e69b2bb8b67072366d562516e40e0c7191b245a
Previously, the map renderer would listen for layers being added and removed from the layers collection, and would create and remove layer renderers in response to these events. With this change, layer renderers are only created or removed when renderFrame is called, which leads to somewhat simpler code. We still need to listen to changes to the layers collection, but now these only trigger a new render. This new approach also has an advantage when layers change order. Swapping the order of two layers involves removing one and re-inserting it elsewhere. With the old approach, this would cause the deletion and re-creation of the layer renderer. With this new approach, the layer renderer is preserved.
OpenLayers 3
Welcome to OpenLayers 3!
To see OpenLayers 3 in action you can look at the live examples on http://openlayers.github.io/ol3/master/examples/. If you want to contribute to OpenLayers 3 please read the CONTRIBUTING page.
Description
Languages
JavaScript
99%
CSS
0.6%
Handlebars
0.3%
Shell
0.1%
