86 Commits

Author SHA1 Message Date
Xiaoji Chen
db7c380326
Fix render error when using viewState instead of flat props (#632) 2018-10-24 11:01:01 -07:00
Xiaoji Chen
60423f49a4
[v4.0] Add interaction callbacks (#626) 2018-10-23 14:17:36 -07:00
Xiaoji Chen
5f0e56e844
Remove click delay in map controls when captureDoubleClick is on (#628) 2018-10-23 14:02:46 -07:00
Xiaoji Chen
64852bef94
Add map to context (#627) 2018-10-23 13:48:04 -07:00
Xiaoji Chen
bb2230b19c
Add sortByDepth option to Popup component (#623) 2018-10-16 11:18:56 -07:00
Xiaoji Chen
91550c7c18
Remove usage of deprecated interactive properties in map styles (#621) 2018-10-13 21:27:47 -07:00
Xiaoji Chen
8b75b1ed81
Bug fixes for auto-resize mode (#619) 2018-10-13 19:55:50 -07:00
Xiaoji Chen
d3dd7b1803
Fix test-browser (#617) 2018-10-12 16:18:33 -07:00
Xiaoji Chen
e594cb03b9
Support relative map size (#614) 2018-10-12 13:48:26 -07:00
Xiaoji Chen
28c38848f0
Upgrade to new React context API (#613) 2018-10-10 15:50:50 -07:00
Bogdan Chadkin
f045fabc32 Provide static browser/node targets (#599)
* Provide static browser/node targets

Ref
  https://github.com/uber/react-map-gl/issues/557
  https://github.com/uber-web/mjolnir.js/pull/22

* Upgrade mjolnir dependency
2018-09-29 16:00:41 -07:00
Xiaoji Chen
0c289423f5
use class properties for binding (#598) 2018-09-24 12:36:44 -07:00
David Schnurr
9c302ae840
Add drag and drop support for Marker (#576) 2018-08-13 11:23:44 -07:00
Xiaoji Chen
fbdcbf3891
Expose interaction state to callbacks (#571)
- add `onInteractionStateChange` callback
- expose interaction states (e.g. `isDragging`) to `onViewStateChange`/`onViewportChange` callbacks.
2018-08-09 15:28:09 -07:00
Xiaoji Chen
1642e81dae
add disableTokenWarning prop (#564) 2018-08-04 19:45:06 -07:00
Xiaoji Chen
571d9c5420
Remove immutable & use Mapbox's style diffing (#559) 2018-08-03 10:47:56 -07:00
Xiaoji Chen
49f503ec02 Fix queryRenderedFeatures (#560) 2018-08-03 10:15:05 -07:00
Xiaoji Chen
0a49b84e6a
Move map visibility check to StaticMap (#548) 2018-07-19 16:05:15 -07:00
Xiaoji Chen
eab9e2a05c
Fix captureClick in popup component (#532)
https://github.com/uber/react-map-gl/issues/304

- Handle `capture*` prop change
- Fix the issue where `captureClick` does not work on Popup components if click results in closing the popup
2018-06-18 16:17:38 -07:00
Xiaoji Chen
e3e513e0fa
Add onContextMenu prop (#529) 2018-06-13 16:07:53 -07:00
Ib Green
ca0ff1a9b3
Support onViewStateChange in InteractiveMap and NavigationControl (#518) 2018-06-13 16:03:12 -07:00
John Conway
cfb63e0e6b Add support for use in electron environments (#525)
When running code inside electron browser windows, process.browser is undefined. This adds is-electron.js to check if the environment is running inside an electron browser window with nodeIntegration set to true which is a valid browser environment.

See:
https://github.com/uber/luma.gl/blob/master/src/utils/is-electron.js
https://github.com/uber/luma.gl/blob/master/src/utils/is-browser.js
https://github.com/cheton/is-electron
https://github.com/electron/electron/issues/2288
2018-06-13 15:58:30 -07:00
Xiaoji Chen
cfe86f0b22
Add touchAction prop (#528)
For https://github.com/uber/react-map-gl/issues/506
2018-06-13 15:53:41 -07:00
Xiaoji Chen
c6551f099d
upgrade to latest dependencies (#505) 2018-04-18 13:48:34 -07:00
Ib Green
8fc7fd6694
Break mapbox-gl import (#494) 2018-04-05 13:34:55 -07:00
Anh Mai
1594dd1f15
Add null check to BaseControl ref callback (#479) 2018-03-11 00:30:46 -08:00
Balthazar Gronon
f420faab64 Manually bind methods (#463) 2018-03-08 11:39:19 -08:00
Luca Falasco
55b6496329 Add showZoom and showCompass options (#448)
Include options to show/hide zoom and compass buttons in NavigationControl as from Mapbox API: https://www.mapbox.com/mapbox-gl-js/api/#navigationcontrol
2018-02-05 14:31:38 -08:00
Jonas Jensen
c78fba17d1 Add this._map sanity check in getMap() (#454) 2018-02-04 10:55:44 -08:00
Xiaoji Chen
4d575ac6fd
Remove immutable.js dependency (#433) 2018-01-06 18:55:27 -08:00
1chandu
62beb5d61c
Fix deprecation warning (#430) 2017-12-21 16:56:55 -08:00
Xiaoji Chen
1e6723eb79
[3.2.0] Implement touch rotate (#424) 2017-12-13 09:58:24 -08:00
Xiaoji Chen
325632da61
Controls should not register events that it doesn't capture (#422) 2017-12-09 16:10:15 -08:00
Xiaoji Chen
9daeddaa3f
relax mapStyle proptype check (#421) 2017-12-09 13:04:43 -08:00
Xiaoji Chen
d08aca4f6a
Fix eventManager error on map unmount (#419) 2017-12-06 12:11:26 -08:00
Xiaoji Chen
9c4dd206ed
remove double render hack (#418) 2017-12-04 18:58:37 -08:00
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
f5ac3ac296
Fix console error at map creation (#404) 2017-11-10 12:28:39 -08:00
Xiaoji Chen
ab4e9b8865 Only show token error if mapbox data is used (#400) 2017-11-10 04:29:42 -08:00
Mo Kouli
37ec42e4fe [Fix] Set componentWillUnmount to noop along with componentDidMount (#402) 2017-11-09 15:44:21 -08:00
Xiaoji Chen
25c3b795ba Port TransitionManager from deck.gl (#383) 2017-10-21 17:48:06 -07:00
Xiaoji Chen
47b105ad08 add keyboard support (#382) 2017-10-13 18:44:29 -07: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
Rishat Gabaydullov
8bf1e94155 Extend control elements with custom classNames (#378) 2017-10-12 08:55:15 -07:00
Xiaoji Chen
38193aad83 Allow controls and overlays to block map interactions (#377) 2017-10-06 14:08:48 -07:00
Ib Green
5cafff8f30 Fixes to no-token warning (#373) 2017-10-04 12:54:29 -07:00
Ib Green
82fd7e5da4 No token warning (#370) 2017-09-26 12:22:15 -07:00
Ib Green
8e77bcad33 New reusable map class integrated with StaticMap React component (#361) 2017-09-24 16:48:52 -07:00