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
Xiaoji Chen
325632da61
Controls should not register events that it doesn't capture ( #422 )
2017-12-09 16:10:15 -08:00
Xiaoji Chen
4d06d10db9
should not set layerIds when querying unknown mapStyle ( #423 )
2017-12-09 16:07:46 -08:00
Xiaoji Chen
9daeddaa3f
relax mapStyle proptype check ( #421 )
2017-12-09 13:04:43 -08:00
Xiaoji Chen
d08aca4f6a
Fix eventManager error on map unmount ( #419 )
2017-12-06 12:11:26 -08:00
Xiaoji Chen
9c4dd206ed
remove double render hack ( #418 )
2017-12-04 18:58:37 -08:00
Xiaoji Chen
8c4128b65f
Port TransitionManager from dekc.gl ( #411 )
...
* Port TransitionManager from dekc.gl
* transition tests
* rename ViewportFlyToInterpolator to FlyToInterpolator
* export interpolation utils as non-experimental
2017-11-29 10:37:22 -08:00
Ivan Starkov
128f72f769
Fix of Interactive map always needs a double render to render children ( #413 )
2017-11-27 14:07:53 -08:00
Xiaoji Chen
93901ce698
upgrade viewport-mercator-project ( #410 )
2017-11-22 10:06:46 -08:00
Xiaoji Chen
f5ac3ac296
Fix console error at map creation ( #404 )
2017-11-10 12:28:39 -08:00
Xiaoji Chen
ab4e9b8865
Only show token error if mapbox data is used ( #400 )
2017-11-10 04:29:42 -08:00
Mo Kouli
37ec42e4fe
[Fix] Set componentWillUnmount to noop along with componentDidMount ( #402 )
2017-11-09 15:44:21 -08:00
Xiaoji Chen
1517ec8c06
Remove console error when drag distance is larger than map width/height ( #398 )
2017-11-07 16:30:55 -08:00
Xiaoji Chen
25c3b795ba
Port TransitionManager from deck.gl ( #383 )
2017-10-21 17:48:06 -07:00
Xiaoji Chen
32d0972226
Fix MapControls regression ( #386 )
...
- Register additional events with the event manager
- Update docs
2017-10-20 12:38:18 -07:00
Xiaoji Chen
47b105ad08
add keyboard support ( #382 )
2017-10-13 18:44:29 -07:00
Xiaoji Chen
d316e77004
Right button drag to rotate ( #381 )
...
* right button drag to rotate
* disable drag rotate on controls
* fix prop type warnings
2017-10-13 10:10:13 -07:00
Rishat Gabaydullov
8bf1e94155
Extend control elements with custom classNames ( #378 )
2017-10-12 08:55:15 -07:00
Xiaoji Chen
38193aad83
Allow controls and overlays to block map interactions ( #377 )
2017-10-06 14:08:48 -07:00
Ib Green
5cafff8f30
Fixes to no-token warning ( #373 )
2017-10-04 12:54:29 -07:00
Ib Green
82fd7e5da4
No token warning ( #370 )
2017-09-26 12:22:15 -07:00
Ib Green
8e77bcad33
New reusable map class integrated with StaticMap React component ( #361 )
2017-09-24 16:48:52 -07:00
Ib Green
a4b4d12ad9
Break out remaining diff style code from StaticMap ( #367 )
2017-09-24 16:29:48 -07:00
Xiaoji Chen
645fec8479
Import EventManager from mjolnir.js ( #355 )
2017-09-10 17:13:06 -07:00
Eric Socolofsky
f5aa19d97d
Fix getter mock -- should not return ref to manager instance. ( #349 )
2017-08-09 17:00:50 -07:00
gsf-smclamb
2ece7fb39a
Add missing methods to mock manager. ( #348 )
2017-08-09 14:58:01 -07:00
Xiaoji Chen
03a24f1f42
Fix scale for map affected by a CSS transform ( #346 )
2017-08-08 18:51:06 -07:00
Anh Mai
dedd87d0de
[3.0-release] fix unbound this in ref callback for canvas-overlay ( #337 )
2017-08-01 13:08:49 -07:00
Xiaoji Chen
8c558ff4ff
Interaction bug fixes ( #332 )
...
- Fix pinch zoom
- Fix bug where wheel scrolling is blocked when `onViewportChange` is null
2017-07-27 10:36:11 -07:00
Xiaoji Chen
b2ce2dfc45
use ref callback properly ( #319 )
2017-07-25 13:58:25 -07:00
Xiaoji Chen
e5457f3671
Match viewport to Mapbox at low zoom levels ( #317 )
2017-07-12 16:20:30 -07:00
Xiaoji Chen
df96e4973e
remove duplicate offset calculation ( #314 )
2017-07-11 14:06:37 -07:00
Xiaoji Chen
ef7e6fb595
remove ref callback ( #310 )
2017-07-10 13:11:41 -07:00
Xiaoji Chen
e73cceea5f
Add/remove event handlers based on user setting ( #308 )
...
- Disable recognizers in `EventManager.off` if no more handlers are attached
- Let `MapControls` manage its own events by passing in the `EventManager` instance
- Use a new MapControls instance per map
2017-07-10 12:52:28 -07:00
Xiaoji Chen
5e65c18ee5
fix breakage on node ( #292 )
2017-06-27 18:15:34 -07:00
Xiaoji Chen
96e81ac1d7
update event manager ( #283 )
2017-06-27 10:31:01 -07:00
Xiaoji Chen
5749573db9
Update overlays code and documentation ( #282 )
2017-06-15 18:05:49 -07:00
Xiaoji Chen
9492b6cbe8
Remove fitBounds util ( #278 )
2017-06-14 10:23:03 -07:00