27 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
Ivan Starkov
128f72f769 Fix of Interactive map always needs a double render to render children (#413) 2017-11-27 14:07:53 -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
Ib Green
05312660ee Package.json changes to support React 16 (#357) 2017-10-04 13:27:35 -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
148cabe705 Fix EventManager import under node (#252) 2017-05-24 15:52: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
4868ef89d3 Revert to babel transpilation, remove JSX from overlays 2017-03-27 15:33:55 -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
Anh Mai
d28d5cb432 Fix flow build process
Fix unit tests. README updates. Add browser tests
Adapt exhibits for react-map-gl
2017-03-24 14:37:00 -07:00
Ib Green
05cc1f163d ES6 tests now run untranspiled in Node.js (#172)
* ES6 tests now run directly in Node.js.

* Create `examples` folder to contain multiple standalone examples.

* Fix precommit hook
2017-03-07 14:56:26 -08: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
Balthazar Gronon
ecdc2bf115
Add onLoad event handler 2017-01-06 18:46:14 -08:00
Xiaoji Chen
c2ee160637 add test case for getInteractiveLayerIds 2016-09-27 16:25:42 -07:00
Ib Green
52fefd7f9a Add fitBounds test 2016-08-22 16:48:52 -07:00
Ib Green
64d11620b0 Add testron based testing
Add autobind-decorator to dependencies
Remove projectionMatrix from map state
Use tape-catch instead of tape for tests.
2016-06-22 07:35:43 -07:00
Ib Green
8ae5e20c78 ES6/JSX port.
Examples running under ES6
Remove dist folder from git repo
Support for React 14 in tests. Add envify to tests.
Add props for bearing and pitch
Ensure map.resize() happens after render()
Added resize handling to examples
Add CHANGELOG
Ensure onChangeViewport is called on resize and with fresh projectionMatrix in onMouseRotate
Specify a version range for react.
Fix example overlay imports and remove map style batching per mapbox-gl 0.18
Updating mabox-gl to 0.20
Use tape-catch
2016-06-21 14:35:13 -07:00
Victor Powell
53c21b7fd9 Add framework for adding tests. Rename MapboxGLMap to MapGL. Fix repo link. 2015-10-10 18:13:36 -07:00