453 Commits

Author SHA1 Message Date
Xiaoji Chen
5abe426e92
Update common type for compatibility (#2448) 2024-12-18 23:23:01 -08:00
Michael Krasnyk
2c369d0612
fix: change transformation setters call order (#2391) 2024-07-05 12:31:37 -07:00
Kilian Finger
ca03f55acc
Allow disabling RTLTextPlugin and load lazy (#2312) 2023-12-18 10:56:55 -08:00
Xiaoji Chen
ed70d8e6b2
Switch to ESM module (#2281) 2023-09-12 10:30:27 -07:00
Xiaoji Chen
45c36151c5
Use shadow transform for queryRenderedFeatures call (#2280) 2023-09-12 10:16:17 -07:00
Xiaoji Chen
2c0312e415
Fix resetting cursor style (#2279) 2023-09-12 10:15:23 -07:00
Xiaoji Chen
f903e44593
Re-export native types where possible (#2263) 2023-08-24 09:36:37 -07:00
Xiaoji Chen
7f7505af2d
Fix useMap return type (#2262) 2023-08-21 11:25:11 -07:00
Xiaoji Chen
566ba68292
Fix LngLatBounds type (#2260) 2023-08-21 10:30:05 -07:00
Noam Lin
837e54f156
fix missing types (#2259) 2023-08-20 12:08:49 -07:00
Xiaoji Chen
9645b7531d
Import style and event types from specific base libraries (#2252) 2023-08-17 18:56:05 -07:00
William Ghelfi
6e166cf75c
Fix typechecking (#1798) (#2250) 2023-08-11 13:41:28 -07:00
Xiaoji Chen
16f8860548
Fix globe/mercator projection transition (#2229) 2023-07-13 19:12:16 -07:00
Xiaoji Chen
5d68c5bfc1
Fix crash updating settings (#2222) 2023-07-06 16:09:08 -07:00
Xiaoji Chen
e3a064d06b
Remove redeclaration of react type (#2219) 2023-07-05 11:21:40 -07:00
Xiaoji Chen
c15e571943
Remap event types (#2207) 2023-06-22 10:44:57 -07:00
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