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
Xiaoji Chen
a61689bbe8
Fix compass arrow in navigation control ( #277 )
2017-06-13 13:46:03 -07:00
John Deerhake
8d03ba7c48
Change pan event listener to move specific panmove ( #272 )
2017-06-09 10:57:19 -07:00
Patrick Ranspach
ad7069446e
Add onLoad callback to static map props and componentDidMount ( #269 )
2017-06-07 14:17:37 -07:00
Ib Green
5076429584
Documentation pass, polish exports, move non-essential overlays to examples ( #263 )
2017-06-02 07:26:48 -07:00
Xiaoji Chen
9e93217280
Fix flickering bug when drag over popups ( #258 )
2017-05-26 23:51:40 -07:00
Anh Mai
ec326d34d3
[deprecate-start] onChangeViewport is now onViewportChange; add depWarn util ( #259 )
2017-05-26 22:57:46 -07:00
Xiaoji Chen
9e0b9d760d
Add fitBounds util ( #256 )
2017-05-25 22:13:01 -07:00
Xiaoji Chen
148cabe705
Fix EventManager import under node ( #252 )
2017-05-24 15:52:01 -07:00
Xiaoji Chen
f527c35ee2
Api Audit ( #251 )
2017-05-24 15:27:37 -07:00
Xiaoji Chen
15f51ea983
merge EventManager ( #250 )
2017-05-23 13:37:03 -07:00
Xiaoji Chen
2eccb0328a
MapControls Refactor ( #245 )
2017-05-20 17:37:17 -07:00
Xiaoji Chen
4a6164daa0
New EventManager ( #244 )
...
* use hammerjs as event manager
* support touch in main example
2017-05-17 14:57:16 -07:00
Xiaoji Chen
a7d5e67d59
Clean up map props ( #229 )
2017-05-05 15:55:17 -07:00
Xiaoji Chen
82436255f0
Attribution Control and Navigation Control ( #228 )
2017-05-05 12:18:58 -07:00
Xiaoji Chen
da23dde556
Popup control ( #227 )
2017-05-05 10:50:47 -07:00
Xiaoji Chen
1cef144dc1
Add marker component ( #225 )
2017-05-04 12:17:26 -07:00
Xiaoji Chen
593fa67ca6
Improve MapState class and tests ( #223 )
...
- `MapControl` takes a `MapState` instance instead of list of viewport props
- Always return a new `MapState` object after transform
- Better naming of properties and methods
- Code consistency and error checking
- Tests cover more use cases
2017-05-03 12:35:24 -07:00
Xiaoji Chen
ae10a9ccdd
remove pressKeytoRotate prop from MapControl ( #222 )
2017-05-02 18:00:01 -07:00
Xiaoji Chen
7ef7b19860
Separating input events and semantic transform in map control ( #212 )
2017-05-02 17:39:14 -07:00