5 Commits

Author SHA1 Message Date
Xiaoji Chen
593fa67ca6 Improve MapState class and tests (#223)
- `MapControl` takes a `MapState` instance instead of list of viewport props
- Always return a new `MapState` object after transform
- Better naming of properties and methods
- Code consistency and error checking
- Tests cover more use cases
2017-05-03 12:35:24 -07:00
Xiaoji Chen
7ef7b19860 Separating input events and semantic transform in map control (#212) 2017-05-02 17:39:14 -07:00
Ib Green
49124f33ef * Added new custom-interactions example
* Add pressKeyToRotate prop
* Support pitch > 60
* Build system updates
2017-03-24 14:37:22 -07:00
Ib Green
fa4ae3ffbb Buble+webpack2 (#169)
* Compile with buble and bundle with webpack
* Reduce number of dependencies
* Support for tree-shaking
* Standalone, easy-to-understand example with small package.json
* Tests now work under Node.js even when loading mapbox-gl.
* Fix travis config
2017-03-07 14:55:57 -08:00
Xiaoji Chen
c2ee160637 add test case for getInteractiveLayerIds 2016-09-27 16:25:42 -07:00