Xiaoji Chen
4d06d10db9
should not set layerIds when querying unknown mapStyle ( #423 )
2017-12-09 16:07:46 -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
Xiaoji Chen
93901ce698
upgrade viewport-mercator-project ( #410 )
2017-11-22 10:06:46 -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
Xiaoji Chen
38193aad83
Allow controls and overlays to block map interactions ( #377 )
2017-10-06 14:08:48 -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
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
e5457f3671
Match viewport to Mapbox at low zoom levels ( #317 )
2017-07-12 16:20:30 -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
96e81ac1d7
update event manager ( #283 )
2017-06-27 10:31:01 -07:00
Xiaoji Chen
9492b6cbe8
Remove fitBounds util ( #278 )
2017-06-14 10:23:03 -07:00
John Deerhake
8d03ba7c48
Change pan event listener to move specific panmove ( #272 )
2017-06-09 10:57:19 -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
da23dde556
Popup control ( #227 )
2017-05-05 10:50:47 -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
7ef7b19860
Separating input events and semantic transform in map control ( #212 )
2017-05-02 17:39:14 -07:00
Ib Green
21a6c21e30
Remove imports of global module ( #204 )
...
* Remove imports of global module
2017-03-29 16:56:00 -07:00
Ib Green
4518b64adc
Add pressKeyToRotate prop to new MapControls ( #202 )
...
* Fix pressKeyToRotate
* Additional transpilation fixes
2017-03-27 17:25:53 -07:00
Ib Green
4868ef89d3
Revert to babel transpilation, remove JSX from overlays
2017-03-27 15:33:55 -07:00
Ib Green
49124f33ef
* Added new custom-interactions example
...
* Add pressKeyToRotate prop
* Support pitch > 60
* Build system updates
2017-03-24 14:37:22 -07:00
Ib Green
72a0324cb8
Component split ( #170 )
...
* StaticMap and InteractiveMap separates event handling concerns from map display concerns.
2017-03-07 14:57:37 -08:00
Ib Green
fa4ae3ffbb
Buble+webpack2 ( #169 )
...
* Compile with buble and bundle with webpack
* Reduce number of dependencies
* Support for tree-shaking
* Standalone, easy-to-understand example with small package.json
* Tests now work under Node.js even when loading mapbox-gl.
* Fix travis config
2017-03-07 14:55:57 -08:00
Jonathan Warning
b4e46055c6
Ensure fitBounds doesn't return NaN zoom value ( #159 )
2016-12-09 15:24:28 -06:00
Xiaoji Chen
c5dd69982c
Provide a way to control per-layer interactivity ( #131 )
...
* queryRenderedFeatures only check layers with style prop interactive: true
* query all layers if no interactive layer is found
* update JSDoc for onHoverFeatures and onClickFeatures
2016-09-27 16:11:09 -07:00
Ib Green
ad3b12126b
Remove alphaify
2016-08-23 14:20:42 -07:00
Ib Green
52fefd7f9a
Add fitBounds test
2016-08-22 16:48:52 -07:00
Ib Green
480262ac08
Introduce d3 v4 micro modules. Move utilities to utils directory
2016-08-22 13:50:52 -07:00