233 Commits

Author SHA1 Message Date
Ib Green
4518b64adc Add pressKeyToRotate prop to new MapControls (#202)
* Fix pressKeyToRotate

* Additional transpilation fixes
2017-03-27 17:25:53 -07:00
Ib Green
6643d6f210 Merge pull request #201 from uber/event-handling-separation
Separate event handling from Mapbox
2017-03-27 15:52:44 -07:00
Ib Green
4868ef89d3 Revert to babel transpilation, remove JSX from overlays 2017-03-27 15:33:55 -07:00
Ib Green
2ebb90a6bc Fix yarn.lock 2017-03-24 16:03:26 -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
da55fffe07 remove d3-selection and extra example map (#189)
* remove d3-selection

* remove extra example map
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
72a0324cb8 Component split (#170)
* StaticMap and InteractiveMap separates event handling concerns from map display concerns.
2017-03-07 14:57:37 -08:00
Ib Green
00cce5d63f Split out ChoroplethExample into its own folder (#175) 2017-03-07 14:56:26 -08: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
Anh Mai
76455325aa v2.0.2 v2.0.2 2017-02-09 17:58:42 -08:00
Anh Mai
2d50a48415 run flow remove types in javascript through postinstall.js (#192) 2017-02-09 17:52:30 -08:00
Anh Mai
4dda7293ed update package.json engines to reflect new node and npm requirements (#188)
* update package.json engines to reflect new node and npm requirements

* remove x
2017-01-27 01:38:43 -08:00
Anh Mai
cbfca042e8 update to mapbox-gl 0.32.1 2017-01-26 15:22:35 -08:00
Anh Mai
cea06a1342 v2.0.1 v2.0.1 2017-01-24 11:57:42 -08:00
Anh Mai
1715a7a360 update postinstall script to use less linux commands 2017-01-24 11:54:35 -08:00
Anh Mai
ea36250cae fix typo in pitch calculation (#185) 2017-01-24 08:04:41 -08:00
Anh Mai
fe35df517f v2.0.0 v2.0.0 2017-01-17 13:53:08 -08:00
voby
ec8192b454 Typo fix in draggable-points overlay (#178) 2017-01-13 13:44:55 -08:00
Anh Mai
ed4f7aef3d update mapbox-gl to 0.31.0 2017-01-13 13:39:22 -08:00
Anh Mai
ff4f3dc1a3 add postinstall script to remove flow annotation from mapbox code 2017-01-13 13:39:22 -08:00
Ib Green
383a45ff54 Update README.md with more info on Webpack 2017-01-10 08:42:07 -08:00
Anh Mai
8dc905cc6a update to mapbox-gl 0.29.0; add maxZoom as a prop (#171)
* update to mapbox-gl 0.29.0; add maxZoom as a prop

* revert to array convention for startDragLntLat and convert to object where needed
2017-01-08 15:15:30 -08:00
Balthazar Gronon
ecdc2bf115
Add onLoad event handler 2017-01-06 18:46:14 -08:00
Xiaoji Chen
454747f0a0 bump up babel-preset-stage-2 version to avoid build errors (#166)
* bump up babel-core and presets versions to avoid build errors
* match `npm start` port to that in the `README`
2017-01-03 18:21:48 -08:00
Thomas Forrer
1625df150d use 'changedTouches' for 'touchend'/'touchcancel' events (#164)
closes #139
2016-12-29 16:31:40 -08:00
Ib Green
190dc3d575 Remove mapbox Point dependency from map-interactions. (#161)
* Remove mapbox Point dependency from map-interactions. Update eslint settings. Use static for propTypes.

* Update examples

* Address review feedback. Update propTypes in example layers.
2016-12-20 14:07:29 -08:00
Jonathan Warning
b4e46055c6 Ensure fitBounds doesn't return NaN zoom value (#159) 2016-12-09 15:24:28 -06:00
Anh Mai
1761a2ccd9 Merge pull request #158 from uber/propagate-wheel
Propagate wheel event
2016-12-06 16:10:28 -08:00
Balthazar Gronon
1996d1bccb
Propagate wheel event
Closes #85.
2016-12-06 15:16:57 -08:00
Anh Mai
9e8eff21a1 Merge pull request #140 from forrert/onclick
Adds `onClick` prop handler
2016-12-06 14:45:14 -08:00
Jonathan Warning
37fca99708 Add project method to HTML Overlay (#104) 2016-12-05 13:20:29 -08:00
Balthazar Gronon
49d7cd6b49 Merge pull request #155 from Apercu/readme-updates
Refactor and fix readme
2016-12-05 12:01:52 -08:00
Balthazar Gronon
a3db7d5d69
Refactor and fix readme 2016-12-02 18:16:51 -08:00
Yang Wang
ad808bed84 1.7.2 2016-10-28 18:02:02 -07:00
Yang Wang
df3dd2867e Merge pull request #146 from uber/perspective-shortcut
use command | shift | ctrl | alt to enable perspective mode
2016-10-28 17:56:53 -07:00
Yang Wang
4ac4e07348 update change log 2016-10-28 17:46:52 -07:00
Yang Wang
28d0b33b67 use command | shift | ctrl | alt to enable perspective mode 2016-10-28 17:21:58 -07:00
Thomas Forrer
e9bcc7a0d5 add onClick prop handler
adds a property `onClick` that allows adding a handler
to be called with the coordinates when the map is clicked.

refs #49
2016-10-21 23:07:16 -07:00
Thomas Forrer
12033a1755 add example to demonstrate click events 2016-10-21 22:05:24 -07:00
Xiaoji Chen
a62c69bacc 1.7.1 v1.7.1 2016-10-18 17:05:02 -07:00
Xiaoji Chen
4ec7651143 use mapbox 0.26 2016-10-18 17:04:54 -07:00
Xiaoji Chen
8a80a2db1d Update changelog for 1.7.0 2016-10-10 13:41:35 -07:00
Xiaoji Chen
33be625e35 1.7.0 v1.7.0 2016-10-10 13:36:47 -07:00
Xiaoji Chen
06e31235fa Fix bug where onClickFeatures is fired after dragging (#133)
* Fix bug where onClickFeatures is fired after panning and rotating
* Rename dragged to didDrag
2016-10-09 10:35:56 -07:00
Xiaoji Chen
c2ee160637 add test case for getInteractiveLayerIds 2016-09-27 16:25:42 -07:00
Xiaoji Chen
c5dd69982c Provide a way to control per-layer interactivity (#131)
* queryRenderedFeatures only check layers with style prop interactive: true
* query all layers if no interactive layer is found
* update JSDoc for onHoverFeatures and onClickFeatures
2016-09-27 16:11:09 -07:00
Ib Green
a8eef84d4a 1.6.1 v1.6.1 2016-09-21 15:09:03 -07:00
Ib Green
f6f41633de CHANGELOG 1.6.1 2016-09-21 15:08:36 -07:00