Version 0.8.0
Major changes
- Quad features have been created as a replacement for plane features. They can draw multiple convex quadrilaterals with images or solid colors as textures within a single feature instantiation. These features also support default styles or images that display while asynchronous resources load.
- A new quad example demonstrates the new capabilities of the quad feature.
- A new reprojection example demonstrates how quad features can be used to reproject a standard tile layer. It also provides an additional example of using mouse events on point features to display textual information in a popup box and to recenter the map on click.
- UI Layers will now automatically remain on top when adding new layers.
- Migrated to ESLint from jshint/jscs for style checking.
Performance improvements
Migrating from the plane feature to the new quad feature provides major performance gains for the GL tile layer. @manthey provided some benchmarks in his PR demonstrating how much this improves performance on a variety of platforms. Here is an summary of the improvements he measured:
Test | Average frame (ms) | Slow frames (%) | Worst frame (ms) |
---|---|---|---|
desktop-chrome-plane | 12.69 | 24.59 | 84.9 |
desktop-chrome-quad | 3.31 | 0.44 | 20.74 |
destop-firefox-plane | 55.25 | 55.52 | 1316.73 |
destop-firefox-quad | 7.5 | 3.82 | 41.04 |
laptop-chrome-plane | 25.55 | 60.21 | 157.15 |
laptop-chrome-quad | 3.89 | 3.31 | 62.62 |
laptop-firefox-plane | 130.04 | 95.71 | 1126.31 |
laptop-firefox-quad | 21.92 | 91.1 | 67.21 |