61 Commits

Author SHA1 Message Date
Xintong Xia
27cf6d1731
Fix geolocate control crash (#934) 2019-11-07 21:10:47 -08:00
Xiaoji Chen
41b4cc16b8
Fix more crashes when source/layer components are removed (#933) 2019-10-31 16:46:18 -07:00
Xiaoji Chen
f5011fe40d
Avoid mutating style objects during normalization (#926) 2019-10-29 16:14:23 -07:00
Xintong Xia
bf6788edaa
Fix render test (#917) 2019-10-24 17:03:19 -07:00
Xiaoji Chen
2c6672593c
Add React Source and Layer components (PR 1/2) (#896) 2019-09-26 11:51:06 -07:00
Hossein Moradi Davijani
5555e66c9a Add babel react preset and migrate react components to jsx (#875) 2019-09-16 11:22:56 -07:00
1chandu
645100f4c2
Viewport flyTo Interpolation: add support for auto duration and other options. (#866)
* Viewport flyTo Interpoloation: add support for auto duration, curve, speed, screenSpeed and maxDuration
2019-09-05 22:31:22 -07:00
Xiaoji Chen
c9daf7fb82
Fix interaction state when using mouse wheel (#840) 2019-07-08 11:32:48 -07:00
Xiaoji Chen
3e77f2a76e Add render tests (#828) 2019-07-02 10:50:36 -07:00
Xiaoji Chen
f19d24edea
Dev tools setup (#803) 2019-05-31 13:32:47 -07:00
Xiaoji Chen
1f4f0759de
Fix transition manager tests (#798) 2019-05-29 11:46:37 -07:00
Xintong Xia
1da1398c06
Upgrade dev tools to ocular (#780) 2019-05-07 20:49:08 -07:00
Xintong Xia
41e8db1533
loose TransitionManager test criteria (#755) 2019-03-14 13:23:12 +08:00
Xiaoji Chen
1e96af8fb4
Consolidate InteractiveContext and StaticContext into one (#718) 2019-02-07 14:35:36 -08:00
Xiaoji Chen
cb173b0ac4
Fix main example dependencies (#679) 2018-12-18 10:09:59 -08:00
Xiaoji Chen
ed3df886fe
Remove math.gl from dependencies (#666) 2018-12-04 12:07:16 -08:00
Xiaoji Chen
349f3b5894 Set up flow (#651) 2018-11-05 11:02:52 -08:00
Xiaokai Li
0bbff933fc Fixed unreliable test cases due to float precion ($654) 2018-11-05 11:02:23 -08:00
XiaokaiUber
71aeb8976a added new interruption mode: UPDATE (#631) 2018-11-03 23:53:44 -07:00
Xiaoji Chen
b210060baa
Handle zoom center during linear transition (#625) 2018-10-18 17:20:46 -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
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
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
0a49b84e6a
Move map visibility check to StaticMap (#548) 2018-07-19 16:05:15 -07:00
Ib Green
00f4d1b724
New build system. es6 dist. webpack 4. (#489) 2018-03-29 12:29:30 -07:00
Ib Green
9ca4310c27
Test directory reorganization (#488) 2018-03-29 10:52:15 -07:00
Xiaoji Chen
46d1d42763
Clean up MapState class (#437) 2018-01-10 10:02:21 -08:00
Xiaoji Chen
300327f5dd
Fix browser test (#432) 2018-01-04 12:16:59 -08:00
Collin Donahue-Oponski
0aa18ee7ae Add transformRequest prop to map components. (#426)
* Add map prop/option `transformRequest`.

* Upgrade sinon package to webpack-compatible version.

* Fix test for map onLoad prop.

* Add test for new Map prop `transformRequest`.

* Document and cleanup new `tranformRequest` prop on Map component.
2017-12-19 00:54:34 -08:00
Xiaoji Chen
4d06d10db9
should not set layerIds when querying unknown mapStyle (#423) 2017-12-09 16:07:46 -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
1517ec8c06
Remove console error when drag distance is larger than map width/height (#398) 2017-11-07 16:30:55 -08: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
Xiaoji Chen
38193aad83 Allow controls and overlays to block map interactions (#377) 2017-10-06 14:08:48 -07:00
Ib Green
05312660ee Package.json changes to support React 16 (#357) 2017-10-04 13:27:35 -07:00
Xiaoji Chen
e5457f3671 Match viewport to Mapbox at low zoom levels (#317) 2017-07-12 16:20:30 -07:00
Xiaoji Chen
9492b6cbe8 Remove fitBounds util (#278) 2017-06-14 10:23:03 -07:00
Anh Mai
ba811d5842 bump mapbox-gl to 0.37.0; remove postinstall.js and postinstall script (#260) 2017-05-30 16:20:50 -07:00
Xiaoji Chen
9e0b9d760d Add fitBounds util (#256) 2017-05-25 22:13:01 -07:00
Xiaoji Chen
148cabe705 Fix EventManager import under node (#252) 2017-05-24 15:52:01 -07:00
Xiaoji Chen
4a6164daa0 New EventManager (#244)
* use hammerjs as event manager

* support touch in main example
2017-05-17 14:57:16 -07:00
Xiaoji Chen
da23dde556 Popup control (#227) 2017-05-05 10:50:47 -07:00
Xiaoji Chen
593fa67ca6 Improve MapState class and tests (#223)
- `MapControl` takes a `MapState` instance instead of list of viewport props
- Always return a new `MapState` object after transform
- Better naming of properties and methods
- Code consistency and error checking
- Tests cover more use cases
2017-05-03 12:35:24 -07:00
Xiaoji Chen
7ef7b19860 Separating input events and semantic transform in map control (#212) 2017-05-02 17:39:14 -07:00