248 Commits

Author SHA1 Message Date
Benoît Simard
6213d5758a
Fix SymbolLayer crash on style update (#2047) 2022-11-14 14:00:35 -08:00
Xiaoji Chen
80409dd4a7
Add callback to useControl hook (#1952) 2022-08-18 12:13:28 -07:00
Xiaoji Chen
f527028638
[fix] id in LayerProps should be optional (#1910) 2022-07-04 20:25:16 -07:00
Xiaoji Chen
d84d111dd1
Properly remove source on component unmount (#1866) 2022-05-23 11:02:20 -07:00
Daniel Sherman
ecb27c8d02
Fix MapProvider prop types (#1843) 2022-05-19 21:16:45 -07:00
Xiaoji Chen
2e49a545c8
More robust add/remove condition checks (#1840) 2022-04-21 11:58:22 -07:00
Xiaoji Chen
1c391281a1
Fix Popup and GeolocateControl under React StrictMode (#1836) 2022-04-21 11:57:42 -07:00
Xiaoji Chen
29aa2098fe
Fix useMap type (#1799) 2022-03-10 08:11:48 -08:00
Shane Laymance
75e40be1fb
Make onClick prop of MarkerProps optional (#1789) 2022-03-03 16:57:03 -08:00
Xiaoji Chen
b6b3b4755e
useMap() returns current map (#1763) 2022-03-01 17:46:36 -08:00
Xiaoji Chen
b48c0a040a
Add onClick callback to Marker (#1761) 2022-02-21 17:13:55 -08:00
Xiaoji Chen
d22618a9ad
Update code and docs for useControl generic type (#1762) 2022-02-21 12:44:23 -08:00
Max Nowack
554e03eaa7
Add generic to use-control for inferring return type (#1739) 2022-02-21 10:55:20 -08:00
Xiaoji Chen
f04031cfaa
Add sanity check before adding layer (#1735) 2022-02-08 10:59:37 -08:00
Xiaoji Chen
230fdaa60f
[chore] Improve documentations; fix lint warnings (#1732) 2022-02-07 16:51:32 -08:00
Xiaoji Chen
c435e16d6a
Add reuseMaps prop (#1730) 2022-02-07 16:49:02 -08:00
Xiaoji Chen
7eb927486f
Fix Popup double onClose call (#1729) 2022-02-07 14:24:11 -08:00
Andrea Amorosi
22d31d1ced
fix: set default maxPitch to 60 (#1720) 2022-02-06 10:36:17 -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
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
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
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
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
e4b44c3fed
Fix unprojection when using terrain (#1620) 2021-12-06 19:49:00 -08:00
Christian Moen
89eb8a309f
Add showUserHeading to GeolocateControl (#1580) 2021-09-24 09:02:18 -07:00
Xiaoji Chen
f413ef8aa8
Fix Popup closeOnClick behavior (#1565) 2021-09-07 09:45:48 -07:00
Xiaoji Chen
896d2ac604
Improve typing (#1568) 2021-09-07 09:45:20 -07:00
Xiaoji Chen
5607700a21
Remove double onClick invocation in useMapControl (#1567) 2021-09-07 09:45:03 -07:00
Cody Taylor
c324720c5d
Improves type definitions. Adds exports (#1534) 2021-07-28 14:52:37 -07:00
Xiaoji Chen
b1c74be56b
Support Mapbox terrain (#1483) 2021-06-04 16:22:24 -07:00
mikeslemmer
bca28cbf36
Making features available to onMouseEnter. This fixes issue 1473 (#1474) 2021-06-04 14:15:54 -07:00
Terence Tuhinanshu
55a5d596d4
Prevent attribution button from submitting forms (#1477) 2021-06-04 13:49:13 -07:00
Xiaoji Chen
520a4991d7
Remove extra props in GeolocateControl callback (#1480) 2021-06-04 13:43:52 -07:00
Xiaoji Chen
132e8390de
Only block scrolling on the overlay container itself (#1465) 2021-05-12 12:36:23 -07:00
povder
fcee28fe36
Fix return type of Layer function (#1453) 2021-05-10 13:38:16 -07:00
Xiaoji Chen
9689961331
Safety check before unprojection (#1452) 2021-05-06 12:01:32 -07:00
Xiaoji Chen
20d86a40e8
Work around for pointermove event on hidden map (#1450) 2021-05-03 15:14:15 -07:00