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
25c3b795ba
Port TransitionManager from deck.gl ( #383 )
2017-10-21 17:48:06 -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
Xiaoji Chen
b2ce2dfc45
use ref callback properly ( #319 )
2017-07-25 13:58:25 -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
5749573db9
Update overlays code and documentation ( #282 )
2017-06-15 18:05:49 -07:00
Xiaoji Chen
a61689bbe8
Fix compass arrow in navigation control ( #277 )
2017-06-13 13:46:03 -07:00
Patrick Ranspach
ad7069446e
Add onLoad callback to static map props and componentDidMount ( #269 )
2017-06-07 14:17:37 -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
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
Xiaoji Chen
0b69851601
clean up InteractiveMap class ( #219 )
2017-05-02 10:37:37 -07:00
Xiaoji Chen
c0bae3db4d
Consistent handling of map children ( #217 )
...
- Assign the same class name to children container between InteractiveMap and StaticMap
- Always render map children under the same node (avoid unmount/mount when the map is shown/hidden)
2017-05-01 17:11:54 -07:00
Arya Seghatoleslami
59bb1c9168
Update static-map.js ( #214 )
2017-05-01 07:23:10 -07:00
Xiaoji Chen
b26c6521c1
Fix various map control bugs ( #211 )
...
- Smooth rotation
- Smooth pan
- Zoom around mouse position
2017-04-27 00:14:23 -07:00
Joe Duncan
8f62ae6089
use prop-types package ( #206 )
2017-04-17 10:40: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
Anh Mai
da55fffe07
remove d3-selection and extra example map ( #189 )
...
* remove d3-selection
* remove extra example map
2017-03-24 14:37:22 -07:00
Anh Mai
d28d5cb432
Fix flow build process
...
Fix unit tests. README updates. Add browser tests
Adapt exhibits for react-map-gl
2017-03-24 14:37:00 -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
05cc1f163d
ES6 tests now run untranspiled in Node.js ( #172 )
...
* ES6 tests now run directly in Node.js.
* Create `examples` folder to contain multiple standalone examples.
* Fix precommit hook
2017-03-07 14:56:26 -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