420 Commits

Author SHA1 Message Date
Benoît Simard
49618fd317 Fix SymbolLayer crash on style update (#2047) 2022-12-02 10:11:27 -08:00
Xiaoji Chen
3584b16c92 Add callback to useControl hook (#1952) 2022-08-18 12:16:13 -07:00
Xiaoji Chen
bcf8d2f69a Handle initialViewState.bounds when reusing map (#1923) 2022-07-20 17:54:18 -07:00
Xiaoji Chen
21dd7c17e9 Fix queryTerrainElevation (#1922) 2022-07-20 17:54:18 -07:00
Xiaoji Chen
60a560f5d4 [fix] id in LayerProps should be optional (#1910) 2022-07-04 20:25:58 -07:00
Xiaoji Chen
f3e078bc0d Fix terrain panning (#1894) 2022-06-17 10:16:27 -07:00
Xiaoji Chen
b1fb7b277b Fire pointer events even if no interactive features are involved (#1895) 2022-06-17 10:16:20 -07:00
Xiaoji Chen
bb61242155 Properly remove source on component unmount (#1866) 2022-05-23 11:02:45 -07:00
Daniel Sherman
d172d26aaf Fix MapProvider prop types (#1843) 2022-05-19 21:17:27 -07:00
Xiaoji Chen
51d9043285 Fix mismatched terrain between transforms (#1855) 2022-05-13 10:48:23 -07:00
Xiaoji Chen
e5673201e3 More robust add/remove condition checks (#1840) 2022-04-21 12:00:35 -07:00
Xiaoji Chen
40da7db47c Fix Popup and GeolocateControl under React StrictMode (#1836) 2022-04-21 12:00:35 -07:00
Xiaoji Chen
192749794d Fix rendering bug using terrain (#1841) 2022-04-21 12:00:35 -07:00
Xiaoji Chen
6244d55dd0 Fix useMap type (#1799) 2022-03-13 16:50:45 -07:00
Shane Laymance
7125805e67 Make onClick prop of MarkerProps optional (#1789) 2022-03-03 16:57:32 -08:00
Xiaoji Chen
5e44164d8c useMap() returns current map (#1763) 2022-03-01 17:49:56 -08:00
Xiaoji Chen
c4fc3505c9 Fix terrain label rendering (#1778) 2022-03-01 17:49:50 -08:00
Xiaoji Chen
90fbd74b43 Add onClick callback to Marker (#1761) 2022-02-21 17:15:41 -08:00
Xiaoji Chen
2797acf479 Update code and docs for useControl generic type (#1762) 2022-02-21 17:15:41 -08:00
Max Nowack
95b463de24 Add generic to use-control for inferring return type (#1739) 2022-02-21 17:15:41 -08:00
Xiaoji Chen
e1940ad99d Fix handling of initial cursor value (#1737) 2022-02-09 11:31:58 -08:00
Xiaoji Chen
33cd502536 Add sanity check before adding layer (#1735) 2022-02-08 17:11:35 -08:00
Xiaoji Chen
9164e321fb [chore] Improve documentations; fix lint warnings (#1732) 2022-02-07 16:52:17 -08:00
Xiaoji Chen
f666ef87d2 Add reuseMaps prop (#1730) 2022-02-07 16:52:12 -08:00
Xiaoji Chen
53490ee409 Fix Popup double onClose call (#1729) 2022-02-07 14:24:54 -08:00
Andrea Amorosi
6a43e8571b fix: set default maxPitch to 60 (#1720) 2022-02-06 10:37:10 -08:00
Xiaoji Chen
00b42800b3 [v7] Add mapLib API (#1703) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
c1c9c290f4 [v7] Support inline styling for all components (#1702) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
6db0d53413 Refactor Mapbox class (#1701) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
3c1cd56b81 Improve typing (#1695) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
24d7e212d5 [v7] Fix popup className update in mapbox v1/maplibre (#1694) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
ade2cd4050 [v7] Fix double controls in strict mode (#1678) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
e46021e5c3 [v7] Fix AttributionControl prop typo (#1679) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
86f364a41e [v7] Handle unmount order (#1676) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
f93bf48e91 [v7] Fix synchronization during transition (#1675) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
6e0e011a51 [v7] Update MapRef (#1674) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
ebf64a767c [v7] Bug fixes (#1673) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
6e859b007e Fix resize synchronization (#1670) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
e4cc369d9a [v7] Add fog, light, terrain props (#1669) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
a338e2b918 [v7] support global settings with MapProps (#1668) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
6cbfb048df [v7] Clean up typings and expose more utility types (#1667) 2022-01-26 18:16:35 -08:00
Xiaoji Chen
3f200a0bfe [v7] utility hooks (#1663) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
55ce87d3f7 [v7] Update examples (#1659) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
a488f36296 [v7] Add Layer and Source (#1657) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
971c02f1ca [v7] Control components (#1656) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
1d1d562f73 [v7] Marker and Popup (#1655) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
5b674be3c4 [v7] Map component (#1652) 2022-01-26 18:16:34 -08:00
Xiaoji Chen
170217280e Typescript dev setup 2022-01-26 18:16:31 -08:00
Ahmed Tarek
a3d5dba152
add support for style prop in Marker (#1696) 2022-01-25 11:56:40 -08:00
Xiaoji Chen
630186185c
Fix crash in React 18 StrictMode (#1680) 2022-01-10 20:01:07 -08:00