16 Commits

Author SHA1 Message Date
Xiaoji Chen
8c4128b65f
Port TransitionManager from dekc.gl (#411)
* Port TransitionManager from dekc.gl

* transition tests

* rename ViewportFlyToInterpolator to FlyToInterpolator

* export interpolation utils as non-experimental
2017-11-29 10:37:22 -08:00
Xiaoji Chen
93901ce698
upgrade viewport-mercator-project (#410) 2017-11-22 10:06:46 -08:00
Xiaoji Chen
1517ec8c06
Remove console error when drag distance is larger than map width/height (#398) 2017-11-07 16:30:55 -08:00
Xiaoji Chen
d316e77004 Right button drag to rotate (#381)
* right button drag to rotate
* disable drag rotate on controls
* fix prop type warnings
2017-10-13 10:10:13 -07:00
Xiaoji Chen
38193aad83 Allow controls and overlays to block map interactions (#377) 2017-10-06 14:08:48 -07:00
Xiaoji Chen
e5457f3671 Match viewport to Mapbox at low zoom levels (#317) 2017-07-12 16:20:30 -07:00
Xiaoji Chen
9492b6cbe8 Remove fitBounds util (#278) 2017-06-14 10:23:03 -07:00
Anh Mai
ba811d5842 bump mapbox-gl to 0.37.0; remove postinstall.js and postinstall script (#260) 2017-05-30 16:20:50 -07:00
Xiaoji Chen
9e0b9d760d Add fitBounds util (#256) 2017-05-25 22:13:01 -07:00
Xiaoji Chen
4a6164daa0 New EventManager (#244)
* use hammerjs as event manager

* support touch in main example
2017-05-17 14:57:16 -07:00
Xiaoji Chen
da23dde556 Popup control (#227) 2017-05-05 10:50:47 -07:00
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