246 Commits

Author SHA1 Message Date
Xiaoji Chen
7ef7b19860 Separating input events and semantic transform in map control (#212) 2017-05-02 17:39:14 -07:00
Xiaoji Chen
c6d6db9c8e 3.0.0-alpha.8 2017-05-02 15:54:16 -07:00
Xiaoji Chen
0b69851601 clean up InteractiveMap class (#219) 2017-05-02 10:37:37 -07:00
Xiaoji Chen
f7f52939a8 3.0.0-alpha.7 2017-05-01 17:15:15 -07:00
Xiaoji Chen
c0bae3db4d Consistent handling of map children (#217)
- Assign the same class name to children container between InteractiveMap and StaticMap
- Always render map children under the same node (avoid unmount/mount when the map is shown/hidden)
2017-05-01 17:11:54 -07:00
Xiaoji Chen
d88b723c45 3.0.0-alpha.6 2017-05-01 13:56:03 -07:00
Ib Green
b4b5c9b5e8 Fix test browser script (#216) 2017-05-01 09:43:35 -07:00
Arya Seghatoleslami
59bb1c9168 Update static-map.js (#214) 2017-05-01 07:23:10 -07:00
Xiaoji Chen
b26c6521c1 Fix various map control bugs (#211)
- Smooth rotation
- Smooth pan
- Zoom around mouse position
2017-04-27 00:14:23 -07:00
Prayag Verma
9f44405b0d Fix a typo in Readme (#205)
accompanies → accompanied
2017-04-17 10:40:26 -07:00
Joe Duncan
8f62ae6089 use prop-types package (#206) 2017-04-17 10:40:00 -07:00
Eric Socolofsky
6e3a934613 On npm start, install example deps if not already installed. (#208)
* On `npm start`, install example deps if not already installed.
Fixes #207.

* dep -> devdep
2017-04-12 09:37:30 -07:00
Ib Green
21a6c21e30 Remove imports of global module (#204)
* Remove imports of global module
2017-03-29 16:56:00 -07:00
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