401 Commits

Author SHA1 Message Date
Max Nowack
554e03eaa7
Add generic to use-control for inferring return type (#1739) 2022-02-21 10:55:20 -08:00
Xiaoji Chen
e7fff52bd4
Fix handling of initial cursor value (#1737) 2022-02-09 11:30:59 -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
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
Kuro
5ea0a1008f
Update map-state.d.ts (#1626) 2021-12-28 14:01:25 -08:00
Xiaoji Chen
e4b44c3fed
Fix unprojection when using terrain (#1620) 2021-12-06 19:49:00 -08:00
Derek Ellis
cb05a5324b
Omit container prop on mapOptions in types (#1603) 2021-11-15 15:14:46 -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
Xiaoji Chen
8adebc9ac2
Avoid invoking viewport updates when clamped at minZoom/maxZoom (#1564) 2021-09-07 09:44:41 -07:00
Maxim
376dc5cc08
Fix stale onLoad and onError event handlers (#1505) 2021-09-06 11:26:05 -07:00
Ayumu Nozawa
e21500aec9
Fix to not save to savedMap when reuseMaps is false (#1555) 2021-09-06 11:25:05 -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