437 Commits

Author SHA1 Message Date
Xiaoji Chen
8ad14cafcf
Restore fog, light and terrain types on MapProps (#2206) 2023-06-18 18:39:56 -07:00
Xiaoji Chen
288f8df4d3
Make source prop of Layer optional (#2200) 2023-06-14 09:56:43 -07:00
Xiaoji Chen
4db0c038b4
Add ref forwarding to Marker and Popup (#2191) 2023-06-05 12:31:13 -07:00
Xiaoji Chen
bb085ba217
Split exports into separate endpoints (#2178) 2023-05-31 16:38:12 -07:00
Xiaoji Chen
2244babaae
Make supported() check optional (#2179) 2023-05-24 08:55:53 -07:00
Xiaoji Chen
51a6a2c8f1
Make mapbox-gl an optional dependency (#2175) 2023-05-13 20:07:47 -07:00
Vili Ketonen
d24fa180ab
Fix reuseMaps with maplibre-gl ResizeObserver not changing observee (#2174) 2023-05-09 13:30:48 -07:00
Xiaoji Chen
9a5339f357
Remove defaultProps and displayName (#2173) 2023-05-09 12:27:05 -07:00
Xiaoji Chen
1fb860e2ca
Force map reload upon reuse (#2160) 2023-04-13 12:45:29 -07:00
Xiaoji Chen
0144ea5802
Fix mouse events regression (#2158) 2023-04-12 09:35:27 -07:00
Xiaoji Chen
c81683a791
Improve map reuse consistency (#2155) 2023-04-11 10:43:57 -07:00
Jungzl
1c94856298
fix: query only the layers that have been loaded (#2128) 2023-04-11 10:43:16 -07:00
Martin Petrov
86efdc0433
Inherit parent height inmapboxgl-children div (#2132) 2023-04-11 10:42:26 -07:00
Xiaoji Chen
074a4094b1
set global settings before checking support status (#2138)
Co-authored-by: Chris Gervang <chrisgervang@users.noreply.github.com>
2023-03-06 12:23:48 -08:00
Adam Krebs
2845d6033c
Change return type of useControl to return T instead of any (#2137)
When the useControl file is compiled to the d.ts file, its return value is lost
2023-03-06 12:12:18 -08:00
Francisco Pérez Sampayo
109c334bdf
Change fog and terrain types to match Mapbox types. (#2106) 2023-01-21 14:46:36 -08:00
Hieu Lam
9baded6e51
fix reuseMaps not removing map children (#2092) 2023-01-07 12:09:53 -08:00
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
ba9396cfe0
Handle initialViewState.bounds when reusing map (#1923) 2022-07-20 17:52:39 -07:00
Xiaoji Chen
fceb5f7fcb
Fix queryTerrainElevation (#1922) 2022-07-20 12:53:33 -07:00
Xiaoji Chen
f527028638
[fix] id in LayerProps should be optional (#1910) 2022-07-04 20:25:16 -07:00
Xiaoji Chen
8db441cb36
Fix terrain panning (#1894) 2022-06-17 10:14:55 -07:00
Xiaoji Chen
9dbe4f0f6c
Fire pointer events even if no interactive features are involved (#1895) 2022-06-17 10:14:43 -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
bb9f1f45d8
Fix mismatched terrain between transforms (#1855) 2022-05-12 18:12:58 -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
048cb2099d
Fix rendering bug using terrain (#1841) 2022-04-21 11:49:13 -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
bf5514908f
Fix terrain label rendering (#1778) 2022-02-24 16:23:45 -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
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