40 Commits

Author SHA1 Message Date
Oleg
83f786ef89 Don't override visibility style when visible is true (#650) 2018-11-02 11:01:46 -07:00
Xiaoji Chen
0b127414d1
Do not call onResize during render (#643) 2018-10-31 16:38:12 -07:00
Xiaoji Chen
003aaa337d
Upgrade function ref to createRef (#637) 2018-10-27 15:57:48 -07:00
Xiaoji Chen
db7c380326
Fix render error when using viewState instead of flat props (#632) 2018-10-24 11:01:01 -07:00
Xiaoji Chen
64852bef94
Add map to context (#627) 2018-10-23 13:48:04 -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
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
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
Ib Green
8fc7fd6694
Break mapbox-gl import (#494) 2018-04-05 13:34:55 -07:00
Balthazar Gronon
f420faab64 Manually bind methods (#463) 2018-03-08 11:39:19 -08:00
Xiaoji Chen
4d575ac6fd
Remove immutable.js dependency (#433) 2018-01-06 18:55:27 -08:00
Xiaoji Chen
9daeddaa3f
relax mapStyle proptype check (#421) 2017-12-09 13:04:43 -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
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
Ib Green
a4b4d12ad9 Break out remaining diff style code from StaticMap (#367) 2017-09-24 16:29:48 -07:00
Xiaoji Chen
b2ce2dfc45 use ref callback properly (#319) 2017-07-25 13:58:25 -07:00
Xiaoji Chen
5e65c18ee5 fix breakage on node (#292) 2017-06-27 18:15:34 -07:00
Patrick Ranspach
ad7069446e Add onLoad callback to static map props and componentDidMount (#269) 2017-06-07 14:17:37 -07:00
Xiaoji Chen
f527c35ee2 Api Audit (#251) 2017-05-24 15:27:37 -07:00
Xiaoji Chen
a7d5e67d59 Clean up map props (#229) 2017-05-05 15:55:17 -07:00
Xiaoji Chen
82436255f0 Attribution Control and Navigation Control (#228) 2017-05-05 12:18:58 -07:00
Xiaoji Chen
1cef144dc1 Add marker component (#225) 2017-05-04 12:17:26 -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
Arya Seghatoleslami
59bb1c9168 Update static-map.js (#214) 2017-05-01 07:23:10 -07:00
Joe Duncan
8f62ae6089 use prop-types package (#206) 2017-04-17 10:40:00 -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
da55fffe07 remove d3-selection and extra example map (#189)
* remove d3-selection

* remove extra example map
2017-03-24 14:37:22 -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