326 Commits

Author SHA1 Message Date
Xiaoji Chen
ffb88d41e0
Add eventRecognizerOptions prop (#1302) 2021-01-22 14:54:28 -08:00
Xiaoji Chen
f47444c966
Controller inertia (#1303) 2021-01-22 14:54:11 -08:00
Xiaoji Chen
386984d3e7
Misc component bug fixes (#1301)
* more geolocate control bug fixes

* InteractiveMap should catch all query failures
2021-01-20 08:06:00 -08:00
Xiaoji Chen
844bca9c18
Update deckgl-overlay example (#1298) 2021-01-15 14:50:45 -08:00
Xiaoji Chen
067edda9b6
Align control component APIs (#1297) 2021-01-15 13:09:55 -08:00
Xiaoji Chen
be79b2f6d8
Minor fixes to GeolocateControl (#1296) 2021-01-15 12:53:13 -08:00
Xiaoji Chen
4cc662d0f2
Add AttributionControl (#1295) 2021-01-15 12:52:26 -08:00
Xiaoji Chen
53390c916f
Smooth zoom on scroll (#1288) 2021-01-11 11:09:11 -08:00
Xiaoji Chen
a830ba10b6
Defer onInteractionStateChange callback (#1287) 2021-01-08 10:26:42 -08:00
Xiaoji Chen
95ae3e4d79
Prevent overlay container from scrolling on focus (#1286) 2021-01-06 19:17:07 -08:00
Xiaoji Chen
19ab7398b0
Fix no token warning message (#1289) 2021-01-06 19:16:48 -08:00
Xiaoji Chen
850ae97d54
Clean up and document MapContext and useMapControl APIs (#1278) 2021-01-04 19:22:32 -08:00
Xiaoji Chen
5f32dcae6e
Fix React error when transition is triggered (#1277) 2021-01-02 18:46:42 -08:00
Xiaoji Chen
d043b08e15
Refactor StaticMap and InteractiveMap into functional components (#1271) 2020-12-29 10:50:55 -08:00
Xiaoji Chen
d2617870a3
Resolve prettier conflict (#1274) 2020-12-21 10:35:11 -08:00
Xiaoji Chen
65e3242680
Migrate to TypeScript: initial commit (#1268) 2020-12-21 09:58:10 -08:00
elliotwutingfeng
45555af4d6
Add support for 'sky' layer type to Layer component (#1270) 2020-12-21 09:49:35 -08:00
Xiaoji Chen
ae6aef4714
6.0 release prep (#1263) 2020-12-16 20:43:50 -08:00
Xiaoji Chen
9ea2a301a9
Fix dynamic position tests (#1255) 2020-12-10 12:49:12 -08:00
Eric Soroos
c072d088a0
Fix dynamic position offscreen (#1253) 2020-12-10 11:23:11 -08:00
Xiaoji Chen
6adfb09d15
Fix bug where Source does not render its children on first render (#1250) 2020-12-08 18:28:14 -08:00
Xiaoji Chen
aae80369ed
Move controls to functional component (#1242)(#1243)(#1244)(#1245) 2020-12-05 13:28:10 -08:00
Xiaoji Chen
b54bb1618d
Elevate map to top-level MapContext (#1233) 2020-11-26 16:34:33 -08:00
Xiaoji Chen
2503013e42
Safe check layer props (#1225) 2020-11-16 10:28:03 -08:00
Xiaoji Chen
ded6af3734
Safety check before calling cloneElement (#1219) 2020-11-04 11:55:32 -08:00
Xiaoji Chen
363c143c64
Fix user location dot offset (#1220) 2020-11-04 11:55:07 -08:00
Marcus Williams
57eddad939
Add capturePointerMove to NavigationControl (#1215) 2020-11-04 11:06:10 -08:00
wllrd
507fab7a60
Use valid fill-extrusion value for layer type (#1199) 2020-11-04 10:57:36 -08:00
Xiaoji Chen
f98c70e082
Add label prop to FullscreenControl (#1197) 2020-10-07 20:14:49 -07:00
Xiaoji Chen
8542be946a
Fix IE compatibility (#1195) 2020-10-07 20:10:42 -07:00
Xiaoji Chen
180100ac31
Support updating vector source (#1196) 2020-10-07 20:10:02 -07:00
makeupsomething
98fbcddfc8
Add types for layer type and source-layer (#1192) 2020-10-07 19:31:18 -07:00
Cody Taylor
5dcddc969c
Fix for layout and paint diffing logic (#1194) 2020-10-07 16:29:56 -07:00
Xiaoji Chen
53973368c0
Replace react resizer with ResizeObserver (#1174) 2020-09-08 10:21:12 -07:00
Xiaoji Chen
ca9b8ab916
Always rerender overlay after map initialization (#1172) 2020-09-01 12:37:11 -07:00
Anurag Kyal
4ecc5bf8e8
[geolocate] fix auto when location blocked (#1126) 2020-06-05 13:22:09 -07:00
Xiaoji Chen
77245dc44c
NavigationControl: fall back to the latest UI version (#1124) 2020-06-04 15:47:07 -07:00
Jonas Witt
1d79ad61e2
Check if map style is loaded before removing source or layer (#1123) 2020-06-04 11:52:58 -07:00
Anurag Kyal
120f55efe3
[Geolocate] Auto trigger when component loads (#1116)
Co-authored-by: Anurag Kyal <anurag.kyal@snapchat.com>
2020-06-04 11:50:35 -07:00
Xiaoji Chen
8fb9b56bb5
Fix test failure (#1082) 2020-04-21 16:09:11 -07:00
Xiaoji Chen
086e1d4e05
Fix edge case in transitionDuration:auto (#1080) 2020-04-20 14:07:06 -07:00
Xiaoji Chen
83933663dc
Correct interaction state on double click (#1081) 2020-04-20 14:06:53 -07:00
davidnx
f01cbdb01b
Fix broken link to "About Mapbox Tokens" (#1053) 2020-03-26 09:51:55 -07:00
Grady Kuhnline
9dec821920
Fix issue where translate by partial pixels causes blurry rendering (#1039) 2020-02-25 09:13:24 -08:00
Bogdan Chadkin
1c42df0ba2
Migrate to import * as React from 'react' (#1038) 2020-02-25 08:04:09 -08:00
Xiaoji Chen
30830b727b
Sanity check in source/layer update (#1022) 2020-02-10 14:57:13 -08:00
Xiaoji Chen
a4a0ef0e50
Fix issue where adding popup enables double click recognizer (#1013) 2020-02-03 12:56:10 -08:00
Xiaoji Chen
a3c195bf86
Fix GeolocateControl error when used with StaticMap (#1012) 2020-02-03 12:55:56 -08:00
Xiaoji Chen
c570c2f73a
Re-export setRTLTextPlugin plugin (#1010) 2020-01-29 11:24:02 -08:00
Xiaoji Chen
2d6f8f6ec0
Deep compare source props (#985) 2020-01-12 21:36:57 -08:00