226 Commits

Author SHA1 Message Date
Xiaoji Chen
954832e2f9 Improve reuse map example 2019-01-28 12:21:10 -08:00
Joe Jiang
039abd3658 Bug fix: implement onLoad event calling when reuseMaps is set to true (#704) 2019-01-28 12:18:53 -08:00
Karl-Aksel Puulmann
1b941b2980 Don't query interactive layer ids before map has loaded (#708) 2019-01-28 12:18:23 -08:00
Karl-Aksel Puulmann
dedf110b13 Attach a default onError handler, logging to console.error (#706) 2019-01-28 12:18:05 -08:00
Xiaoji Chen
0e04ce74ff Remove excessive fields from NavigationControl's callback argument (#702) 2019-01-28 12:17:59 -08:00
Casey Cesari
c818fa2936 Reverse polarity of compass bearing rotation (#694) 2019-01-20 23:20:48 -08:00
David Schnurr
0737de1866 Fix dragging marker with offset (#693) 2019-01-18 19:06:48 -08:00
Xiaoji Chen
130a077347 Disable console logging of package version (#688) 2019-01-11 12:35:04 -08:00
Xiaoji Chen
be6175efdc Fix map controller class extensibility (#674) 2018-12-06 13:50:21 -08:00
Xiaoji Chen
c63333e302 Fix crash when viewState does not contain pitch or bearing (#671) 2018-12-04 15:41:19 -08:00
Xiaoji Chen
bcf77ec000 Remove math.gl from dependencies (#666) 2018-12-04 12:08:37 -08:00
Matt Harker
77f9e6b7dc Cache the interactive context to prevent context thrashing (#664) 2018-12-04 12:08:28 -08:00
Xiaoji Chen
e5886807b9 Fix popup bug when closeOnClick is off (#660) 2018-11-16 17:32:27 -08:00
Xiaoji Chen
cb1d55b86f Bump maxZoom support to 24 (#659) 2018-11-14 11:37:54 -08:00
Xiaoji Chen
349f3b5894 Set up flow (#651) 2018-11-05 11:02:52 -08:00
Xiaoji Chen
f036614fb9 API audit round 2 (#652) 2018-11-05 11:02:52 -08:00
XiaokaiUber
71aeb8976a added new interruption mode: UPDATE (#631) 2018-11-03 23:53:44 -07:00
Oleg
83f786ef89 Don't override visibility style when visible is true (#650) 2018-11-02 11:01:46 -07:00
Xiaoji Chen
6d96107661
various bug fixes (#648) 2018-11-02 08:21:23 -07:00
David Schnurr
c1b880ab06
Fix usage of map ref in interactive-map (#645) 2018-11-01 16:36:49 +00:00
Xiaoji Chen
fb2fe2bac2 4.0.0-beta.4 2018-10-31 18:16:07 -07:00
Xiaoji Chen
0b127414d1
Do not call onResize during render (#643) 2018-10-31 16:38:12 -07:00
Xiaoji Chen
443d634604
API audit (#638) 2018-10-31 11:07:19 -07:00
Xiaoji Chen
003aaa337d
Upgrade function ref to createRef (#637) 2018-10-27 15:57:48 -07:00
Stefan Dobrev
6dec476043 Add support for Create React App access token environment variable (#633) 2018-10-26 22:06:41 -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
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
b210060baa
Handle zoom center during linear transition (#625) 2018-10-18 17:20:46 -07:00
Xiaoji Chen
bb2230b19c
Add sortByDepth option to Popup component (#623) 2018-10-16 11:18:56 -07:00
Franz
3a2ef63a34 Refactor/remove bower dependency (#615) 2018-10-15 09:07: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
e99d0c9e0c
Fix additional-overlays example (#616)
Follow up of https://github.com/uber/react-map-gl/pull/613
2018-10-12 16:18:22 -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
7f0909fff1
Support external GL context (#603) 2018-09-26 16:14:06 -07:00
Xiaoji Chen
c670f09977
Fix: Stylesheet check (#601)
`mapboxgl-missing-css` was removed in 0.46.0
2018-09-26 16:12:43 -07:00
Xiaoji Chen
0c289423f5
use class properties for binding (#598) 2018-09-24 12:36:44 -07:00
Bogdan Chadkin
aeed2db249 Remove commonjs from globals (#592) 2018-09-12 14:47:44 -07:00
Xiaoji Chen
cfa348fc7b
Add more interaction states (PR 2/3) (#573)
- Add `isPanning` `isRotating` and `isZooming` to interaction state
- Display current interaction state in example
2018-08-21 20:09:52 -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
1238140a5d
fix capture* props for overlay components (#565) 2018-08-04 19:45:28 -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