341 Commits

Author SHA1 Message Date
Xiaoji Chen
e99d0c9e0c
Fix additional-overlays example (#616)
Follow up of https://github.com/uber/react-map-gl/pull/613
2018-10-12 16:18:22 -07:00
Xiaoji Chen
e594cb03b9
Support relative map size (#614) 2018-10-12 13:48:26 -07:00
Xiaoji Chen
28c38848f0
Upgrade to new React context API (#613) 2018-10-10 15:50:50 -07:00
Bogdan Chadkin
f045fabc32 Provide static browser/node targets (#599)
* Provide static browser/node targets

Ref
  https://github.com/uber/react-map-gl/issues/557
  https://github.com/uber-web/mjolnir.js/pull/22

* Upgrade mjolnir dependency
2018-09-29 16:00:41 -07:00
Xiaoji Chen
7f0909fff1
Support external GL context (#603) 2018-09-26 16:14:06 -07:00
Xiaoji Chen
c670f09977
Fix: Stylesheet check (#601)
`mapboxgl-missing-css` was removed in 0.46.0
2018-09-26 16:12:43 -07:00
Xiaoji Chen
0c289423f5
use class properties for binding (#598) 2018-09-24 12:36:44 -07:00
Bogdan Chadkin
aeed2db249 Remove commonjs from globals (#592) 2018-09-12 14:47:44 -07:00
Xiaoji Chen
cfa348fc7b
Add more interaction states (PR 2/3) (#573)
- Add `isPanning` `isRotating` and `isZooming` to interaction state
- Display current interaction state in example
2018-08-21 20:09:52 -07:00
David Schnurr
9c302ae840
Add drag and drop support for Marker (#576) 2018-08-13 11:23:44 -07:00
Xiaoji Chen
fbdcbf3891
Expose interaction state to callbacks (#571)
- add `onInteractionStateChange` callback
- expose interaction states (e.g. `isDragging`) to `onViewStateChange`/`onViewportChange` callbacks.
2018-08-09 15:28:09 -07:00
Xiaoji Chen
1238140a5d
fix capture* props for overlay components (#565) 2018-08-04 19:45:28 -07:00
Xiaoji Chen
1642e81dae
add disableTokenWarning prop (#564) 2018-08-04 19:45:06 -07:00
Xiaoji Chen
571d9c5420
Remove immutable & use Mapbox's style diffing (#559) 2018-08-03 10:47:56 -07:00
Xiaoji Chen
49f503ec02 Fix queryRenderedFeatures (#560) 2018-08-03 10:15:05 -07:00
Xiaoji Chen
0a49b84e6a
Move map visibility check to StaticMap (#548) 2018-07-19 16:05:15 -07:00
Ændrew Rininsland
8504a2a7f4 Enables extra options to be passed to mapbox-gl constructor. Fixes #545. (#546) 2018-07-19 13:51:01 -07:00
Xiaoji Chen
eab9e2a05c
Fix captureClick in popup component (#532)
https://github.com/uber/react-map-gl/issues/304

- Handle `capture*` prop change
- Fix the issue where `captureClick` does not work on Popup components if click results in closing the popup
2018-06-18 16:17:38 -07:00
Xiaoji Chen
e3e513e0fa
Add onContextMenu prop (#529) 2018-06-13 16:07:53 -07:00
Ib Green
ca0ff1a9b3
Support onViewStateChange in InteractiveMap and NavigationControl (#518) 2018-06-13 16:03:12 -07:00
John Conway
cfb63e0e6b Add support for use in electron environments (#525)
When running code inside electron browser windows, process.browser is undefined. This adds is-electron.js to check if the environment is running inside an electron browser window with nodeIntegration set to true which is a valid browser environment.

See:
https://github.com/uber/luma.gl/blob/master/src/utils/is-electron.js
https://github.com/uber/luma.gl/blob/master/src/utils/is-browser.js
https://github.com/cheton/is-electron
https://github.com/electron/electron/issues/2288
2018-06-13 15:58:30 -07:00
Xiaoji Chen
cfe86f0b22
Add touchAction prop (#528)
For https://github.com/uber/react-map-gl/issues/506
2018-06-13 15:53:41 -07:00
Ib Green
fb36bb891e
Log react-map-gl version number (#524) 2018-06-11 08:09:33 -07:00
Xiaoji Chen
af748a029d
automatically load mapbox stylesheet (#522) 2018-06-04 16:04:15 -07:00
Xiaoji Chen
42a024c366
fix mapbox wrapper viewstate support (#521) 2018-06-04 14:12:36 -07:00
Irakli Safareli
b9d8b9e568 Add missing check for onChangeViewport in transition-manager (#513) 2018-06-04 14:12:22 -07:00
Ib Green
583cecd0a4
reuseMap prop now applies styles. Markdown cleanup (#517) 2018-05-29 11:54:16 -07:00
Xiaoji Chen
c6551f099d
upgrade to latest dependencies (#505) 2018-04-18 13:48:34 -07:00
Xiaoji Chen
046285078c
code style (#502) 2018-04-17 12:42:34 -07:00
Xiaoji Chen
7e2c66a702
add transition props to map state (#500) 2018-04-17 12:21:51 -07:00
Luke
be4489f3d1 handle source removal without layer removal (#477) 2018-04-17 12:21:34 -07:00
Xiaoji Chen
86de1a2f3e
Fix source options comparison (#501) 2018-04-17 12:20:25 -07:00
Ib Green
8fc7fd6694
Break mapbox-gl import (#494) 2018-04-05 13:34:55 -07:00
Ib Green
52ef77e459
Support deck.gl style viewState prop (#492) 2018-04-05 13:32:54 -07:00
Ib Green
78cbd18223
Remove use of external assert module (#487) 2018-03-29 08:57:18 -07:00
Anh Mai
1594dd1f15
Add null check to BaseControl ref callback (#479) 2018-03-11 00:30:46 -08:00
Balthazar Gronon
f420faab64 Manually bind methods (#463) 2018-03-08 11:39:19 -08:00
Ib Green
b50de38ab0 Upgrade to mapbox 0.44 (#459) 2018-02-12 10:40:52 -08:00
Javid
c776dcf0e1
Reuse map function: reparenting child nodes when reusing the saved map (#457)
* Update readme

* Remove unused code

* Add comments

* Import data from examples/data
2018-02-09 16:46:14 -07:00
Xiaoji Chen
125a5d3a6d
Fix resizing bug (#455) 2018-02-05 14:32:03 -08:00
Luca Falasco
55b6496329 Add showZoom and showCompass options (#448)
Include options to show/hide zoom and compass buttons in NavigationControl as from Mapbox API: https://www.mapbox.com/mapbox-gl-js/api/#navigationcontrol
2018-02-05 14:31:38 -08:00
Jonas Jensen
c78fba17d1 Add this._map sanity check in getMap() (#454) 2018-02-04 10:55:44 -08:00
Xiaoji Chen
62d5586304
explicitly set transition props in mapControls (#440) 2018-01-10 14:52:47 -08:00
Xiaoji Chen
46d1d42763
Clean up MapState class (#437) 2018-01-10 10:02:21 -08:00
Xiaoji Chen
31d552ce71
Upgrade dependencies to prod versions (#435) 2018-01-09 15:25:50 -08:00
Xiaoji Chen
4d575ac6fd
Remove immutable.js dependency (#433) 2018-01-06 18:55:27 -08:00
1chandu
62beb5d61c
Fix deprecation warning (#430) 2017-12-21 16:56:55 -08:00
Ib Green
7c97d2b723
Remove console messages on map creation (#427) 2017-12-19 14:07:10 -08:00
Collin Donahue-Oponski
0aa18ee7ae Add transformRequest prop to map components. (#426)
* Add map prop/option `transformRequest`.

* Upgrade sinon package to webpack-compatible version.

* Fix test for map onLoad prop.

* Add test for new Map prop `transformRequest`.

* Document and cleanup new `tranformRequest` prop on Map component.
2017-12-19 00:54:34 -08:00
Xiaoji Chen
1e6723eb79
[3.2.0] Implement touch rotate (#424) 2017-12-13 09:58:24 -08:00